X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2Finclude%2Fwidget_messages.h;h=6064d6f2870e686d2afb3761d67f5fae3ffd89ee;hb=3ad4532bb952dbcb28a2b9fa72d7f1f87b5f8fd4;hp=e4f09ed61dc70c5df21cd116e7e6b82b2b0bbf38;hpb=f42e912b8bc615c2009b795ce12d4c54cef4ee8b;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 e4f09ed6..6064d6f2 100644 --- a/Usermode/Applications/axwin3_src/include/widget_messages.h +++ b/Usermode/Applications/axwin3_src/include/widget_messages.h @@ -8,20 +8,108 @@ #ifndef _WIDGET_MESSAGES_H_ #define _WIDGET_MESSAGES_H_ -enum +enum eWidgetIPCCalls { - MSG_WIDGET_CREATE, - MSG_WIDGET_DELETE, - MSG_WIDGET_SETTEXT + // 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 { uint32_t Parent; uint32_t NewID; + uint32_t Type; + uint32_t Flags; + uint32_t WindowHandle; char DebugName[]; -} tWidgetMsg_Create; +} tWidgetIPC_CreateSubWin; + +typedef struct +{ + uint32_t WidgetID; +} 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; +} tWidgetIPC_SetSize; + +typedef struct +{ + uint32_t WidgetID; + char Text[]; +} tWidgetIPC_SetText; + +typedef struct +{ + uint32_t WidgetID; + uint32_t Index; + uint32_t Colour; +} 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