Hasty Badger
Small UI library (a branch of Turbo Badger)
|
Handles the selected text in a TBStyleEdit. More...
#include <tb_style_edit.h>
Public Member Functions | |
TBSelection (TBStyleEdit *styledit) | |
TBSelection (const TBStyleEdit *styledit) | |
void | Invalidate () const |
void | Select (const TBTextOfs &new_start, const TBTextOfs &new_stop) |
void | Select (const TBPoint &from, const TBPoint &to) |
void | Select (int glob_ofs_from, int glob_ofs_to) |
void | SelectToCaret (TBBlock *old_caret_block, int32_t old_caret_ofs) |
void | SelectAll () |
void | SelectNothing () |
void | CorrectOrder () |
void | CopyToClipboard () |
bool | IsBlockSelected (TBBlock *block) const |
bool | IsFragmentSelected (TBTextFragment *elm) const |
bool | IsSelected () const |
void | RemoveContent () |
bool | GetText (TBStr &text) const |
Public Attributes | |
TBStyleEdit * | styledit |
TBTextOfs | start |
TBTextOfs | stop |
bool | m_const |
Handles the selected text in a TBStyleEdit.