Mercurial > mplayer.hg
annotate Gui/app.h @ 4965:923605707de6
sorry, 10l:)
author | pontscho |
---|---|
date | Thu, 07 Mar 2002 00:03:51 +0000 |
parents | b64fa5d25142 |
children | 3e7f39c4110c |
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; | |
1729 | 37 int used; |
1693 | 38 float value; |
39 txSample Bitmap; | |
40 txSample Mask; | |
41 // --- | |
42 int fontid; | |
43 int align; | |
44 char * label; | |
45 // --- | |
46 int event; | |
47 } wItem; | |
48 | |
49 typedef struct | |
50 { | |
51 wItem main; | |
52 wsTWindow mainWindow; | |
2851
b64fa5d25142
add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents:
1866
diff
changeset
|
53 int mainDecoration; |
1693 | 54 |
55 wItem sub; | |
56 wsTWindow subWindow; | |
57 int subR,subG,subB; | |
58 int subPixel; | |
59 | |
60 wItem eq; | |
61 wsTWindow eqWindow; | |
62 | |
63 wItem menuBase; | |
64 wItem menuSelected; | |
65 wsTWindow menuWindow; | |
66 | |
67 // --- | |
68 int NumberOfItems; | |
69 wItem Items[256]; | |
70 // --- | |
71 int NumberOfMenuItems; | |
72 wItem MenuItems[32]; | |
73 } listItems; | |
74 | |
75 extern listItems appMPlayer; | |
76 | |
77 extern char * skinDirInHome; | |
78 extern char * skinMPlayerDir; | |
1866
32b1bb50a0e8
some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents:
1729
diff
changeset
|
79 extern char * skinName; |
1693 | 80 |
1723
5e4214a7540e
GUI stuff. now seeking works, and xmga renders to video window
arpi
parents:
1707
diff
changeset
|
81 extern void appInit( int argc,char* argv[], char *envp[], void* disp ); |
1693 | 82 extern void appInitStruct( listItems * item ); |
83 extern void appClearItem( wItem * item ); | |
84 extern void appCopy( listItems * item1,listItems * item2 ); | |
85 extern int appFindMessage( unsigned char * str ); | |
86 extern int appFindKey( unsigned char * name ); | |
87 | |
88 #endif |