Usermode/AxWin3 - Adding widget mouse input handlers
[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_Resize
36 {
37         uint16_t        W, H;
38 };
39
40 struct sWndMsg_MouseButton
41 {
42         uint16_t        X, Y;
43         uint8_t         Button;
44         uint8_t         bPressed;
45 };
46
47 #endif

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