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

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

TBStyleEditstyledit
 
TBTextOfs start
 
TBTextOfs stop
 
bool m_const
 

Detailed Description

Handles the selected text in a TBStyleEdit.


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