Hasty Badger
Small UI library (a branch of Turbo Badger)
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
tb::TBCaret Class Reference

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)
 
TBTextFragmentGetFragment ()
 

Public Attributes

TBStyleEditstyledit
 
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
 

Detailed Description

The caret in a TBStyleEdit.


The documentation for this class was generated from the following files: