class States

Defined at line 1660 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

A state is a dynamic property of an element that may change in response to

user action or automated processes. Thus, they are different from attributes

in an important point, which is frequency of change.

Public Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

States & set_checked (bool _value)
States & set_checked_state (::fuchsia::accessibility::semantics::CheckedState _value)
States & set_selected (bool _value)
States & set_hidden (bool _value)
States & set_value (::std::string _value)
States & set_range_value (float _value)
States & set_viewport_offset (::fuchsia::ui::gfx::vec2 _value)
States & set_toggled_state (::fuchsia::accessibility::semantics::ToggledState _value)
States & set_focusable (bool _value)
States & set_has_input_focus (bool _value)
States & set_enabled_state (::fuchsia::accessibility::semantics::EnabledState _value)
void States ()
void States (States && other)
void ~States ()
States & operator= (States && other)
::std::unique_ptr<States> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, States * _value, size_t _offset)
zx_status_t Clone (States * _result)
const bool & checked ()

DEPRECATED

Defined at line 1667 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

bool has_checked ()

Defined at line 1671 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

bool * mutable_checked ()

DEPRECATED

Defined at line 1676 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

void clear_checked ()

Defined at line 1684 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

const ::fuchsia::accessibility::semantics::CheckedState & checked_state ()

State of a checkbox.

This field is mutually exclusive with ToggledState.

Defined at line 1694 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

bool has_checked_state ()

Defined at line 1698 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

::fuchsia::accessibility::semantics::CheckedState * mutable_checked_state ()

State of a checkbox.

This field is mutually exclusive with ToggledState.

Defined at line 1704 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

void clear_checked_state ()

Defined at line 1712 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

const bool & selected ()

Whether the element is currently selected.

Defined at line 1721 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

bool has_selected ()

Defined at line 1725 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

bool * mutable_selected ()

Whether the element is currently selected.

Defined at line 1730 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

void clear_selected ()

Defined at line 1738 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

const bool & hidden ()

Whether the element is currently hidden or marked invisible by the framework.

Defined at line 1747 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

bool has_hidden ()

Defined at line 1751 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

bool * mutable_hidden ()

Whether the element is currently hidden or marked invisible by the framework.

Defined at line 1756 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

void clear_hidden ()

Defined at line 1764 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

const ::std::string & value ()

The user-entered value of the element, if applicable. If longer than MAX_VALUE_SIZE the

client is responsible for truncating.

Defined at line 1774 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

bool has_value ()

Defined at line 1778 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

::std::string * mutable_value ()

The user-entered value of the element, if applicable. If longer than MAX_VALUE_SIZE the

client is responsible for truncating.

Defined at line 1784 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

void clear_value ()

Defined at line 1792 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

const float & range_value ()

If the element is a slider or a range control, this field contains the

current value. Note that this is not the same as the value field above,

as this is generated by the client and just adjusted by the user.

Defined at line 1803 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

bool has_range_value ()

Defined at line 1807 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

float * mutable_range_value ()

If the element is a slider or a range control, this field contains the

current value. Note that this is not the same as the value field above,

as this is generated by the client and just adjusted by the user.

Defined at line 1814 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

void clear_range_value ()

Defined at line 1822 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

const ::fuchsia::ui::gfx::vec2 & viewport_offset ()

If the element is a scrollable viewport, this field contains the x and

y offsets within this node's coordinate space to apply to the children.

This offsetting is used to position the children within the viewport to

reflect the current scrolling of the element. There are no constraints

on these values other than they must be finite.

Defined at line 1835 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

bool has_viewport_offset ()

Defined at line 1839 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

::fuchsia::ui::gfx::vec2 * mutable_viewport_offset ()

If the element is a scrollable viewport, this field contains the x and

y offsets within this node's coordinate space to apply to the children.

This offsetting is used to position the children within the viewport to

reflect the current scrolling of the element. There are no constraints

on these values other than they must be finite.

Defined at line 1848 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

void clear_viewport_offset ()

Defined at line 1856 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

const ::fuchsia::accessibility::semantics::ToggledState & toggled_state ()

State of a toggle switch.

This field must only be set if the element is a toggle switch element

and is mutually exclusive with CheckedState.

Defined at line 1867 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

bool has_toggled_state ()

Defined at line 1871 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

::fuchsia::accessibility::semantics::ToggledState * mutable_toggled_state ()

State of a toggle switch.

This field must only be set if the element is a toggle switch element

and is mutually exclusive with CheckedState.

Defined at line 1878 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

void clear_toggled_state ()

Defined at line 1886 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

const bool & focusable ()

Whether this element is focusable in the UI. Note that this is not the

a11y focus, but the input focus.

Defined at line 1896 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

bool has_focusable ()

Defined at line 1900 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

bool * mutable_focusable ()

Whether this element is focusable in the UI. Note that this is not the

a11y focus, but the input focus.

Defined at line 1906 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

void clear_focusable ()

Defined at line 1914 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

const bool & has_input_focus ()

Whether this element has the input focus. This corresponds to the

system focus. Only one element can have this value set. The behavior is

undetermined if more than one node sets this value to 'true'.

Defined at line 1925 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

bool has_has_input_focus ()

Defined at line 1929 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

bool * mutable_has_input_focus ()

Whether this element has the input focus. This corresponds to the

system focus. Only one element can have this value set. The behavior is

undetermined if more than one node sets this value to 'true'.

Defined at line 1936 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

void clear_has_input_focus ()

Defined at line 1944 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

const ::fuchsia::accessibility::semantics::EnabledState & enabled_state ()

State of an element with enabled/disabled state.

Defined at line 1953 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

bool has_enabled_state ()

Defined at line 1957 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

::fuchsia::accessibility::semantics::EnabledState * mutable_enabled_state ()

State of an element with enabled/disabled state.

Defined at line 1962 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h

void clear_enabled_state ()

Defined at line 1970 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/hlcpp/fuchsia/accessibility/semantics/cpp/fidl.h