AxWin3 - Adding RichText rendering, no sscanf so doesn't compile
[tpg/acess2.git] / Usermode / Applications / axwin3_src / include / richtext_messages.h
1 /*
2  * Acess2 Window Manager v3
3  * - By John Hodge (thePowersGang)
4  *
5  * richtext_messages.h
6  * - Formatted Text Field
7  */
8 #ifndef _RICHTEXT_MESSAGES_H_
9 #define _RICHTEXT_MESSAGES_H_
10
11 enum eRichText_Attrs {
12         _ATTR_DEFBG,
13         _ATTR_DEFFG,
14         _ATTR_SCROLL,
15         _ATTR_LINECOUNT,
16         _ATTR_COLCOUNT,
17         _ATTR_CURSOR,
18         _ATTR_CURSORBLINK,
19         _ATTR_CURSORPOS,
20 };
21
22 enum
23 {
24         // Calls
25         MSG_RICHTEXT_SETATTR,
26         MSG_RICHTEXT_SETFONT,
27         MSG_RICHTEXT_DELLINE,
28         MSG_RICHTEXT_ADDLINE,
29         
30         // Events
31         MSG_RICHTEXT_KEYPRESS,
32         MSG_RICHTEXT_MOUSEBTN,
33
34         // Bi-directional messages
35         // - Sent by server to get a line that is not cached
36         // - Sent by client to read line contents
37         MSG_RICHTEXT_REQLINE,
38         // - Response to _REQLINE
39         MSG_RICHTEXT_SENDLINE,
40 };
41
42 struct sRichTextMsg_SetAttr
43 {
44         uint32_t        Attr;
45         uint32_t        Value;
46 };
47
48 struct sRichTextMsg_SetFont
49 {
50         uint16_t        Size;
51         char    Name[];
52 };
53
54 struct sRichTextMsg_AddDelLine
55 {
56         uint32_t        Line;
57 };
58
59 struct sRichTextMsg_ReqLine
60 {
61         uint32_t        Line;
62 };
63
64 struct sRichTextMsg_SendLine
65 {
66         uint32_t        Line;
67         char    LineData[];
68 };
69
70 #endif
71

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