pub struct AxNode {
pub id: AxId,
pub role: AxRole,
pub name: String,
pub enabled: bool,
pub checked: Option<bool>,
pub has_popup: bool,
pub expanded: Option<bool>,
pub pos_in_set: Option<usize>,
pub set_size: Option<usize>,
pub item_index: Option<usize>,
pub children: Vec<AxNode>,
}Expand description
One node in the accessibility tree.
Fields§
§id: AxIdStable id within this tree.
role: AxRoleThe accessible role.
name: StringThe accessible name a screen reader announces.
enabled: boolWhether the node is enabled (dimmed rows and headers are not).
checked: Option<bool>Some(checked) for a checkable item; None if it has no checked state.
has_popup: boolWhether activating this node opens a submenu (AXMenuItem haspopup).
expanded: Option<bool>For a submenu item, whether its flyout is currently expanded.
pos_in_set: Option<usize>1-based position among focusable siblings (for “3 of 7” announcements).
set_size: Option<usize>Count of focusable siblings at this level.
item_index: Option<usize>Index into the owning menu level’s Menu::items, for backend lookup.
children: Vec<AxNode>Child nodes (a submenu’s items; empty otherwise).
Implementations§
Trait Implementations§
impl StructuralPartialEq for AxNode
Auto Trait Implementations§
impl Freeze for AxNode
impl RefUnwindSafe for AxNode
impl Send for AxNode
impl Sync for AxNode
impl Unpin for AxNode
impl UnsafeUnpin for AxNode
impl UnwindSafe for AxNode
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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