X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2FWM%2Finclude%2Fwm_messages.h;h=df20d7752d2097efd0d907fc2984007a8a0254f7;hb=086346323aae470047d375a12104872c899056d6;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..df20d775 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,27 @@ 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 +{ + uint16_t X, Y; + uint8_t Button; + uint8_t bPressed; +}; + #endif