#[repr(u8)]pub enum Action {
Show 22 variants
Click = 0,
Focus = 1,
Blur = 2,
Collapse = 3,
Expand = 4,
CustomAction = 5,
Decrement = 6,
Increment = 7,
HideTooltip = 8,
ShowTooltip = 9,
ReplaceSelectedText = 10,
ScrollDown = 11,
ScrollLeft = 12,
ScrollRight = 13,
ScrollUp = 14,
ScrollIntoView = 15,
ScrollToPoint = 16,
SetScrollOffset = 17,
SetTextSelection = 18,
SetSequentialFocusNavigationStartingPoint = 19,
SetValue = 20,
ShowContextMenu = 21,
}Expand description
The accessibility-node vocabulary a widget that contributes a semantics node needs — as opposed to one that only forwards a child’s.
SemanticsCtx::push_node is
(role: Role, build: impl FnOnce(&mut Node)) -> NodeId;
SemanticsCtx::push_container takes the same two plus a
visit: impl FnOnce(&mut SemanticsCtx) for its children. Action,
Live and Toggled are lifted alongside them because they are what
the build closure actually reaches for — node.add_action(Action::Click)
is in eight of frust-widgets’ own widgets, and a list of exports that
stopped at Node would not be closed over Node’s own signature.
For the rest of the crate, use the whole-crate
frust::accesskit valve.
An action to be taken on an accessibility node.
Variants§
Click = 0
Do the equivalent of a single click or tap.
Focus = 1
Blur = 2
Collapse = 3
Expand = 4
CustomAction = 5
Requires ActionRequest::data to be set to ActionData::CustomAction.
Decrement = 6
Decrement a numeric value by one step.
Increment = 7
Increment a numeric value by one step.
HideTooltip = 8
ShowTooltip = 9
ReplaceSelectedText = 10
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.
ScrollDown = 11
Scroll down by the specified unit.
ScrollLeft = 12
Scroll left by the specified unit.
ScrollRight = 13
Scroll right by the specified unit.
ScrollUp = 14
Scroll up by the specified unit.
ScrollIntoView = 15
Scroll any scrollable containers to make the target node visible.
Optionally set ActionRequest::data to ActionData::ScrollHint.
ScrollToPoint = 16
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 = 17
Requires ActionRequest::data to be set to ActionData::SetScrollOffset.
SetTextSelection = 18
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 = 20
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 = 21
Trait Implementations§
impl Copy for Action
impl Eq for Action
Source§impl Ord for Action
impl Ord for Action
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Action
impl PartialOrd for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.