X11workbench Toolkit
1.0
|
Structures associated with Text Objects. More...
Data Structures | |
struct | s_text_object_vtable |
'vtable' structure for TEXT_OBJECT More... | |
struct | s_text_object |
'base class' structure for TEXT_OBJECT More... | |
struct | s_text_buffer |
'base class' structure for TEXT_OBJECT More... | |
Typedefs | |
typedef struct s_text_object_vtable | TEXT_OBJECT_VTABLE |
'vtable' structure for TEXT_OBJECT More... | |
typedef struct s_text_object | TEXT_OBJECT |
'base class' structure for TEXT_OBJECT More... | |
typedef struct s_text_buffer | TEXT_BUFFER |
'base class' structure for TEXT_OBJECT More... | |
Structures associated with Text Objects.
The structures associated with Text Objects, including the 'VTABLE' structure and associated Text Object 'member' functions
typedef struct s_text_buffer TEXT_BUFFER |
'base class' structure for TEXT_OBJECT
The structure is assumed to have a variable length array 'aLines' at the end, which extends beyond the length of the base structure. 'nArraySize' indicates the maximum size of this array, and 'nEntries' indicates the (contiguous) actual size of the array, starting at element [0].
This is a simple array structure, and to insert a line in the middle you will need to use 'memmove()' following a call to WBCheckReAllocTextBuffer(), and then re-assign 'nEntries' as needed. New entries must be allocated via 'WBAlloc()'.
To allocate a new structure, call WBAllocTextBuffer(). To free an allocated structure, call WBFreeTextBuffer().
The 'cached information' data members are maintained internally. You should not alter them. You can re-evaluate them at any time by calling WBTextBufferLineChange() and WBTextBufferRefreshCache()
Definition at line 1139 of file text_object.h.
typedef struct s_text_object TEXT_OBJECT |
'base class' structure for TEXT_OBJECT
Definition at line 209 of file text_object.h.
typedef struct s_text_object_vtable TEXT_OBJECT_VTABLE |
'vtable' structure for TEXT_OBJECT
Definition at line 866 of file text_object.h.