Usermode/AxWin3 - Fixed bug with underlined items in menus
[tpg/acess2.git] / Usermode / Applications / axwin3_src / include / widget_messages.h
1 /*
2  * Acess2 Window Manager v3
3  * - By John Hodge (thePowersGang)
4  *
5  * widget_messages.h
6  * - AxWin2 Widget port
7  */
8 #ifndef _WIDGET_MESSAGES_H_
9 #define _WIDGET_MESSAGES_H_
10
11 enum
12 {
13         // Control (Client->Server) messages
14         MSG_WIDGET_CREATE = 0x1000,
15         MSG_WIDGET_DELETE,
16         MSG_WIDGET_SETFOCUS,
17         MSG_WIDGET_SETFLAGS,
18         MSG_WIDGET_SETSIZE,
19         MSG_WIDGET_SETTEXT,
20         MSG_WIDGET_SETCOLOUR,
21         
22         // Event (Server->Client) messages
23         MSG_WIDGET_FIRE,
24         MSG_WIDGET_KEYPRESS,
25         MSG_WIDGET_MOUSEBTN,
26 };
27
28
29 typedef struct
30 {
31         uint32_t        Parent;
32         uint32_t        NewID;
33         uint32_t        Type;
34         uint32_t        Flags;
35         char    DebugName[];
36 } tWidgetMsg_Create;
37
38 typedef struct
39 {
40         uint32_t        WidgetID;
41 } tWidgetMsg_Delete;
42
43 typedef struct
44 {
45         uint32_t        WidgetID;
46 } tWidgetMsg_SetFocus;
47
48 typedef struct
49 {
50         uint32_t        WidgetID;
51         uint32_t        Value;
52         uint32_t        Mask;
53 } tWidgetMsg_SetFlags;
54
55 typedef struct
56 {
57         uint32_t        WidgetID;
58         uint32_t        Value;
59 } tWidgetMsg_SetSize;
60
61 typedef struct
62 {
63         uint32_t        WidgetID;
64         char    Text[];
65 } tWidgetMsg_SetText;
66
67 typedef struct
68 {
69         uint32_t        WidgetID;
70         uint32_t        Index;
71         uint32_t        Colour;
72 } tWidgetMsg_SetColour;
73
74 typedef struct
75 {
76         uint32_t        WidgetID;
77 } tWidgetMsg_Fire;
78
79 typedef struct
80 {
81         uint32_t        WidgetID;
82         uint32_t        KeySym;
83         uint32_t        Character;
84 } tWidgetMsg_KeyEvent;
85
86 typedef struct
87 {
88         uint32_t        WidgetID;
89         uint16_t        X;
90         uint16_t        Y;
91         uint8_t         Button;
92         uint8_t         bPressed;
93 } tWidgetMsg_MouseBtn;
94
95 #endif
96

UCC git Repository :: git.ucc.asn.au