pub enum AccessAction {
Show 13 variants
Click,
Focus,
Blur,
SetValue,
Increment,
Decrement,
ScrollIntoView,
ScrollUp,
ScrollDown,
ScrollLeft,
ScrollRight,
SetTextSelection,
ReplaceSelectedText,
}Expand description
What assistive technology can ask of a node. Each node advertises the
subset it supports (AccessNode::actions), and a request for one
arrives as crate::InputEvent::Access.
Variants§
Click
Activate: the node’s on_click payload is emitted (a window button
issues its command; an editor or key sink takes focus). On a node
behind the frame’s modal it is the press outside: a dismiss on
the modal, nothing on the node.
Focus
Give the node keyboard focus — any focusable node (an editor, a key
sink, a control, a focusable box); it shows, as after Tab.
Blur
SetValue
Replace an editor’s text (AccessRequest::value); a changed event
follows when it differs. On a custom editor it arrives as
{kind="access", action="setValue", text, tag}.
Increment
Nudge a slider. The core cannot know what a step means, so these
reach the app as {kind="access", action, tag} on the node.
Decrement
ScrollIntoView
Scroll the nearest scrolling ancestor so the node is visible.
ScrollUp
Scroll a scroll view by most of a page.
ScrollDown
ScrollLeft
ScrollRight
SetTextSelection
Move an editor’s caret and selection (AccessRequest::anchor /
focus). On a custom editor it arrives as {kind="access", action="setTextSelection", anchor={line, offset}, focus={line, offset}, tag}.
ReplaceSelectedText
Type over an editor’s selection (AccessRequest::value). On a
custom editor: {kind="access", action="replaceSelectedText", text, tag}.
Implementations§
Source§impl AccessAction
impl AccessAction
Trait Implementations§
Source§impl Clone for AccessAction
impl Clone for AccessAction
impl Copy for AccessAction
Source§impl Debug for AccessAction
impl Debug for AccessAction
impl Eq for AccessAction
Source§impl Hash for AccessAction
impl Hash for AccessAction
Source§impl PartialEq for AccessAction
impl PartialEq for AccessAction
impl StructuralPartialEq for AccessAction
Auto Trait Implementations§
impl Freeze for AccessAction
impl RefUnwindSafe for AccessAction
impl Send for AccessAction
impl Sync for AccessAction
impl Unpin for AccessAction
impl UnsafeUnpin for AccessAction
impl UnwindSafe for AccessAction
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> 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.