AxWin3 - Heaps of bugfixes to RichText renderer
[tpg/acess2.git] / Usermode / Libraries / libaxwin3.so_src / include_exp / axwin3 / richtext.h
index a50f463..661c02b 100644 (file)
 
 typedef        int     (*tAxWin3_RichText_KeyHandler)(tHWND Window, int bPress, uint32_t Sym, uint32_t Unicode);
 typedef int    (*tAxWin3_RichText_MouseHandler)(tHWND Window, int bPress, int Button, int Row, int Col);
+typedef int    (*tAxWin3_RichText_LineHandler)(tHWND Window, int Row);
 
-#define AXWIN3_RICHTEXT_NOSCROLL       0x0001
+#define AXWIN3_RICHTEXT_NOSCROLL       0x0001  // Disables server-side scrolling
+#define AXWIN3_RICHTEXT_READONLY       0x0002  // Disables automatic insertion of translated characters
 enum eAxWin3_RichText_CursorType {
        AXWIN3_RICHTEXT_CURSOR_NONE,
        AXWIN3_RICHTEXT_CURSOR_VLINE,   // Vertical line
@@ -24,6 +26,10 @@ enum eAxWin3_RichText_CursorType {
 extern tHWND   AxWin3_RichText_CreateWindow(tHWND Parent, int Flags);
 extern void    AxWin3_RichText_SetKeyHandler(tHWND Window, tAxWin3_RichText_KeyHandler Handler);
 extern void    AxWin3_RichText_SetMouseHandler(tHWND Window, tAxWin3_RichText_MouseHandler Handler);
+/**
+ * \brief Sets the function called when the server requests an update on a line's contents
+ */
+extern void    AxWin3_RichText_SetLineHandler(tHWND Window, tAxWin3_RichText_LineHandler Handler);
 extern void    AxWin3_RichText_EnableScroll(tHWND Window, int bEnable);
 extern void    AxWin3_RichText_SetLineCount(tHWND Window, int Lines);
 extern void    AxWin3_RichText_SetColCount(tHWND Window, int Cols);
@@ -33,6 +39,7 @@ extern void   AxWin3_RichText_SetFont(tHWND Window, const char *FontName, int Poin
 extern void    AxWin3_RichText_SetCursorType(tHWND Window, int Type);
 extern void    AxWin3_RichText_SetCursorBlink(tHWND Window, int bBlink);
 extern void    AxWin3_RichText_SetCursorPos(tHWND Window, int Row, int Column);
+extern void    AxWin3_RichText_SendLine(tHWND Window, int Line, const char *Text);
 
 #endif
 

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