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

Class represents the current state of surrounding text of an input context. More...

#include <fcitx/surroundingtext.h>

Public Member Functions

void invalidate ()
 Reset surrounding text to invalid state.
 
bool isValid () const
 Return whether surrounding text is valid.
 
unsigned int anchor () const
 offset of anchor in character.
 
unsigned int cursor () const
 offset of anchor in character.
 
const std::string & text () const
 
std::string selectedText () const
 
void setText (const std::string &text, unsigned int cursor, unsigned int anchor)
 Set current of surrounding text. More...
 
void setCursor (unsigned int cursor, unsigned int anchor)
 Set current cursor and anchor of surrounding text. More...
 
void deleteText (int offset, unsigned int size)
 Delete surrounding text with offset and size. More...
 

Detailed Description

Class represents the current state of surrounding text of an input context.

Definition at line 28 of file surroundingtext.h.


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