5#ifndef FLUTTER_SHELL_PLATFORM_COMMON_TEXT_INPUT_MODEL_H_
6#define FLUTTER_SHELL_PLATFORM_COMMON_TEXT_INPUT_MODEL_H_
11#include "flutter/shell/platform/common/text_range.h"
216 bool DeleteSelected();
223 return composing_ ? composing_range_ :
text_range();
226 std::u16string text_;
229 bool composing_ =
false;
TextRange selection() const
bool MoveCursorToBeginning()
std::string GetText() const
bool DeleteSurrounding(int offset_from_cursor, int count)
virtual ~TextInputModel()
void AddText(const std::u16string &text)
void AddCodePoint(char32_t c)
bool SetComposingRange(const TextRange &range, size_t cursor_offset)
int GetCursorOffset() const
TextRange text_range() const
TextRange composing_range() const
bool SetSelection(const TextRange &range)
bool SetText(const std::string &text, const TextRange &selection=TextRange(0), const TextRange &composing_range=TextRange(0))
void UpdateComposingText(const std::u16string &text, const TextRange &selection)
SkRange< size_t > TextRange