pub struct AccessibilityTree {
pub map: FxHashMap<AccessibilityId, NodeId>,
pub focused_id: AccessibilityId,
}Fields§
§map: FxHashMap<AccessibilityId, NodeId>§focused_id: AccessibilityIdImplementations§
Source§impl AccessibilityTree
impl AccessibilityTree
pub fn new(focused_id: AccessibilityId) -> Self
pub fn focused_node_id(&self) -> Option<NodeId>
Sourcepub fn process_updates(
&mut self,
tree: &mut Tree,
events_sender: &UnboundedSender<EventsChunk>,
) -> TreeUpdate
pub fn process_updates( &mut self, tree: &mut Tree, events_sender: &UnboundedSender<EventsChunk>, ) -> TreeUpdate
Process any pending Accessibility Tree update
Sourcepub fn focus_node_with_strategy(
&mut self,
strategy: AccessibilityFocusStrategy,
tree: &mut Tree,
)
pub fn focus_node_with_strategy( &mut self, strategy: AccessibilityFocusStrategy, tree: &mut Tree, )
Focus a Node given the strategy.
Sourcepub fn create_node(
node_id: NodeId,
layout_node: &LayoutNode,
tree: &Tree,
) -> Node
pub fn create_node( node_id: NodeId, layout_node: &LayoutNode, tree: &Tree, ) -> Node
Create an accessibility node
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AccessibilityTree
impl RefUnwindSafe for AccessibilityTree
impl Send for AccessibilityTree
impl Sync for AccessibilityTree
impl Unpin for AccessibilityTree
impl UnwindSafe for AccessibilityTree
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more