A change in the state of an input field. More...
#include <text_editing_delta.h>
Public Member Functions | |
| TextEditingDelta (const std::u16string &text_before_change, const TextRange &range, const std::u16string &text) | |
| TextEditingDelta (const std::string &text_before_change, const TextRange &range, const std::string &text) | |
| TextEditingDelta (const std::u16string &text) | |
| TextEditingDelta (const std::string &text) | |
| virtual | ~TextEditingDelta ()=default |
| std::string | old_text () const |
| std::string | delta_text () const |
| int | delta_start () const |
| Get the delta_start_ value. More... | |
| int | delta_end () const |
| Get the delta_end_ value. More... | |
| bool | operator== (const TextEditingDelta &rhs) const |
| bool | operator!= (const TextEditingDelta &rhs) const |
| TextEditingDelta (const TextEditingDelta &other)=default | |
| TextEditingDelta & | operator= (const TextEditingDelta &other)=default |
A change in the state of an input field.
Definition at line 16 of file text_editing_delta.h.
| flutter::TextEditingDelta::TextEditingDelta | ( | const std::u16string & | text_before_change, |
| const TextRange & | range, | ||
| const std::u16string & | text | ||
| ) |
Definition at line 11 of file text_editing_delta.cc.
| flutter::TextEditingDelta::TextEditingDelta | ( | const std::string & | text_before_change, |
| const TextRange & | range, | ||
| const std::string & | text | ||
| ) |
Definition at line 19 of file text_editing_delta.cc.
|
explicit |
Definition at line 27 of file text_editing_delta.cc.
|
explicit |
Definition at line 30 of file text_editing_delta.cc.
|
virtualdefault |
|
default |
|
inline |
Get the delta_end_ value.
Definition at line 45 of file text_editing_delta.h.
Referenced by flutter::TEST().
|
inline |
Get the delta_start_ value.
Definition at line 42 of file text_editing_delta.h.
Referenced by flutter::TEST().
|
inline |
Get the delta_text value.
All strings are stored as UTF16 but converted to UTF8 when accessed.
Definition at line 39 of file text_editing_delta.h.
Referenced by flutter::TEST().
|
inline |
Get the old_text_ value.
All strings are stored as UTF16 but converted to UTF8 when accessed.
Definition at line 34 of file text_editing_delta.h.
Referenced by operator=(), and flutter::TEST().
|
inline |
Definition at line 52 of file text_editing_delta.h.
|
default |
References old_text().
|
inline |
Definition at line 47 of file text_editing_delta.h.