struct TextSelection

Defined at line 1510 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/wire_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 Members

int64_t base
int64_t extent
TextAffinity affinity