X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2Finclude%2Fwidget_messages.h;h=0a4b2505f03e758f69a9c39153465a1bdacf7aa0;hb=45444b9d268e6fbc9d5cf813e0b421536d86d508;hp=fa2013ae25dbeb167384607403d7fd3fec5ccf1c;hpb=08309c482bda11b6a86066409d08a99789ab2f5d;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin3_src/include/widget_messages.h b/Usermode/Applications/axwin3_src/include/widget_messages.h index fa2013ae..0a4b2505 100644 --- a/Usermode/Applications/axwin3_src/include/widget_messages.h +++ b/Usermode/Applications/axwin3_src/include/widget_messages.h @@ -10,11 +10,23 @@ enum { + // Control (Client->Server) messages MSG_WIDGET_CREATE = 0x1000, MSG_WIDGET_DELETE, + MSG_WIDGET_SETFOCUS, + MSG_WIDGET_SETFLAGS, MSG_WIDGET_SETSIZE, MSG_WIDGET_SETTEXT, - MSG_WIDGET_SETCOLOUR + MSG_WIDGET_SETCOLOUR, + + + // Request (Client->Server->Client) messages + MSG_WIDGET_GETTEXT, + + // Event (Server->Client) messages + MSG_WIDGET_FIRE, + MSG_WIDGET_KEYPRESS, + MSG_WIDGET_MOUSEBTN, }; @@ -32,6 +44,18 @@ typedef struct uint32_t WidgetID; } tWidgetMsg_Delete; +typedef struct +{ + uint32_t WidgetID; +} tWidgetMsg_SetFocus; + +typedef struct +{ + uint32_t WidgetID; + uint32_t Value; + uint32_t Mask; +} tWidgetMsg_SetFlags; + typedef struct { uint32_t WidgetID; @@ -51,5 +75,26 @@ typedef struct uint32_t Colour; } tWidgetMsg_SetColour; +typedef struct +{ + uint32_t WidgetID; +} tWidgetMsg_Fire; + +typedef struct +{ + uint32_t WidgetID; + uint32_t KeySym; + uint32_t Character; +} tWidgetMsg_KeyEvent; + +typedef struct +{ + uint32_t WidgetID; + uint16_t X; + uint16_t Y; + uint8_t Button; + uint8_t bPressed; +} tWidgetMsg_MouseBtn; + #endif