Usermode/init - Fixed early free of command, fixed %s on array
[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 eRichText_IPCCalls
23 {
24         IPC_RICHTEXT_SETATTR,
25         IPC_RICHTEXT_SETFONT,
26         IPC_RICHTEXT_DELLINE,
27         IPC_RICHTEXT_ADDLINE,
28         IPC_RICHTEXT_WRITELINE, // Set line contents
29         IPC_RICHTEXT_READLINE,  // Request line contents
30         N_IPC_RICHTEXT
31 };
32
33 struct sRichTextIPC_SetAttr
34 {
35         uint32_t        Attr;
36         uint32_t        Value;
37 };
38
39 struct sRichTextIPC_SetFont
40 {
41         uint16_t        Size;
42         char    Name[];
43 };
44
45 struct sRichTextIPC_AddDelLine
46 {
47         uint32_t        Line;
48 };
49
50 struct sRichTextIPC_ReadLine
51 {
52         uint32_t        Line;
53 };
54
55 struct sRichTextIPC_WriteLine
56 {
57         uint32_t        Line;
58         char    LineData[];
59 };
60
61 enum
62 {
63         // Events
64         MSG_RICHTEXT_KEYPRESS = 0x1000,
65         MSG_RICHTEXT_MOUSEBTN,
66
67         // Sent by server to get a line that is not cached (expects IPC WRITELINE)
68         MSG_RICHTEXT_REQLINE,
69         // Response to IPC READLINE
70         MSG_RICHTEXT_LINEDATA,
71 };
72
73 struct sRichTextMsg_ReqLine
74 {
75         uint32_t        Line;
76 };
77
78 struct sRichTextMsg_LineData
79 {
80         uint32_t        Line;
81         char    LineData[];
82 };
83
84 #endif
85

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