Mercurial > mplayer.hg
annotate Gui/app.h @ 1761:827b551bbcab
subdump
author | arpi |
---|---|
date | Wed, 29 Aug 2001 20:15:41 +0000 |
parents | d6c99f70449e |
children | 32b1bb50a0e8 |
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; | |
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 extern listItems appTV; | |
76 extern listItems appRadio; | |
77 | |
1707 | 78 //extern char * appMPlayerDirInHome; |
79 //extern char * appMPlayerDir; | |
1693 | 80 extern char * skinDirInHome; |
81 extern char * skinMPlayerDir; | |
82 | |
1723
5e4214a7540e
GUI stuff. now seeking works, and xmga renders to video window
arpi
parents:
1707
diff
changeset
|
83 extern void appInit( int argc,char* argv[], char *envp[], void* disp ); |
1693 | 84 extern void appInitStruct( listItems * item ); |
85 extern void appClearItem( wItem * item ); | |
86 extern void appCopy( listItems * item1,listItems * item2 ); | |
87 extern int appFindMessage( unsigned char * str ); | |
88 extern int appFindKey( unsigned char * name ); | |
89 | |
90 #endif |