pub struct SemanticsState {
pub checked: Option<bool>,
pub selected: Option<bool>,
pub expanded: Option<bool>,
pub disabled: Option<bool>,
pub focused: Option<bool>,
pub hidden: bool,
pub click_action: bool,
pub focus_action: bool,
}Expand description
How a node presents itself to assistive technology. Each tri-state field is unset until it is given a value, and an unset one sends nothing. The flags are off until set.
Fields§
§checked: Option<bool>§selected: Option<bool>§expanded: Option<bool>§disabled: Option<bool>§focused: Option<bool>§click_action: bool§focus_action: boolImplementations§
Source§impl SemanticsState
impl SemanticsState
pub const fn checked(checked: bool) -> Self
pub const fn selected(selected: bool) -> Self
pub const fn expanded(expanded: bool) -> Self
pub const fn disabled(disabled: bool) -> Self
pub const fn focused(focused: bool) -> Self
pub const fn click_action(exposed: bool) -> Self
pub const fn focus_action(exposed: bool) -> Self
Trait Implementations§
Source§impl Clone for SemanticsState
impl Clone for SemanticsState
impl Copy for SemanticsState
Source§impl Debug for SemanticsState
impl Debug for SemanticsState
Source§impl Default for SemanticsState
impl Default for SemanticsState
impl Eq for SemanticsState
Source§impl PartialEq for SemanticsState
impl PartialEq for SemanticsState
impl StructuralPartialEq for SemanticsState
Auto Trait Implementations§
impl Forget for SemanticsState
impl Freeze for SemanticsState
impl Move for SemanticsState
impl RefUnwindSafe for SemanticsState
impl Send for SemanticsState
impl Sync for SemanticsState
impl Unpin for SemanticsState
impl UnsafeUnpin for SemanticsState
impl UnwindSafe for SemanticsState
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
Mutably borrows from an owned value. Read more