#[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 · 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 · 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§impl PartialOrd for AccessibilityAction
impl PartialOrd for AccessibilityAction
impl Eq for AccessibilityAction
impl StructuralPartialEq for AccessibilityAction
Auto Trait Implementations§
impl Freeze for AccessibilityAction
impl RefUnwindSafe for AccessibilityAction
impl Send for AccessibilityAction
impl Sync for AccessibilityAction
impl Unpin for AccessibilityAction
impl UnsafeUnpin for AccessibilityAction
impl UnwindSafe for AccessibilityAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more