#include <text_range.h>
Public Member Functions | |
TextRange (size_t position) | |
TextRange (size_t base, size_t extent) | |
TextRange (const TextRange &)=default | |
TextRange & | operator= (const TextRange &)=default |
virtual | ~TextRange ()=default |
size_t | base () const |
void | set_base (size_t pos) |
size_t | extent () const |
void | set_extent (size_t pos) |
size_t | start () const |
void | set_start (size_t pos) |
size_t | end () const |
void | set_end (size_t pos) |
size_t | position () const |
size_t | length () const |
bool | collapsed () const |
bool | reversed () const |
bool | Contains (size_t position) const |
bool | Contains (const TextRange &range) const |
bool | operator== (const TextRange &other) const |
Definition at line 19 of file text_range.h.
|
inlineexplicit |
Definition at line 21 of file text_range.h.
|
inlineexplicit |
Definition at line 22 of file text_range.h.
|
default |
|
virtualdefault |
|
inline |
Definition at line 30 of file text_range.h.
Referenced by flutter::TextInputModel::SelectToBeginning(), flutter::TextInputModel::SelectToEnd(), and flutter::TEST().
|
inline |
Definition at line 77 of file text_range.h.
Referenced by flutter::TextInputModel::CommitComposing(), flutter::TextInputModel::MoveCursorBack(), flutter::TextInputModel::MoveCursorForward(), flutter::TextInputModel::MoveCursorToBeginning(), flutter::TextInputModel::MoveCursorToEnd(), flutter::TextInputModel::SelectToBeginning(), flutter::TextInputModel::SelectToEnd(), flutter::TextInputModel::SetSelection(), flutter::TextInputModel::SetText(), flutter::TEST(), and flutter::TextInputModel::UpdateComposingText().
|
inline |
|
inline |
Definition at line 83 of file text_range.h.
References end(), position(), and start().
Referenced by flutter::TEST().
|
inline |
Definition at line 54 of file text_range.h.
Referenced by flutter::TextInputModel::Backspace(), flutter::TextInputModel::CommitComposing(), Contains(), flutter::TextInputModel::Delete(), flutter::TextInputModel::DeleteSurrounding(), length(), flutter::TextInputModel::MoveCursorForward(), flutter::TextInputModel::MoveCursorToEnd(), flutter::TextInputModel::SelectToEnd(), and flutter::TEST().
|
inline |
Definition at line 36 of file text_range.h.
Referenced by flutter::TextInputModel::DeleteSurrounding(), flutter::TextInputModel::GetCursorOffset(), flutter::TEST(), and flutter::TextInputModel::UpdateComposingText().
|
inline |
Definition at line 74 of file text_range.h.
References end(), and start().
Referenced by flutter::TextInputModel::AddText(), flutter::TextInputPlugin::ComposeCommitHook(), flutter::TEST(), and flutter::TextInputModel::UpdateComposingText().
|
inline |
Definition at line 92 of file text_range.h.
|
inline |
Definition at line 68 of file text_range.h.
Referenced by flutter::TextInputModel::AddText(), flutter::TextInputModel::Backspace(), Contains(), flutter::TextInputModel::Delete(), flutter::TextInputModel::MoveCursorBack(), flutter::TextInputModel::MoveCursorForward(), flutter::TextInputModel::MoveCursorToBeginning(), flutter::TextInputModel::MoveCursorToEnd(), flutter::TextInputModel::SelectToBeginning(), flutter::TextInputModel::SelectToEnd(), and flutter::TEST().
|
inline |
Definition at line 80 of file text_range.h.
Referenced by flutter::TEST().
|
inline |
|
inline |
Definition at line 57 of file text_range.h.
Referenced by flutter::TextInputModel::AddText(), flutter::TextInputModel::Backspace(), flutter::TextInputModel::Delete(), flutter::TextInputModel::DeleteSurrounding(), flutter::TEST(), and flutter::TextInputModel::UpdateComposingText().
|
inline |
|
inline |
Definition at line 45 of file text_range.h.
Referenced by flutter::TEST().
|
inline |
Definition at line 42 of file text_range.h.
Referenced by flutter::TextInputModel::AddText(), flutter::TextInputModel::BeginComposing(), flutter::TextInputPlugin::ComposeCommitHook(), Contains(), flutter::TextInputModel::DeleteSurrounding(), length(), flutter::TextInputModel::MoveCursorBack(), flutter::TextInputModel::MoveCursorToBeginning(), flutter::TextInputModel::SelectToBeginning(), flutter::TextInputModel::SetComposingRange(), flutter::TEST(), and flutter::TextInputModel::UpdateComposingText().