X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2Finclude%2Fwidget_messages.h;h=6064d6f2870e686d2afb3761d67f5fae3ffd89ee;hb=98bd9c0c8985c50c42231c116a4e18fedd47761e;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..6064d6f2 100644 --- a/Usermode/Applications/axwin3_src/include/widget_messages.h +++ b/Usermode/Applications/axwin3_src/include/widget_messages.h @@ -8,15 +8,31 @@ #ifndef _WIDGET_MESSAGES_H_ #define _WIDGET_MESSAGES_H_ -enum +enum eWidgetIPCCalls { - MSG_WIDGET_CREATE = 0x1000, - MSG_WIDGET_DELETE, - MSG_WIDGET_SETSIZE, - MSG_WIDGET_SETTEXT, - MSG_WIDGET_SETCOLOUR + // Control (Client->Server) messages + IPC_WIDGET_CREATE, + IPC_WIDGET_CREATESUBWIN, + IPC_WIDGET_DELETE, + IPC_WIDGET_SETFOCUS, + IPC_WIDGET_SETFLAGS, + IPC_WIDGET_SETSIZE, + IPC_WIDGET_SETTEXT, + IPC_WIDGET_SETCOLOUR, + + IPC_WIDGET_GETTEXT, + + N_IPC_WIDGET }; +typedef struct +{ + uint32_t Parent; + uint32_t NewID; + uint32_t Type; + uint32_t Flags; + char DebugName[]; +} tWidgetIPC_Create; typedef struct { @@ -24,32 +40,76 @@ typedef struct uint32_t NewID; uint32_t Type; uint32_t Flags; + uint32_t WindowHandle; char DebugName[]; -} tWidgetMsg_Create; +} tWidgetIPC_CreateSubWin; typedef struct { uint32_t WidgetID; -} tWidgetMsg_Delete; +} tWidgetIPC_Delete; + +typedef struct +{ + uint32_t WidgetID; +} tWidgetIPC_SetFocus; + +typedef struct +{ + uint32_t WidgetID; + uint32_t Value; + uint32_t Mask; +} tWidgetIPC_SetFlags; typedef struct { uint32_t WidgetID; uint32_t Value; -} tWidgetMsg_SetSize; +} tWidgetIPC_SetSize; typedef struct { uint32_t WidgetID; char Text[]; -} tWidgetMsg_SetText; +} tWidgetIPC_SetText; typedef struct { uint32_t WidgetID; uint32_t Index; uint32_t Colour; -} tWidgetMsg_SetColour; +} tWidgetIPC_SetColour; + +enum eWidgetMessages +{ + // Event (Server->Client) messages + MSG_WIDGET_FIRE = 0x1000, + MSG_WIDGET_KEYPRESS, + MSG_WIDGET_MOUSEBTN, +}; + + + +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