|
Flutter Linux Embedder
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_SHELL_PLATFORM_COMMON_TEXT_INPUT_MODEL_H_
6 #define FLUTTER_SHELL_PLATFORM_COMMON_TEXT_INPUT_MODEL_H_
27 bool SetText(
const std::string& text,
103 void AddText(
const std::u16string& text);
109 void AddText(
const std::string& text);
216 bool DeleteSelected();
223 return composing_ ? composing_range_ :
text_range();
226 std::u16string text_;
227 TextRange selection_ = TextRange(0);
228 TextRange composing_range_ = TextRange(0);
229 bool composing_ =
false;
234 #endif // FLUTTER_SHELL_PLATFORM_COMMON_TEXT_INPUT_MODEL_H_
bool MoveCursorToBeginning()
bool SetText(const std::string &text, const TextRange &selection=TextRange(0), const TextRange &composing_range=TextRange(0))
TextRange text_range() const
TextRange composing_range() const
TextRange selection() const
virtual ~TextInputModel()
bool DeleteSurrounding(int offset_from_cursor, int count)
std::string GetText() const
bool SetSelection(const TextRange &range)
void UpdateComposingText(const std::u16string &text, const TextRange &selection)
bool SetComposingRange(const TextRange &range, size_t cursor_offset)
int GetCursorOffset() const
void AddText(const std::u16string &text)
void AddCodePoint(char32_t c)