X11workbench Toolkit
1.0
|
'base class' structure for TEXT_OBJECT More...
#include <text_object.h>
Data Fields | |
const TEXT_OBJECT_VTABLE * | vtable |
method function pointers (similar to C++ virtual member functions) | |
unsigned int | ulTag |
tag word, always assigned to TEXT_OBJECT_TAG | |
Window | wIDOwner |
owner window (cached from paint/expose handling and/or cursor blink) | |
WB_RECT | rctSel |
select boundary in characters, {0,0,0,0} implies NONE, {-1,x,x,x} implies ALL. if top == bottom, assume single-line | |
WB_RECT | rctHighLight |
highlight rect {0,0,0,0} implies NONE | |
XColor | clrHFG |
highlight FG color | |
XColor | clrHBG |
highlight BG color | |
int | iFileType |
file type - -1=Makefile, 0=plain text, others are 'file type' constants, bit flags to preserve hard tabs, etc. | |
enum _LineFeed_ | iLineFeed |
linefeed type (see enum). LineFeed_NONE implies SINGLE LINE | |
int | iInsMode |
insert mode - 0=overwrite, 1=insert | |
int | iSelMode |
selection mode - 0=normal, 1=line, 2=box | |
int | iScrollMode |
scroll mode - 0=normal, 1='scroll lock' | |
int | iTab |
tab width in characters (0 = system default) | |
int | iRow |
current row (cursor) | |
int | iCol |
current col (cursor) | |
int | iPos |
position within buffer (reserved, MBCS may require it) | |
int | iCursorX |
X position of cursor as last drawn in expose event. | |
int | iCursorY |
Y position of cursor as last drawn in expose event (top of cursor) | |
int | iCursorHeight |
height of cursor as last drawn in expose event (always 1 if 'overwrite' cursor) | |
int | iBlinkState |
cursor blink state | |
int | iDragState |
if '1' bit is set, cursor drag. if '2' bit is set, mouse drag | |
int | iAsc |
font height ascension | |
int | iDesc |
font height descension | |
int | iFontWidth |
average width of font in pixels (mostly for fixed pitch) - cached by 'expose' handler | |
int | iMaxFontWidth |
maximum width of font in pixels (mostly for proportional pitch) - cached by 'expose' handler | |
WB_RECT | rctView |
viewport, in characters (rctView.top is the top visible line, always) | |
WB_RECT | rctWinView |
viewport, in window coordinates, or 'empty' if unknown | |
WB_RECT | rctViewOld |
previous viewport [for invalidating window efficiently] | |
WB_RECT | rctWinViewOld |
previous viewport, in window coordinates [for invalidating window efficiently] | |
void * | pText |
pointer to (abstracted) object containing the text. void pointer allows abstraction. member functions must handle correctly | |
void * | pUndo |
pointer to 'undo' buffer. NULL if empty. | |
void * | pRedo |
pointer to 'redo' buffer. NULL if empty. | |
void * | pColorContext |
a user-controlled 'color context' pointer - can be anything, however | |
unsigned long(* | pColorContextCallback )(struct _text_object_ *, int, int) |
callback function to get the context color of a character. default is NULL. | |
'base class' structure for TEXT_OBJECT
Definition at line 953 of file text_object.h.