#[repr(C, u8)]pub enum AccessibilityAction {
Show 23 variants
Default,
Focus,
Blur,
Collapse,
Expand,
ScrollIntoView,
Increment,
Decrement,
ShowContextMenu,
HideTooltip,
ShowTooltip,
ScrollUp,
ScrollDown,
ScrollLeft,
ScrollRight,
ReplaceSelectedText(AzString),
ScrollToPoint(LogicalPosition),
SetScrollOffset(LogicalPosition),
SetTextSelection(TextSelectionStartEnd),
SetSequentialFocusNavigationStartingPoint,
SetValue(AzString),
SetNumericValue(FloatValue),
CustomAction(i32),
}Expand description
Actions that can be performed on an accessible element. This is a simplified version of accesskit::Action to avoid direct dependency in core.
Variants§
Default
The default action for the element (usually a click).
Focus
Set focus to this element.
Blur
Remove focus from this element.
Collapse
Collapse an expandable element (e.g., tree node, accordion).
Expand
Expand a collapsible element (e.g., tree node, accordion).
ScrollIntoView
Scroll this element into view.
Increment
Increment a numeric value (e.g., slider, spinner).
Decrement
Decrement a numeric value (e.g., slider, spinner).
ShowContextMenu
Show a context menu.
HideTooltip
Hide a tooltip.
ShowTooltip
Show a tooltip.
ScrollUp
Scroll up.
ScrollDown
Scroll down.
ScrollLeft
Scroll left.
ScrollRight
Scroll right.
ReplaceSelectedText(AzString)
Replace selected text with new text.
ScrollToPoint(LogicalPosition)
Scroll to a specific point.
SetScrollOffset(LogicalPosition)
Set scroll offset.
SetTextSelection(TextSelectionStartEnd)
Set text selection.
Set sequential focus navigation starting point.
SetValue(AzString)
Set the value of a control.
SetNumericValue(FloatValue)
Set numeric value of a control.
CustomAction(i32)
Custom action with ID.
Trait Implementations§
Source§impl Clone for AccessibilityAction
impl Clone for AccessibilityAction
Source§fn clone(&self) -> AccessibilityAction
fn clone(&self) -> AccessibilityAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccessibilityAction
impl Debug for AccessibilityAction
Source§impl FromIterator<AccessibilityAction> for AccessibilityActionVec
impl FromIterator<AccessibilityAction> for AccessibilityActionVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = AccessibilityAction>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = AccessibilityAction>,
Source§impl Hash for AccessibilityAction
impl Hash for AccessibilityAction
Source§impl Ord for AccessibilityAction
impl Ord for AccessibilityAction
Source§fn cmp(&self, other: &AccessibilityAction) -> Ordering
fn cmp(&self, other: &AccessibilityAction) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AccessibilityAction
impl PartialEq for AccessibilityAction
Source§fn eq(&self, other: &AccessibilityAction) -> bool
fn eq(&self, other: &AccessibilityAction) -> bool
self and other values to be equal, and is used by ==.