annotate Gui/app.h @ 6872:e75137e656d3

added new formats: 444p,422p, 411p
author arpi
date Fri, 02 Aug 2002 19:36:31 +0000
parents 8cfddba867b4
children e5dda05f9aab
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
2 #ifndef __MY_APPS
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
3 #define __MY_APPS
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
4
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
5 #include "bitmap/bitmap.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
6 #include "wm/ws.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
7 #include "wm/wskeys.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
8 #include "events.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
9
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
10 #define itNULL 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
11 #define itButton 101 // button
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
12 #define itHPotmeter 102 // horizontal potmeter
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
13 #define itVPotmeter 103 // vertical potmeter
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
14 #define itSLabel 104 // static label
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
15 #define itDLabel 105 // dynamic label
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
16 #define itBase 106
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
17 #define itPotmeter 107
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
18 #define itFont 108
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
19 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
20 #define btnPressed 0
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
21 #define btnReleased 1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
22 #define btnDisabled 2
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
23 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
24 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
25 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
26 int type;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
27 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
28 int x,y;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
29 int width,height;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
30 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
31 int px,py,psx,psy;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
32 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
33 int msg,msg2;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
34 int pressed,disabled,tmp;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
35 int key,key2;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
36 int phases;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
37 float value;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
38 txSample Bitmap;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
39 txSample Mask;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
40 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
41 int fontid;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
42 int align;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
43 char * label;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
44 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
45 int event;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
46 } wItem;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
47
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
48 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
49 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
50 wItem main;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
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
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
53
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
54 wItem sub;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
55 wsTWindow subWindow;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
56 int subR,subG,subB;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
57 int subPixel;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
58
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
59 wItem eq;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
60 wsTWindow eqWindow;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
61
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
62 wItem menuBase;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
63 wItem menuSelected;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
64 wsTWindow menuWindow;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
65
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
66 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
67 int NumberOfItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
68 wItem Items[256];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
69 // ---
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
70 int NumberOfMenuItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
71 wItem MenuItems[32];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
72 } listItems;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
73
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
74 extern listItems appMPlayer;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
75
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
76 extern char * skinDirInHome;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
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
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
79
6218
8cfddba867b4 fix text render chrash ...
pontscho
parents: 5665
diff changeset
80 extern void appInit( void * disp );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
81 extern void appInitStruct( listItems * item );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
82 extern void appClearItem( wItem * item );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
83 extern void appCopy( listItems * item1,listItems * item2 );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
84 extern int appFindMessage( unsigned char * str );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
85 extern int appFindKey( unsigned char * name );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
86
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
87 #endif