pub enum Action {
Show 26 variants
Default,
Focus,
Blur,
Collapse,
Expand,
CustomAction,
Decrement,
Increment,
HideTooltip,
ShowTooltip,
InvalidateTree,
LoadInlineTextBoxes,
ReplaceSelectedText,
ScrollBackward,
ScrollDown,
ScrollForward,
ScrollLeft,
ScrollRight,
ScrollUp,
ScrollIntoView,
ScrollToPoint,
SetScrollOffset,
SetTextSelection,
SetSequentialFocusNavigationStartingPoint,
SetValue,
ShowContextMenu,
}
Expand description
An action to be taken on an accessibility node.
In contrast to DefaultActionVerb
, these describe what happens to the
object, e.g. “focus”.
Variants
Default
Do the default action for an object, typically this means “click”.
Focus
Blur
Collapse
Expand
CustomAction
Requires ActionRequest::data
to be set to ActionData::CustomAction
.
Decrement
Decrement a numeric value by one step.
Increment
Increment a numeric value by one step.
HideTooltip
ShowTooltip
InvalidateTree
Request that the tree source invalidate its entire tree.
LoadInlineTextBoxes
Load inline text boxes for this subtree, providing information about word boundaries, line layout, and individual character bounding boxes.
ReplaceSelectedText
Delete any selected text in the control’s text value and
insert the specified value in its place, like when typing or pasting.
Requires ActionRequest::data
to be set to ActionData::Value
.
ScrollBackward
ScrollDown
ScrollForward
ScrollLeft
ScrollRight
ScrollUp
ScrollIntoView
Scroll any scrollable containers to make the target object visible
on the screen. Optionally set ActionRequest::data
to
ActionData::ScrollTargetRect
.
ScrollToPoint
Scroll the given object to a specified point in the tree’s container
(e.g. window). Requires ActionRequest::data
to be set to
ActionData::ScrollToPoint
.
SetScrollOffset
Requires ActionRequest::data
to be set to ActionData::SetScrollOffset
.
SetTextSelection
Requires ActionRequest::data
to be set to ActionData::SetTextSelection
.
SetSequentialFocusNavigationStartingPoint
Don’t focus this node, but set it as the sequential focus navigation starting point, so that pressing Tab moves to the next element following this one, for example.
SetValue
Replace the value of the control with the specified value and
reset the selection, if applicable. Requires ActionRequest::data
to be set to ActionData::Value
or ActionData::NumericValue
.
ShowContextMenu
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
sourceimpl EnumSetTypePrivate for Action
impl EnumSetTypePrivate for Action
sourceconst ALL_BITS: Self::Repr = {transmute(0x03ffffff): <Action as enumset::__internal::EnumSetTypePrivate>::Repr}
const ALL_BITS: Self::Repr = {transmute(0x03ffffff): <Action as enumset::__internal::EnumSetTypePrivate>::Repr}
sourcefn enum_into_u32(self) -> u32
fn enum_into_u32(self) -> u32
sourceunsafe fn enum_from_u32(val: u32) -> Self
unsafe fn enum_from_u32(val: u32) -> Self
sourcefn serialize<S: Serializer>(
set: EnumSet<Action>,
ser: S
) -> Result<S::Ok, S::Error>
fn serialize<S: Serializer>(
set: EnumSet<Action>,
ser: S
) -> Result<S::Ok, S::Error>
EnumSet
. Read moresourcefn deserialize<'de, D: Deserializer<'de>>(
de: D
) -> Result<EnumSet<Action>, D::Error>
fn deserialize<'de, D: Deserializer<'de>>(
de: D
) -> Result<EnumSet<Action>, D::Error>
EnumSet
.sourceimpl JsonSchema for Action
impl JsonSchema for Action
sourcefn schema_name() -> String
fn schema_name() -> String
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read more