Skip to main content

SemanticsArgs

Struct SemanticsArgs 

Source
pub struct SemanticsArgs {
Show 31 fields pub role: Option<Role>, pub label: Option<String>, pub description: Option<String>, pub value: Option<String>, pub numeric_value: Option<f64>, pub numeric_range: Option<(f64, f64)>, pub focusable: bool, pub focused: bool, pub toggled: Option<Toggled>, pub invalid: Option<Invalid>, pub selected: Option<bool>, pub expanded: Option<bool>, pub has_popup: Option<HasPopup>, pub disabled: bool, pub hidden: bool, pub modal: bool, pub actions: Vec<Action>, pub test_tag: Option<String>, pub bounds_padding: Option<Padding>, pub merge_descendants: bool, pub state_description: Option<String>, pub role_description: Option<String>, pub tooltip: Option<String>, pub live: Option<Live>, pub heading_level: Option<u32>, pub scroll_x: Option<(f64, f64, f64)>, pub scroll_y: Option<(f64, f64, f64)>, pub numeric_value_step: Option<f64>, pub numeric_value_jump: Option<f64>, pub collection_info: Option<(usize, usize, bool)>, pub collection_item_info: Option<(usize, usize, usize, usize, bool)>,
}
Expand description

Arguments for the semantics modifier.

Fields§

§role: Option<Role>

Optional accessibility role.

§label: Option<String>

Optional label announced by assistive technologies.

§description: Option<String>

Optional description announced by assistive technologies.

§value: Option<String>

Optional value text.

§numeric_value: Option<f64>

Optional numeric value.

§numeric_range: Option<(f64, f64)>

Optional numeric range.

§focusable: bool

Whether the node is focusable.

§focused: bool

Whether the node is focused.

§toggled: Option<Toggled>

Optional toggled state.

§invalid: Option<Invalid>

Optional validation failure associated with the current value.

§selected: Option<bool>

Whether this item is selected, when selection applies to its role.

§expanded: Option<bool>

Whether a disclosure control is expanded.

§has_popup: Option<HasPopup>

Kind of popup opened by this control.

§disabled: bool

Whether the node is disabled.

§hidden: bool

Whether the node is hidden from accessibility.

§modal: bool

Whether this dialog blocks interaction with the rest of the window.

§actions: Vec<Action>

Custom accessibility actions.

§test_tag: Option<String>

Optional testing tag (mapped to the accessibility key).

§bounds_padding: Option<Padding>

Optional padding applied to semantic bounds.

§merge_descendants: bool

Whether to merge child semantics into this node.

§state_description: Option<String>

Optional state description.

§role_description: Option<String>

Optional role description for custom controls.

§tooltip: Option<String>

Optional tooltip text.

§live: Option<Live>

Live region politeness.

§heading_level: Option<u32>

Optional heading level (1-based).

§scroll_x: Option<(f64, f64, f64)>

Optional scroll ranges.

§scroll_y: Option<(f64, f64, f64)>

Optional scroll Y range as (value, min, max).

§numeric_value_step: Option<f64>

Optional numeric step/jump for range controls.

§numeric_value_jump: Option<f64>

Optional numeric jump value for page-wise changes.

§collection_info: Option<(usize, usize, bool)>

Optional collection info (rows, cols, hierarchical).

§collection_item_info: Option<(usize, usize, usize, usize, bool)>

Optional collection item info (row_index, row_span, col_index, col_span, heading).

Implementations§

Source§

impl SemanticsArgs

Source

pub fn clear() -> Self

Convenience for clearAndSetSemantics behavior (no descendant merge).

Trait Implementations§

Source§

impl Clone for SemanticsArgs

Source§

fn clone(&self) -> SemanticsArgs

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 Default for SemanticsArgs

Source§

fn default() -> SemanticsArgs

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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
§

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

§

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
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert 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.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

§

impl<T> DowncastSend for T
where T: Any + Send,

§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Send + Sync>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

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

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.

§

impl<T> NoneValue for T
where T: Default,

§

type NoneType = T

§

fn null_value() -> T

The none-equivalent value.
§

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> SendSync for T
where T: Send + Sync + 'static,

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
§

impl<T> Upcast<T> for T

§

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

§

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

§

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

§

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

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more