Public Member Functions | List of all members
fcitx::Text Class Reference

A class represents a formatted string. More...

#include <fcitx/text.h>

Public Member Functions

 Text (std::string text, TextFormatFlags flag=TextFormatFlag::NoFlag)
int cursor () const
 Get cursor by byte.
void setCursor (int pos=-1)
 Set cursor by byte.
void clear ()
void append (std::string str, TextFormatFlags flag=TextFormatFlag::NoFlag)
const std::string & stringAt (int idx) const
TextFormatFlags formatAt (int idx) const
size_t size () const
bool empty () const
size_t textLength () const
std::string toString () const
std::string toStringForCommit () const
std::vector< TextsplitByLine () const
 Split Text object into lines. More...

Detailed Description

A class represents a formatted string.

Definition at line 28 of file text.h.

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