class TextSelection
Defined at line 2356 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/hlcpp/fuchsia/ui/input/cpp/fidl.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 Members
int64_t base
int64_t extent
TextAffinity affinity
Public Methods
::std::unique_ptr<TextSelection> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, TextSelection * value, size_t _offset)
zx_status_t Clone (TextSelection * result)