X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2FWM%2Finclude%2Fwm_messages.h;h=c7955f63852b605096b0ef32da1727ea3d9cf5d5;hb=3ae2c079ea44ea7a8fb1a65e7b9ff5d76f3f4c24;hp=0bebfdadec6ec912b1899e36c00e6ec91762d82c;hpb=28484b80f5d1e5f9e502f66484ada925ff833891;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin3_src/WM/include/wm_messages.h b/Usermode/Applications/axwin3_src/WM/include/wm_messages.h index 0bebfdad..c7955f63 100644 --- a/Usermode/Applications/axwin3_src/WM/include/wm_messages.h +++ b/Usermode/Applications/axwin3_src/WM/include/wm_messages.h @@ -8,6 +8,9 @@ #ifndef _WM_MESSAGES_H_ #define _WM_MESSAGES_H_ +/** + * \brief Messages delivered to windows + */ enum eWM_WindowMessages { WNDMSG_NULL, @@ -16,6 +19,8 @@ enum eWM_WindowMessages WNDMSG_DESTROY, WNDMSG_FOCUS, // Called on change WNDMSG_SHOW, // Called on change + + WNDMSG_RESIZE, WNDMSG_MOUSEMOVE, WNDMSG_MOUSEBTN, @@ -27,4 +32,33 @@ enum eWM_WindowMessages WNDMSG_CLASS_MAX = 0x2000, }; +struct sWndMsg_Bool +{ + uint8_t Val; +}; + +struct sWndMsg_Resize +{ + uint16_t W, H; +}; + +struct sWndMsg_MouseMove +{ + int16_t X, Y; + int16_t dX, dY; +}; + +struct sWndMsg_MouseButton +{ + int16_t X, Y; + uint8_t Button; + uint8_t bPressed; +}; + +struct sWndMsg_KeyAction +{ + uint32_t KeySym; + uint32_t UCS32; +}; + #endif