Usermode/init - Fixed early free of command, fixed %s on array
[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_CLOSE,
21         WNDMSG_FOCUS,   // Called on change
22         WNDMSG_SHOW,    // Called on change
23
24         WNDMSG_RESIZE,
25         
26         WNDMSG_MOUSEMOVE,
27         WNDMSG_MOUSEBTN,
28         WNDMSG_KEYDOWN,
29         WNDMSG_KEYFIRE,
30         WNDMSG_KEYUP,
31
32         WNDMSG_HOTKEY,
33         
34         WNDMSG_CLASS_MIN = 0x1000,
35         WNDMSG_CLASS_MAX = 0x2000,
36 };
37
38 struct sWndMsg_Bool
39 {
40          uint8_t        Val;
41 };
42
43 struct sWndMsg_Resize
44 {
45         uint16_t        W, H;
46 };
47
48 struct sWndMsg_MouseMove
49 {
50          int16_t        X, Y;
51          int16_t        dX, dY;
52 };
53
54 struct sWndMsg_MouseButton
55 {
56          int16_t        X, Y;
57         uint8_t         Button;
58         uint8_t         bPressed;
59 };
60
61 struct sWndMsg_KeyAction
62 {
63         uint32_t        KeySym;
64         uint32_t        UCS32;
65 };
66
67 struct sWndMsg_Hotkey
68 {
69         uint16_t        ID;
70 };
71
72 #endif

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