2 * Acess2 GUI Version 3 (AxWin3)
3 * - By John Hodge (thePowersGang)
6 * - Rich Text line editor
8 #ifndef _AXWIN3_RICHTEXT_H_
9 #define _AXWIN3_RICHTEXT_H_
13 typedef int (*tAxWin3_RichText_KeyHandler)(tHWND Window, int bPress, uint32_t Sym, uint32_t Unicode);
14 typedef int (*tAxWin3_RichText_MouseHandler)(tHWND Window, int bPress, int Button, int Row, int Col);
16 #define AXWIN3_RICHTEXT_NOSCROLL 0x0001
17 enum eAxWin3_RichText_CursorType {
18 AXWIN3_RICHTEXT_CURSOR_NONE,
19 AXWIN3_RICHTEXT_CURSOR_VLINE, // Vertical line
20 AXWIN3_RICHTEXT_CURSOR_ULINE, // Underline
21 AXWIN3_RICHTEXT_CURSOR_INV, // Inverted
24 tHWND AxWin3_RichText_CreateWindow(tHWND Parent, int Flags);
25 void AxWin3_RichText_EnableScroll(tHWND Parent, int bEnable);
26 void AxWin3_RichText_SetKeyHandler(tHWND Window, tAxWin3_RichText_KeyHandler Handler);
27 void AxWin3_RichText_SetMouseHandler(tHWND Window, tAxWin3_RichText_MouseHandler Handler);
28 void AxWin3_RichText_SetBackground(tHWND Window, uint32_t ARGB_Colour);
29 void AxWin3_RichText_SetDefaultColour(tHWND Window, uint32_t ARGB_Colour);
30 void AxWin3_RichText_SetFont(tHWND Window, const char *FontName, int PointSize);
31 void AxWin3_RichText_SetCursorType(tHWND Parent, int Type);
32 void AxWin3_RichText_SetCursorBlink(tHWND Parent, int bBlink);
33 void AxWin3_RichText_SetCursorPos(tHWND Window, int Row, int Column);