#[repr(u8)]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
.
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§
source§impl Ord for Action
impl Ord for Action
source§impl PartialEq<Action> for Action
impl PartialEq<Action> for Action
source§impl PartialOrd<Action> for Action
impl PartialOrd<Action> for Action
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more