pub struct Semantics {
pub role: Role,
pub label: Option<String>,
pub focused: bool,
pub enabled: bool,
}Expand description
Semantics attached to a View, used to build the accessibility tree.
Fields§
§role: RolePrimary role of this node (what kind of thing it is).
label: Option<String>Human‑readable label for screen readers. For buttons, this is the “name” that is announced.
focused: boolWhether this node is currently focused.
enabled: boolWhether this node is actionable; disabled nodes remain in the tree but are marked not enabled.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Semantics
impl RefUnwindSafe for Semantics
impl Send for Semantics
impl Sync for Semantics
impl Unpin for Semantics
impl UnwindSafe for Semantics
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