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

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