f36c729c10e313548864f408df98a849311232af
[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_CREATESUBWIN,
16         MSG_WIDGET_DELETE,
17         MSG_WIDGET_SETFOCUS,
18         MSG_WIDGET_SETFLAGS,
19         MSG_WIDGET_SETSIZE,
20         MSG_WIDGET_SETTEXT,
21         MSG_WIDGET_SETCOLOUR,
22         
23
24         // Request (Client->Server->Client) messages
25         MSG_WIDGET_GETTEXT,
26
27         // Event (Server->Client) messages
28         MSG_WIDGET_FIRE,
29         MSG_WIDGET_KEYPRESS,
30         MSG_WIDGET_MOUSEBTN,
31 };
32
33
34 typedef struct
35 {
36         uint32_t        Parent;
37         uint32_t        NewID;
38         uint32_t        Type;
39         uint32_t        Flags;
40         char    DebugName[];
41 } tWidgetMsg_Create;
42
43 typedef struct
44 {
45         uint32_t        Parent;
46         uint32_t        NewID;
47         uint32_t        Type;
48         uint32_t        Flags;
49         uint32_t        WindowHandle;
50         char    DebugName[];
51 } tWidgetMsg_CreateSubWin;
52
53 typedef struct
54 {
55         uint32_t        WidgetID;
56 } tWidgetMsg_Delete;
57
58 typedef struct
59 {
60         uint32_t        WidgetID;
61 } tWidgetMsg_SetFocus;
62
63 typedef struct
64 {
65         uint32_t        WidgetID;
66         uint32_t        Value;
67         uint32_t        Mask;
68 } tWidgetMsg_SetFlags;
69
70 typedef struct
71 {
72         uint32_t        WidgetID;
73         uint32_t        Value;
74 } tWidgetMsg_SetSize;
75
76 typedef struct
77 {
78         uint32_t        WidgetID;
79         char    Text[];
80 } tWidgetMsg_SetText;
81
82 typedef struct
83 {
84         uint32_t        WidgetID;
85         uint32_t        Index;
86         uint32_t        Colour;
87 } tWidgetMsg_SetColour;
88
89 typedef struct
90 {
91         uint32_t        WidgetID;
92 } tWidgetMsg_Fire;
93
94 typedef struct
95 {
96         uint32_t        WidgetID;
97         uint32_t        KeySym;
98         uint32_t        Character;
99 } tWidgetMsg_KeyEvent;
100
101 typedef struct
102 {
103         uint32_t        WidgetID;
104         uint16_t        X;
105         uint16_t        Y;
106         uint8_t         Button;
107         uint8_t         bPressed;
108 } tWidgetMsg_MouseBtn;
109
110 #endif
111

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