pub struct Node {
pub id: u32,
pub class: u32,
pub res_pkg: Option<u32>,
pub res_id: Option<String>,
pub text: Option<String>,
pub desc: Option<String>,
pub bounds: Bounds,
pub flags: NodeFlags,
pub children: Vec<Node>,
pub scroll: Option<Scroll>,
}Expand description
One accessibility node.
Decoded without recursion (see MAX_NODE_DEPTH): the derived decoder
took about 20 KiB of stack per level in a debug build.
Fields§
§id: u32Unique within the snapshot.
class: u32String-table index of the class name.
res_pkg: Option<u32>String-table index of the resource-id prefix, such as pkg:id/.
res_id: Option<String>The resource id after its prefix.
text: Option<String>§desc: Option<String>Content description.
bounds: Bounds§flags: NodeFlags§children: Vec<Node>Child nodes in platform order; the wire omits an empty list.
scroll: Option<Scroll>How the node scrolls; present on nodes that scroll.
Trait Implementations§
impl Eq for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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