Enum accesskit::Action [−][src]
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::ScrollOffset].
SetTextSelection
Requires ActionRequest::data to be set to [ActionData::TextSelection].
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
fn 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>,
Deserialize this value from the given Serde deserializer. Read more
Converts an enum of this type into its bit position.
Converts a bit position into an enum value.
Serializes the EnumSet. Read more
Deserializes the EnumSet.
Auto Trait Implementations
impl RefUnwindSafe for Action
impl UnwindSafe for Action
Blanket Implementations
Mutably borrows from an owned value. Read more