AxWin3 - Adding RichText rendering, no sscanf so doesn't compile
[tpg/acess2.git] / Usermode / Applications / axwin3_src / include / wm_messages.h
1 /*
2  * Acess2 Window Manager v3 (axwin3)
3  * - By John Hodge (thePowersGang)
4  *
5  * include/wm_messages.h
6  * - Core window messages
7  */
8 #ifndef _WM_MESSAGES_H_
9 #define _WM_MESSAGES_H_
10
11 /**
12  * \brief Messages delivered to windows
13  */
14 enum eWM_WindowMessages
15 {
16         WNDMSG_NULL,
17         
18         WNDMSG_CREATE,
19         WNDMSG_DESTROY,
20         WNDMSG_FOCUS,   // Called on change
21         WNDMSG_SHOW,    // Called on change
22
23         WNDMSG_RESIZE,
24         
25         WNDMSG_MOUSEMOVE,
26         WNDMSG_MOUSEBTN,
27         WNDMSG_KEYDOWN,
28         WNDMSG_KEYFIRE,
29         WNDMSG_KEYUP,
30
31         WNDMSG_HOTKEY,
32         
33         WNDMSG_CLASS_MIN = 0x1000,
34         WNDMSG_CLASS_MAX = 0x2000,
35 };
36
37 struct sWndMsg_Bool
38 {
39          uint8_t        Val;
40 };
41
42 struct sWndMsg_Resize
43 {
44         uint16_t        W, H;
45 };
46
47 struct sWndMsg_MouseMove
48 {
49          int16_t        X, Y;
50          int16_t        dX, dY;
51 };
52
53 struct sWndMsg_MouseButton
54 {
55          int16_t        X, Y;
56         uint8_t         Button;
57         uint8_t         bPressed;
58 };
59
60 struct sWndMsg_KeyAction
61 {
62         uint32_t        KeySym;
63         uint32_t        UCS32;
64 };
65
66 struct sWndMsg_Hotkey
67 {
68         uint16_t        ID;
69 };
70
71 #endif

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