Mercurial > mplayer.hg
annotate Gui/app.h @ 6673:d6adae1af0e3
#ifdef'ed divx4 2pass code - idea by Diego
author | arpi |
---|---|
date | Mon, 08 Jul 2002 21:34:24 +0000 |
parents | 8cfddba867b4 |
children | e5dda05f9aab |
rev | line source |
---|---|
1693 | 1 |
2 #ifndef __MY_APPS | |
3 #define __MY_APPS | |
4 | |
5 #include "bitmap/bitmap.h" | |
6 #include "wm/ws.h" | |
7 #include "wm/wskeys.h" | |
8 #include "events.h" | |
9 | |
10 #define itNULL 0 | |
11 #define itButton 101 // button | |
12 #define itHPotmeter 102 // horizontal potmeter | |
13 #define itVPotmeter 103 // vertical potmeter | |
14 #define itSLabel 104 // static label | |
15 #define itDLabel 105 // dynamic label | |
16 #define itBase 106 | |
17 #define itPotmeter 107 | |
18 #define itFont 108 | |
19 // --- | |
20 #define btnPressed 0 | |
21 #define btnReleased 1 | |
22 #define btnDisabled 2 | |
23 // --- | |
24 typedef struct | |
25 { | |
26 int type; | |
27 // --- | |
28 int x,y; | |
29 int width,height; | |
30 // --- | |
31 int px,py,psx,psy; | |
32 // --- | |
33 int msg,msg2; | |
34 int pressed,disabled,tmp; | |
35 int key,key2; | |
36 int phases; | |
37 float value; | |
38 txSample Bitmap; | |
39 txSample Mask; | |
40 // --- | |
41 int fontid; | |
42 int align; | |
43 char * label; | |
44 // --- | |
45 int event; | |
46 } wItem; | |
47 | |
48 typedef struct | |
49 { | |
50 wItem main; | |
51 wsTWindow mainWindow; | |
2851
b64fa5d25142
add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents:
1866
diff
changeset
|
52 int mainDecoration; |
1693 | 53 |
54 wItem sub; | |
55 wsTWindow subWindow; | |
56 int subR,subG,subB; | |
57 int subPixel; | |
58 | |
59 wItem eq; | |
60 wsTWindow eqWindow; | |
61 | |
62 wItem menuBase; | |
63 wItem menuSelected; | |
64 wsTWindow menuWindow; | |
65 | |
66 // --- | |
67 int NumberOfItems; | |
68 wItem Items[256]; | |
69 // --- | |
70 int NumberOfMenuItems; | |
71 wItem MenuItems[32]; | |
72 } listItems; | |
73 | |
74 extern listItems appMPlayer; | |
75 | |
76 extern char * skinDirInHome; | |
77 extern char * skinMPlayerDir; | |
1866
32b1bb50a0e8
some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents:
1729
diff
changeset
|
78 extern char * skinName; |
1693 | 79 |
6218 | 80 extern void appInit( void * disp ); |
1693 | 81 extern void appInitStruct( listItems * item ); |
82 extern void appClearItem( wItem * item ); | |
83 extern void appCopy( listItems * item1,listItems * item2 ); | |
84 extern int appFindMessage( unsigned char * str ); | |
85 extern int appFindKey( unsigned char * name ); | |
86 | |
87 #endif |