c11b8644e79e8e4600e5d7992200d7c6443b31fd
[tpg/acess2.git] / Usermode / include / axwin / messages.h
1 /**
2  * \file messages.h
3  * \author John Hodge (thePowersGang)
4  * \brief AxWin Control Messages and structures
5  */
6 #ifndef _AXWIN_MESSAGES_H
7 #define _AXWIN_MESSAGES_H
8
9 typedef struct sAxWin_Message   tAxWin_Message;
10
11 /**
12  * \brief Message IDs
13  */
14 enum eAxWin_Messages
15 {
16         // Server Requests
17         MSG_SREQ_PING,
18         // - Windows
19         MSG_SREQ_NEWWINDOW,
20         MSG_SREQ_GETFLAGS,      MSG_SREQ_SETFLAGS,
21         MSG_SREQ_GETRECT,       MSG_SREQ_SETRECT,
22         // - Drawing
23         MSG_SREQ_SETCOL,
24         MSG_SREQ_PSET,
25         MSG_SREQ_LINE,  MSG_SREQ_CURVE,
26         MSG_SREQ_RECT,  MSG_SREQ_FILLRECT,
27         MSG_SREQ_RIMG,  MSG_SREQ_SIMG,  // Register/Set Image
28         MSG_SREQ_SETFONT,       MSG_SREQ_PUTTEXT,
29         
30         // Server Responses
31         MSG_SRSP_PONG,
32         MSG_SRSP_IMG,   // Returns the image ID
33         
34         NUM_MSG
35 };
36
37 /**
38  * \brief New Window Request structure
39  */
40 struct sAxWin_Req_NewWindow
41 {
42         
43 };
44
45 /**
46  * \brief Overarching Message Structure
47  * \note sizeof(tAxWin_Message) is never valid
48  */
49 struct sAxWin_Message
50 {
51         uint16_t        ID;
52         uint16_t        Size;   //!< Size in DWORDS
53 };
54
55 #endif

UCC git Repository :: git.ucc.asn.au