Merge branch 'master' of git://git.ucc.asn.au/tpg/acess2
[tpg/acess2.git] / Usermode / Applications / axwin3_src / WM / 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_CLASS_MIN = 0x1000,
32         WNDMSG_CLASS_MAX = 0x2000,
33 };
34
35 struct sWndMsg_Bool
36 {
37          uint8_t        Val;
38 };
39
40 struct sWndMsg_Resize
41 {
42         uint16_t        W, H;
43 };
44
45 struct sWndMsg_MouseMove
46 {
47          int16_t        X, Y;
48          int16_t        dX, dY;
49 };
50
51 struct sWndMsg_MouseButton
52 {
53          int16_t        X, Y;
54         uint8_t         Button;
55         uint8_t         bPressed;
56 };
57
58 struct sWndMsg_KeyAction
59 {
60         uint32_t        KeySym;
61         uint32_t        UCS32;
62 };
63
64 #endif

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