2 * Acess2 Window Manager v3
3 * - By John Hodge (thePowersGang)
6 * - IPC Message format definition
7 * - Shared between library and server
9 #ifndef _IPCMESSAGES_H_
10 #define _IPCMESSAGES_H_
14 typedef struct sAxWin_IPCMessage tAxWin_IPCMessage;
15 typedef struct sIPCMsg_ReturnInt tIPCMsg_ReturnInt;
16 typedef struct sIPCMsg_CreateWin tIPCMsg_CreateWin;
17 typedef struct sIPCMsg_Boolean tIPCMsg_Boolean;
18 typedef struct sIPCMsg_SetWindowPos tIPCMsg_SetWindowPos;
19 typedef struct sIPCMsg_SendMsg tIPCMsg_SendMsg;
20 typedef struct sIPCMsg_RegAction tIPCMsg_RegAction;
22 typedef struct sIPCMsg_GetDisplayDims tIPCMsg_GetDisplayDims;
23 typedef struct sIPCMsg_RetDisplayDims tIPCMsg_RetDisplayDims;
26 * \name Flags for IPC Messages
29 //! Request a return value
30 #define IPCMSG_FLAG_RETURN 0x01
31 //! IPC Message for renderer
32 #define IPCMSG_FLAG_RENDERER 0x80
37 struct sAxWin_IPCMessage
46 struct sIPCMsg_ReturnInt
51 struct sIPCMsg_CreateWin
58 struct sIPCMsg_SendMsg
60 uint32_t Remote; // Dest/Source for Server/Client bound
66 struct sIPCMsg_Boolean
71 struct sIPCMsg_SetWindowPos
79 struct sIPCMsg_RegAction
85 struct sIPCMsg_GetDisplayDims
90 struct sIPCMsg_RetDisplayDims
98 enum eAxWin_IPCMessageTypes
100 IPCMSG_PING, //!< Get the server version
101 IPCMSG_GETDISPLAYCOUNT,
102 IPCMSG_GETDISPLAYDIMS,
104 IPCMSG_SENDMSG, //!< Send a message to another window (or to self)
105 IPCMSG_CREATEWIN, //!< Create a window
106 IPCMSG_DESTROYWIN, //!< Destroy a window
107 IPCMSG_SETWINTITLE, //!< Set window title
108 IPCMSG_SHOWWINDOW, //!< Show/Hide a window
109 IPCMSG_DECORATEWINDOW, //!< Enable/Disable decorations
110 IPCMSG_FOCUSWINDOW, //!< Give a window focus (no data)
111 IPCMSG_SETWINPOS, //!< Set a window position
112 IPCMSG_REGACTION //!< Register an action name