pub struct AccessibilityTreeBuilder { /* private fields */ }Expand description
Builder for constructing accessibility trees.
Implementations§
Source§impl AccessibilityTreeBuilder
impl AccessibilityTreeBuilder
Sourcepub fn new() -> AccessibilityTreeBuilder
pub fn new() -> AccessibilityTreeBuilder
Create a new builder.
Sourcepub fn root(
self,
role: AccessibleRole,
bounds: Rect,
) -> AccessibilityTreeBuilder
pub fn root( self, role: AccessibleRole, bounds: Rect, ) -> AccessibilityTreeBuilder
Add a root node.
Sourcepub fn child(
self,
role: AccessibleRole,
bounds: Rect,
) -> (AccessibilityTreeBuilder, AccessibleNodeId)
pub fn child( self, role: AccessibleRole, bounds: Rect, ) -> (AccessibilityTreeBuilder, AccessibleNodeId)
Add a child node to the current parent.
Sourcepub fn push_child(
self,
role: AccessibleRole,
bounds: Rect,
) -> AccessibilityTreeBuilder
pub fn push_child( self, role: AccessibleRole, bounds: Rect, ) -> AccessibilityTreeBuilder
Add a child and descend into it.
Sourcepub fn pop(self) -> AccessibilityTreeBuilder
pub fn pop(self) -> AccessibilityTreeBuilder
Pop back to the parent.
Sourcepub fn configure<F>(self, f: F) -> AccessibilityTreeBuilderwhere
F: FnOnce(&mut AccessibleNode),
pub fn configure<F>(self, f: F) -> AccessibilityTreeBuilderwhere
F: FnOnce(&mut AccessibleNode),
Configure the current node.
Sourcepub fn build(self) -> AccessibilityTree
pub fn build(self) -> AccessibilityTree
Build the tree.
Trait Implementations§
Source§impl Debug for AccessibilityTreeBuilder
impl Debug for AccessibilityTreeBuilder
Source§impl Default for AccessibilityTreeBuilder
impl Default for AccessibilityTreeBuilder
Source§fn default() -> AccessibilityTreeBuilder
fn default() -> AccessibilityTreeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AccessibilityTreeBuilder
impl RefUnwindSafe for AccessibilityTreeBuilder
impl Send for AccessibilityTreeBuilder
impl Sync for AccessibilityTreeBuilder
impl Unpin for AccessibilityTreeBuilder
impl UnsafeUnpin for AccessibilityTreeBuilder
impl UnwindSafe for AccessibilityTreeBuilder
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