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<Insets>,
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: boolWhether the node is focusable.
focused: boolWhether 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: boolWhether the node is disabled.
Whether the node is hidden from accessibility.
modal: boolWhether 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<Insets>Optional padding applied to semantic bounds.
merge_descendants: boolWhether 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
impl SemanticsArgs
Sourcepub fn clear() -> SemanticsArgs
pub fn clear() -> SemanticsArgs
Convenience for clearAndSetSemantics behavior (no descendant merge).
Trait Implementations§
Source§impl Clone for SemanticsArgs
impl Clone for SemanticsArgs
Source§fn clone(&self) -> SemanticsArgs
fn clone(&self) -> SemanticsArgs
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for SemanticsArgs
impl Default for SemanticsArgs
Source§fn default() -> SemanticsArgs
fn default() -> SemanticsArgs
Auto Trait Implementations§
impl Freeze for SemanticsArgs
impl RefUnwindSafe for SemanticsArgs
impl Send for SemanticsArgs
impl Sync for SemanticsArgs
impl Unpin for SemanticsArgs
impl UnsafeUnpin for SemanticsArgs
impl UnwindSafe for SemanticsArgs
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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.§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.§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.§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.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§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>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§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.§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.