pub struct AccessTree {
pub root: u64,
pub nodes: Vec<AccessNode>,
pub focus: Option<u64>,
}Expand description
The whole accessibility tree of one window, as of the latest frame.
Fields§
§root: u64Id of the root node (role Role::Window).
nodes: Vec<AccessNode>Every node, root first, parents before children.
focus: Option<u64>The node with keyboard focus, if any.
Implementations§
Source§impl AccessTree
impl AccessTree
Sourcepub fn get(&self, id: u64) -> Option<&AccessNode>
pub fn get(&self, id: u64) -> Option<&AccessNode>
The node with this id.
Sourcepub fn find(&self, role: Role, name: &str) -> Option<&AccessNode>
pub fn find(&self, role: Role, name: &str) -> Option<&AccessNode>
The first node with this role and name, for tests and tools.
Sourcepub fn focused(&self) -> Option<&AccessNode>
pub fn focused(&self) -> Option<&AccessNode>
The node with keyboard focus.
Trait Implementations§
Source§impl Clone for AccessTree
impl Clone for AccessTree
Source§fn clone(&self) -> AccessTree
fn clone(&self) -> AccessTree
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccessTree
impl Debug for AccessTree
Source§impl Default for AccessTree
impl Default for AccessTree
Source§fn default() -> AccessTree
fn default() -> AccessTree
Returns the “default value” for a type. Read more
Source§impl PartialEq for AccessTree
impl PartialEq for AccessTree
impl StructuralPartialEq for AccessTree
Auto Trait Implementations§
impl Freeze for AccessTree
impl RefUnwindSafe for AccessTree
impl Send for AccessTree
impl Sync for AccessTree
impl Unpin for AccessTree
impl UnsafeUnpin for AccessTree
impl UnwindSafe for AccessTree
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