3 * \author John Hodge (thePowersGang)
4 * \brief AxWin Control Messages and structures
6 #ifndef _AXWIN_MESSAGES_H
7 #define _AXWIN_MESSAGES_H
11 typedef struct sAxWin_Message tAxWin_Message;
21 MSG_SREQ_NEWWINDOW, // (short x, y, w, h, uint32_t flags)
22 MSG_SREQ_GETFLAGS, MSG_SREQ_SETFLAGS,
23 MSG_SREQ_GETRECT, MSG_SREQ_SETRECT,
27 MSG_SREQ_LINE, MSG_SREQ_CURVE,
28 MSG_SREQ_RECT, MSG_SREQ_FILLRECT,
29 MSG_SREQ_RIMG, MSG_SREQ_SIMG, // Register/Set Image
30 MSG_SREQ_SETFONT, MSG_SREQ_PUTTEXT,
34 MSG_SRSP_WINDOW, // Returns the new window ID
35 MSG_SRSP_IMG, // Returns the image ID
40 // --- Server Requests (Requests from the client of the server)
42 * \brief Server Request - Ping (Get Server Version)
44 struct sAxWin_SReq_Ping
49 * \brief Server Request - New Window
50 * \see eAxWin_Messages.MSG_SREQ_NEWWINDOW
52 struct sAxWin_SReq_NewWindow
59 // --- Server Responses
61 * \brief Server Response - Pong
62 * \see eAxWin_Messages.MSG_SRSP_PONG
64 struct sAxWin_SRsp_Pong
72 * \brief Server Response - New Window
73 * \see eAxWin_Messages.MSG_SRSP_NEWWINDOW
75 struct sAxWin_SRsp_NewWindow
81 // === Core Message Structure
83 * \brief Overarching Message Structure
84 * \note sizeof(tAxWin_Message) is never valid
89 uint16_t Size; //!< Size in DWORDS
92 struct sAxWin_SReq_Ping SReq_Pong;
93 struct sAxWin_SReq_NewWindow SReq_NewWindow;
96 struct sAxWin_SRsp_Pong SRsp_Pong;
97 struct sAxWin_SRsp_NewWindow SRsp_Window;