#ifndef _WM_MESSAGES_H_
#define _WM_MESSAGES_H_
+/**
+ * \brief Messages delivered to windows
+ */
enum eWM_WindowMessages
{
WNDMSG_NULL,
WNDMSG_DESTROY,
WNDMSG_FOCUS, // Called on change
WNDMSG_SHOW, // Called on change
+
+ WNDMSG_RESIZE,
WNDMSG_MOUSEMOVE,
WNDMSG_MOUSEBTN,
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