Usermode/AxWin3 - Implementing more of the widget code
[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         MSG_WIDGET_CREATE = 0x1000,
14         MSG_WIDGET_DELETE,
15         MSG_WIDGET_SETSIZE,
16         MSG_WIDGET_SETTEXT,
17         MSG_WIDGET_SETCOLOUR
18 };
19
20
21 typedef struct
22 {
23         uint32_t        Parent;
24         uint32_t        NewID;
25         uint32_t        Type;
26         uint32_t        Flags;
27         char    DebugName[];
28 } tWidgetMsg_Create;
29
30 typedef struct
31 {
32         uint32_t        WidgetID;
33 } tWidgetMsg_Delete;
34
35 typedef struct
36 {
37         uint32_t        WidgetID;
38         uint32_t        Value;
39 } tWidgetMsg_SetSize;
40
41 typedef struct
42 {
43         uint32_t        WidgetID;
44         char    Text[];
45 } tWidgetMsg_SetText;
46
47 typedef struct
48 {
49         uint32_t        WidgetID;
50         uint32_t        Index;
51         uint32_t        Colour;
52 } tWidgetMsg_SetColour;
53
54 #endif
55

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