Hasty Badger
Small UI library (a branch of Turbo Badger)
|
The caret in a TBStyleEdit. More...
#include <tb_style_edit.h>
Public Member Functions | |
TBCaret (TBStyleEdit *styledit) | |
void | Invalidate () |
void | UpdatePos () |
bool | Move (bool forward, bool word) |
bool | Place (const TBPoint &point) |
bool | Place (TBBlock *block, int ofs, bool allow_snap=true, bool snap_forward=false) |
void | Place (TB_CARET_POS place) |
void | AvoidLineBreak () |
void | Paint (int32_t translate_x, int32_t translate_y) |
void | ResetBlink () |
void | UpdateWantedX () |
int32_t | GetGlobalOfs () const |
void | SetGlobalOfs (int32_t gofs, bool allow_snap=true, bool snap_forward=false) |
TBTextFragment * | GetFragment () |
Public Attributes | |
TBStyleEdit * | styledit |
int32_t | x |
int32_t | y |
Relative to the styledit. | |
int32_t | width |
int32_t | height |
int32_t | wanted_x |
bool | on |
bool | prefer_first |
TBTextOfs | pos |
The caret in a TBStyleEdit.