X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2Finclude%2Fwidget_messages.h;h=6064d6f2870e686d2afb3761d67f5fae3ffd89ee;hb=ed78a9ac44c440180c37c1cbbbd7ecbc4d9076d7;hp=f36c729c10e313548864f408df98a849311232af;hpb=21192b41da0f87dba07dac08b2d814b0976d929c;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 f36c729c..6064d6f2 100644 --- a/Usermode/Applications/axwin3_src/include/widget_messages.h +++ b/Usermode/Applications/axwin3_src/include/widget_messages.h @@ -8,29 +8,23 @@ #ifndef _WIDGET_MESSAGES_H_ #define _WIDGET_MESSAGES_H_ -enum +enum eWidgetIPCCalls { // Control (Client->Server) messages - MSG_WIDGET_CREATE = 0x1000, - MSG_WIDGET_CREATESUBWIN, - MSG_WIDGET_DELETE, - MSG_WIDGET_SETFOCUS, - MSG_WIDGET_SETFLAGS, - MSG_WIDGET_SETSIZE, - MSG_WIDGET_SETTEXT, - MSG_WIDGET_SETCOLOUR, + IPC_WIDGET_CREATE, + IPC_WIDGET_CREATESUBWIN, + IPC_WIDGET_DELETE, + IPC_WIDGET_SETFOCUS, + IPC_WIDGET_SETFLAGS, + IPC_WIDGET_SETSIZE, + IPC_WIDGET_SETTEXT, + IPC_WIDGET_SETCOLOUR, - - // Request (Client->Server->Client) messages - MSG_WIDGET_GETTEXT, - - // Event (Server->Client) messages - MSG_WIDGET_FIRE, - MSG_WIDGET_KEYPRESS, - MSG_WIDGET_MOUSEBTN, + IPC_WIDGET_GETTEXT, + + N_IPC_WIDGET }; - typedef struct { uint32_t Parent; @@ -38,7 +32,7 @@ typedef struct uint32_t Type; uint32_t Flags; char DebugName[]; -} tWidgetMsg_Create; +} tWidgetIPC_Create; typedef struct { @@ -48,43 +42,53 @@ typedef struct uint32_t Flags; uint32_t WindowHandle; char DebugName[]; -} tWidgetMsg_CreateSubWin; +} tWidgetIPC_CreateSubWin; typedef struct { uint32_t WidgetID; -} tWidgetMsg_Delete; +} tWidgetIPC_Delete; typedef struct { uint32_t WidgetID; -} tWidgetMsg_SetFocus; +} tWidgetIPC_SetFocus; typedef struct { uint32_t WidgetID; uint32_t Value; uint32_t Mask; -} tWidgetMsg_SetFlags; +} 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 {