class States

Defined at line 723 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/cpp/fidl/fuchsia.accessibility.semantics/cpp/natural_types.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 Methods

void States (Storage_ storage)
void States ()

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

void States (States && )

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

void States (const States & other)
States & operator= (States && )

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

States & operator= (const States & other)
bool operator== (const States & other)
bool operator!= (const States & other)
bool IsEmpty ()
const std::optional<bool> & checked ()

DEPRECATED

::std::optional<bool> & checked ()

DEPRECATED

States & checked (std::optional<bool> value)

DEPRECATED

const std::optional< ::fuchsia_accessibility_semantics::CheckedState> & checked_state ()

State of a checkbox.

This field is mutually exclusive with ToggledState.

::std::optional< ::fuchsia_accessibility_semantics::CheckedState> & checked_state ()

State of a checkbox.

This field is mutually exclusive with ToggledState.

States & checked_state (std::optional< ::fuchsia_accessibility_semantics::CheckedState> value)

State of a checkbox.

This field is mutually exclusive with ToggledState.

const std::optional<bool> & selected ()

Whether the element is currently selected.

::std::optional<bool> & selected ()

Whether the element is currently selected.

States & selected (std::optional<bool> value)

Whether the element is currently selected.

const std::optional<bool> & hidden ()

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

::std::optional<bool> & hidden ()

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

States & hidden (std::optional<bool> value)

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

const std::optional< ::std::string> & value ()

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

client is responsible for truncating.

::std::optional< ::std::string> & value ()

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

client is responsible for truncating.

States & value (std::optional< ::std::string> value)

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

client is responsible for truncating.

const std::optional<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.

::std::optional<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.

States & range_value (std::optional<float> 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.

const std::optional< ::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.

::std::optional< ::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.

States & viewport_offset (std::optional< ::fuchsia_ui_gfx::Vec2> value)

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.

const std::optional< ::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.

::std::optional< ::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.

States & toggled_state (std::optional< ::fuchsia_accessibility_semantics::ToggledState> value)

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.

const std::optional<bool> & focusable ()

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

a11y focus, but the input focus.

::std::optional<bool> & focusable ()

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

a11y focus, but the input focus.

States & focusable (std::optional<bool> value)

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

a11y focus, but the input focus.

const std::optional<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'.

::std::optional<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'.

States & has_input_focus (std::optional<bool> value)

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'.

const std::optional< ::fuchsia_accessibility_semantics::EnabledState> & enabled_state ()

State of an element with enabled/disabled state.

::std::optional< ::fuchsia_accessibility_semantics::EnabledState> & enabled_state ()

State of an element with enabled/disabled state.

States & enabled_state (std::optional< ::fuchsia_accessibility_semantics::EnabledState> value)

State of an element with enabled/disabled state.

void States (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalTableCodingTraits