#[non_exhaustive]pub struct AccessNode {Show 18 fields
pub id: u64,
pub role: Role,
pub name: Option<String>,
pub description: Option<String>,
pub value: Option<String>,
pub numeric: Option<NumericValue>,
pub toggled: Option<Toggled>,
pub selected: Option<bool>,
pub expanded: Option<bool>,
pub disabled: bool,
pub read_only: bool,
pub focusable: bool,
pub modal: bool,
pub level: Option<u32>,
pub active_descendant: Option<u64>,
pub bounds: Rect,
pub children: Vec<u64>,
pub actions: Vec<AccessAction>,
}Expand description
One node of the accessibility tree.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: u64Identity, stable across frames for the same widget.
role: RoleWhat the node is.
name: Option<String>The accessible name: a label, or the text inside for roles that take their name from content.
description: Option<String>Extra description, read after the name.
value: Option<String>A text value (text fields, combo boxes, sliders with formatted values).
numeric: Option<NumericValue>A numeric value with its range.
toggled: Option<Toggled>Checked state.
selected: Option<bool>Selected state (tabs, options, rows, days).
expanded: Option<bool>Expanded state of something that opens (menus, combo boxes, disclosures).
disabled: boolThe control does not respond to input.
read_only: boolThe value can be read and selected, but not changed.
focusable: boolKeyboard focus can be on it.
modal: boolWhile it is open, the rest of the app is inert (dialogs).
level: Option<u32>Heading level, 1 to 6.
active_descendant: Option<u64>The option highlighted inside a focused text field that drives a list (combobox pattern): screen readers announce it as if it had focus.
bounds: RectAbsolute frame in logical pixels.
children: Vec<u64>Child node ids in reading order.
actions: Vec<AccessAction>Actions assistive technology may request.
Implementations§
Trait Implementations§
Source§impl Clone for AccessNode
impl Clone for AccessNode
Source§fn clone(&self) -> AccessNode
fn clone(&self) -> AccessNode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more