6dcf9a2c73e20f5c9f9a405a4be8218445199d60
[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         
32         MSG_RICHTEXT_SENDLINE,  // Bi-directional
33         MSG_RICHTEXT_REQLINE    // Bi-directional
34 };
35
36 struct sRichTextMsg_SetAttr
37 {
38         uint32_t        Attr;
39         uint32_t        Value;
40 };
41
42 struct sRichTextMsg_SetFont
43 {
44         uint16_t        Size;
45         char    Name[];
46 };
47
48 struct sRichTextMsg_AddDelLine
49 {
50         uint32_t        Line;
51 };
52
53 struct sRichTextMsg_ReqLine
54 {
55         uint32_t        Line;
56 };
57
58 struct sRichTextMsg_SendLine
59 {
60         uint32_t        Line;
61         char    LineData[];
62 };
63
64 #endif
65

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