Mercurial > mplayer.hg
annotate Gui/app.h @ 2156:01095aff4bb3
Similar to 1.17
author | jaf |
---|---|
date | Wed, 10 Oct 2001 18:09:05 +0000 |
parents | 32b1bb50a0e8 |
children | b64fa5d25142 |
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; | |
1866
32b1bb50a0e8
some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents:
1729
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 |