A change in the state of an input field.
More...
#include <text_editing_delta.h>
A change in the state of an input field.
Definition at line 16 of file text_editing_delta.h.
◆ TextEditingDelta() [1/5]
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.
14 : old_text_(text_before_change),
16 delta_start_(range.start()),
17 delta_end_(range.start() + range.length()) {}
◆ TextEditingDelta() [2/5]
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.
22 : old_text_(fml::Utf8ToUtf16(text_before_change)),
23 delta_text_(fml::Utf8ToUtf16(text)),
24 delta_start_(range.start()),
25 delta_end_(range.start() + range.length()) {}
◆ TextEditingDelta() [3/5]
flutter::TextEditingDelta::TextEditingDelta |
( |
const std::u16string & |
text | ) |
|
|
explicit |
Definition at line 27 of file text_editing_delta.cc.
28 : old_text_(text), delta_text_(u
""), delta_start_(-1), delta_end_(-1) {}
◆ TextEditingDelta() [4/5]
flutter::TextEditingDelta::TextEditingDelta |
( |
const std::string & |
text | ) |
|
|
explicit |
◆ ~TextEditingDelta()
virtual flutter::TextEditingDelta::~TextEditingDelta |
( |
| ) |
|
|
virtualdefault |
◆ TextEditingDelta() [5/5]
◆ delta_end()
int flutter::TextEditingDelta::delta_end |
( |
| ) |
const |
|
inline |
◆ delta_start()
int flutter::TextEditingDelta::delta_start |
( |
| ) |
const |
|
inline |
◆ delta_text()
std::string flutter::TextEditingDelta::delta_text |
( |
| ) |
const |
|
inline |
◆ old_text()
std::string flutter::TextEditingDelta::old_text |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool flutter::TextEditingDelta::operator!= |
( |
const TextEditingDelta & |
rhs | ) |
const |
|
inline |
◆ operator=()
◆ operator==()
bool flutter::TextEditingDelta::operator== |
( |
const TextEditingDelta & |
rhs | ) |
const |
|
inline |
Definition at line 47 of file text_editing_delta.h.
48 return old_text_ == rhs.old_text_ && delta_text_ == rhs.delta_text_ &&
49 delta_start_ == rhs.delta_start_ && delta_end_ == rhs.delta_end_;
The documentation for this struct was generated from the following files: