pub struct SemanticsAction {
pub index: i32,
pub name: &'static str,
}Expand description
The possible actions that can be conveyed from the operating system accessibility APIs to a semantics node.
Dart’s class with one constant per action: index is the action’s bit.
Fields§
§index: i32The numerical value for this action.
Each action has one bit set in this bit field.
name: &'static strA human-readable name for this action, used for debugging purposes.
Implementations§
Source§impl SemanticsAction
impl SemanticsAction
Sourcepub const TAP: SemanticsAction
pub const TAP: SemanticsAction
The equivalent of a user briefly tapping the screen with the finger without moving it.
Sourcepub const LONG_PRESS: SemanticsAction
pub const LONG_PRESS: SemanticsAction
The equivalent of a user pressing and holding the screen with the finger for a few seconds without moving it.
Sourcepub const SCROLL_LEFT: SemanticsAction
pub const SCROLL_LEFT: SemanticsAction
The equivalent of a user moving their finger across the screen from right to left.
Sourcepub const SCROLL_RIGHT: SemanticsAction
pub const SCROLL_RIGHT: SemanticsAction
The equivalent of a user moving their finger across the screen from left to right.
Sourcepub const SCROLL_UP: SemanticsAction
pub const SCROLL_UP: SemanticsAction
The equivalent of a user moving their finger across the screen from bottom to top.
Sourcepub const SCROLL_DOWN: SemanticsAction
pub const SCROLL_DOWN: SemanticsAction
The equivalent of a user moving their finger across the screen from top to bottom.
Sourcepub const SCROLL_TO_OFFSET: SemanticsAction
pub const SCROLL_TO_OFFSET: SemanticsAction
A request to scroll the scrollable container to a given scroll offset.
Sourcepub const INCREASE: SemanticsAction
pub const INCREASE: SemanticsAction
A request to increase the value represented by the semantics node.
Sourcepub const DECREASE: SemanticsAction
pub const DECREASE: SemanticsAction
A request to decrease the value represented by the semantics node.
Sourcepub const SHOW_ON_SCREEN: SemanticsAction
pub const SHOW_ON_SCREEN: SemanticsAction
A request to fully show the semantics node on screen.
Sourcepub const MOVE_CURSOR_FORWARD_BY_CHARACTER: SemanticsAction
pub const MOVE_CURSOR_FORWARD_BY_CHARACTER: SemanticsAction
Move the cursor forward by one character.
Sourcepub const MOVE_CURSOR_BACKWARD_BY_CHARACTER: SemanticsAction
pub const MOVE_CURSOR_BACKWARD_BY_CHARACTER: SemanticsAction
Move the cursor backward by one character.
Sourcepub const SET_TEXT: SemanticsAction
pub const SET_TEXT: SemanticsAction
Replaces the current text in the text field.
Sourcepub const SET_SELECTION: SemanticsAction
pub const SET_SELECTION: SemanticsAction
Set the text selection to the given range.
Sourcepub const COPY: SemanticsAction
pub const COPY: SemanticsAction
Copy the current selection to the clipboard.
Sourcepub const CUT: SemanticsAction
pub const CUT: SemanticsAction
Cut the current selection and place it in the clipboard.
Sourcepub const PASTE: SemanticsAction
pub const PASTE: SemanticsAction
Paste the current content of the clipboard.
Sourcepub const DID_GAIN_ACCESSIBILITY_FOCUS: SemanticsAction
pub const DID_GAIN_ACCESSIBILITY_FOCUS: SemanticsAction
Indicates that the node has gained accessibility focus.
Sourcepub const DID_LOSE_ACCESSIBILITY_FOCUS: SemanticsAction
pub const DID_LOSE_ACCESSIBILITY_FOCUS: SemanticsAction
Indicates that the node has lost accessibility focus.
Sourcepub const CUSTOM_ACTION: SemanticsAction
pub const CUSTOM_ACTION: SemanticsAction
Indicates that the user has invoked a custom accessibility action.
Sourcepub const DISMISS: SemanticsAction
pub const DISMISS: SemanticsAction
A request that the node should be dismissed.
Sourcepub const MOVE_CURSOR_FORWARD_BY_WORD: SemanticsAction
pub const MOVE_CURSOR_FORWARD_BY_WORD: SemanticsAction
Move the cursor forward by one word.
Sourcepub const MOVE_CURSOR_BACKWARD_BY_WORD: SemanticsAction
pub const MOVE_CURSOR_BACKWARD_BY_WORD: SemanticsAction
Move the cursor backward by one word.
Sourcepub const FOCUS: SemanticsAction
pub const FOCUS: SemanticsAction
Move the input focus to the respective widget.
Sourcepub const EXPAND: SemanticsAction
pub const EXPAND: SemanticsAction
A request that the node should be expanded.
Sourcepub const COLLAPSE: SemanticsAction
pub const COLLAPSE: SemanticsAction
A request that the node should be collapsed.
Sourcepub fn values() -> Vec<SemanticsAction>
pub fn values() -> Vec<SemanticsAction>
Every action, in Dart’s _kActionById order.
Sourcepub fn from_index(index: i32) -> Option<SemanticsAction>
pub fn from_index(index: i32) -> Option<SemanticsAction>
The action whose bit is index, if there is one.
Trait Implementations§
Source§impl Clone for SemanticsAction
impl Clone for SemanticsAction
impl Copy for SemanticsAction
Source§impl Debug for SemanticsAction
impl Debug for SemanticsAction
impl Eq for SemanticsAction
Source§impl Hash for SemanticsAction
impl Hash for SemanticsAction
Source§impl PartialEq for SemanticsAction
impl PartialEq for SemanticsAction
impl StructuralPartialEq for SemanticsAction
Auto Trait Implementations§
impl Forget for SemanticsAction
impl Freeze for SemanticsAction
impl Move for SemanticsAction
impl RefUnwindSafe for SemanticsAction
impl Send for SemanticsAction
impl Sync for SemanticsAction
impl Unpin for SemanticsAction
impl UnsafeUnpin for SemanticsActionwhere
&'static str: UnsafeUnpin,
impl UnwindSafe for SemanticsActionwhere
&'static str: UnwindSafe,
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.