Usermode/AxWin3 - Clean up unneeded (and silly) log message
[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         IPC_RICHTEXT_SCROLLRANGE,
31         N_IPC_RICHTEXT
32 };
33
34 struct sRichTextIPC_SetAttr
35 {
36         uint32_t        Attr;
37         uint32_t        Value;
38 };
39
40 struct sRichTextIPC_SetFont
41 {
42         uint16_t        Size;
43         char    Name[];
44 };
45
46 struct sRichTextIPC_AddDelLine
47 {
48         uint32_t        Line;
49 };
50
51 struct sRichTextIPC_ReadLine
52 {
53         uint32_t        Line;
54 };
55
56 struct sRichTextIPC_WriteLine
57 {
58         uint32_t        Line;
59         char    LineData[];
60 };
61
62 struct sRichTextIPC_ScrollRange
63 {
64         uint32_t        First;
65         uint16_t        Range;
66          int16_t        Count;
67 };
68
69 enum
70 {
71         // Events
72         MSG_RICHTEXT_KEYPRESS = 0x1000,
73         MSG_RICHTEXT_MOUSEBTN,
74
75         // Sent by server to get a line that is not cached (expects IPC WRITELINE)
76         MSG_RICHTEXT_REQLINE,
77         // Response to IPC READLINE
78         MSG_RICHTEXT_LINEDATA,
79 };
80
81 struct sRichTextMsg_ReqLine
82 {
83         uint32_t        Line;
84 };
85
86 struct sRichTextMsg_LineData
87 {
88         uint32_t        Line;
89         char    LineData[];
90 };
91
92 #endif
93

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