AxWin - Adding clientside RichText render
[tpg/acess2.git] / Usermode / Applications / axwin3_src / include / richtext_messages.h
diff --git a/Usermode/Applications/axwin3_src/include/richtext_messages.h b/Usermode/Applications/axwin3_src/include/richtext_messages.h
new file mode 100644 (file)
index 0000000..6dcf9a2
--- /dev/null
@@ -0,0 +1,65 @@
+/*
+ * Acess2 Window Manager v3
+ * - By John Hodge (thePowersGang)
+ *
+ * richtext_messages.h
+ * - Formatted Text Field
+ */
+#ifndef _RICHTEXT_MESSAGES_H_
+#define _RICHTEXT_MESSAGES_H_
+
+enum eRichText_Attrs {
+       _ATTR_DEFBG,
+       _ATTR_DEFFG,
+       _ATTR_SCROLL,
+       _ATTR_LINECOUNT,
+       _ATTR_COLCOUNT,
+       _ATTR_CURSOR,
+       _ATTR_CURSORBLINK,
+       _ATTR_CURSORPOS,
+};
+
+enum
+{
+       // Calls
+       MSG_RICHTEXT_SETATTR,
+       MSG_RICHTEXT_SETFONT,
+       MSG_RICHTEXT_DELLINE,
+       MSG_RICHTEXT_ADDLINE,
+       
+       // Events
+       
+       MSG_RICHTEXT_SENDLINE,  // Bi-directional
+       MSG_RICHTEXT_REQLINE    // Bi-directional
+};
+
+struct sRichTextMsg_SetAttr
+{
+       uint32_t        Attr;
+       uint32_t        Value;
+};
+
+struct sRichTextMsg_SetFont
+{
+       uint16_t        Size;
+       char    Name[];
+};
+
+struct sRichTextMsg_AddDelLine
+{
+       uint32_t        Line;
+};
+
+struct sRichTextMsg_ReqLine
+{
+       uint32_t        Line;
+};
+
+struct sRichTextMsg_SendLine
+{
+       uint32_t        Line;
+       char    LineData[];
+};
+
+#endif
+

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