class TextSelection
Defined at line 3200 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/natural_types.h
A range of text that represents a selection. Although strings in FIDL's wire
format are UTF-8 encoded, these indices are measured in UTF-16 code units
for legacy reasons. These text input APIs will eventually be replaced by
fuchsia.ui.text, which uses code points instead.
Text selection is always directional. Direction should be determined by
comparing base and extent.
Public Methods
void TextSelection (Storage_ storage)
void TextSelection (int64_t base, int64_t extent, ::fuchsia_ui_input::TextAffinity affinity)
void TextSelection ()
Default constructs a |TextSelection| only if all of its members are default constructible.
Defined at line 3210 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/natural_types.h
void TextSelection (TextSelection && )
Defined at line 3213 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/natural_types.h
void TextSelection (const TextSelection & other)
TextSelection & operator= (TextSelection && )
Defined at line 3214 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/natural_types.h
TextSelection & operator= (const TextSelection & other)
bool operator== (const TextSelection & other)
bool operator!= (const TextSelection & other)
int64_t base ()
The offset at which the selection originates, as measured in UTF-16 code units.
Might be larger than, smaller than, or equal to extent.
int64_t & base ()
The offset at which the selection originates, as measured in UTF-16 code units.
Might be larger than, smaller than, or equal to extent.
TextSelection & base (int64_t value)
The offset at which the selection originates, as measured in UTF-16 code units.
Might be larger than, smaller than, or equal to extent.
int64_t extent ()
The offset at which the selection terminates, as measured in UTF-16 code units.
When the user uses the arrow keys to adjust the selection, this is the
value that changes. Similarly, if the current theme paints a caret on one
side of the selection, this is the location at which to paint the caret.
Might be larger than, smaller than, or equal to base.
int64_t & extent ()
The offset at which the selection terminates, as measured in UTF-16 code units.
When the user uses the arrow keys to adjust the selection, this is the
value that changes. Similarly, if the current theme paints a caret on one
side of the selection, this is the location at which to paint the caret.
Might be larger than, smaller than, or equal to base.
TextSelection & extent (int64_t value)
The offset at which the selection terminates, as measured in UTF-16 code units.
When the user uses the arrow keys to adjust the selection, this is the
value that changes. Similarly, if the current theme paints a caret on one
side of the selection, this is the location at which to paint the caret.
Might be larger than, smaller than, or equal to base.
::fuchsia_ui_input::TextAffinity affinity ()
If the text range is collapsed and has more than one visual location
(e.g., occurs at a line break), which of the two locations to use when
painting the caret.
::fuchsia_ui_input::TextAffinity & affinity ()
If the text range is collapsed and has more than one visual location
(e.g., occurs at a line break), which of the two locations to use when
painting the caret.
TextSelection & affinity (::fuchsia_ui_input::TextAffinity value)
If the text range is collapsed and has more than one visual location
(e.g., occurs at a line break), which of the two locations to use when
painting the caret.
void TextSelection (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalStructCodingTraits