Skip to main content

SemanticsAction

Struct SemanticsAction 

Source
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: i32

The numerical value for this action.

Each action has one bit set in this bit field.

§name: &'static str

A human-readable name for this action, used for debugging purposes.

Implementations§

Source§

impl SemanticsAction

Source

pub const TAP: SemanticsAction

The equivalent of a user briefly tapping the screen with the finger without moving it.

Source

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.

Source

pub const SCROLL_LEFT: SemanticsAction

The equivalent of a user moving their finger across the screen from right to left.

Source

pub const SCROLL_RIGHT: SemanticsAction

The equivalent of a user moving their finger across the screen from left to right.

Source

pub const SCROLL_UP: SemanticsAction

The equivalent of a user moving their finger across the screen from bottom to top.

Source

pub const SCROLL_DOWN: SemanticsAction

The equivalent of a user moving their finger across the screen from top to bottom.

Source

pub const SCROLL_TO_OFFSET: SemanticsAction

A request to scroll the scrollable container to a given scroll offset.

Source

pub const INCREASE: SemanticsAction

A request to increase the value represented by the semantics node.

Source

pub const DECREASE: SemanticsAction

A request to decrease the value represented by the semantics node.

Source

pub const SHOW_ON_SCREEN: SemanticsAction

A request to fully show the semantics node on screen.

Source

pub const MOVE_CURSOR_FORWARD_BY_CHARACTER: SemanticsAction

Move the cursor forward by one character.

Source

pub const MOVE_CURSOR_BACKWARD_BY_CHARACTER: SemanticsAction

Move the cursor backward by one character.

Source

pub const SET_TEXT: SemanticsAction

Replaces the current text in the text field.

Source

pub const SET_SELECTION: SemanticsAction

Set the text selection to the given range.

Source

pub const COPY: SemanticsAction

Copy the current selection to the clipboard.

Source

pub const CUT: SemanticsAction

Cut the current selection and place it in the clipboard.

Source

pub const PASTE: SemanticsAction

Paste the current content of the clipboard.

Source

pub const DID_GAIN_ACCESSIBILITY_FOCUS: SemanticsAction

Indicates that the node has gained accessibility focus.

Source

pub const DID_LOSE_ACCESSIBILITY_FOCUS: SemanticsAction

Indicates that the node has lost accessibility focus.

Source

pub const CUSTOM_ACTION: SemanticsAction

Indicates that the user has invoked a custom accessibility action.

Source

pub const DISMISS: SemanticsAction

A request that the node should be dismissed.

Source

pub const MOVE_CURSOR_FORWARD_BY_WORD: SemanticsAction

Move the cursor forward by one word.

Source

pub const MOVE_CURSOR_BACKWARD_BY_WORD: SemanticsAction

Move the cursor backward by one word.

Source

pub const FOCUS: SemanticsAction

Move the input focus to the respective widget.

Source

pub const EXPAND: SemanticsAction

A request that the node should be expanded.

Source

pub const COLLAPSE: SemanticsAction

A request that the node should be collapsed.

Source

pub fn values() -> Vec<SemanticsAction>

Every action, in Dart’s _kActionById order.

Source

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

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for SemanticsAction

Source§

impl Debug for SemanticsAction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for SemanticsAction

Source§

impl Hash for SemanticsAction

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for SemanticsAction

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SemanticsAction

Auto Trait Implementations§

§

impl Forget for SemanticsAction

§

impl Freeze for SemanticsAction
where &'static str: Freeze,

§

impl Move for SemanticsAction

§

impl RefUnwindSafe for SemanticsAction

§

impl Send for SemanticsAction
where &'static str: Send,

§

impl Sync for SemanticsAction

§

impl Unpin for SemanticsAction
where &'static str: Unpin,

§

impl UnsafeUnpin for SemanticsAction
where &'static str: UnsafeUnpin,

§

impl UnwindSafe for SemanticsAction
where &'static str: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,