pub trait AccessibilityProvider {
    // Required methods
    fn push_node(&mut self, id: NodeId, node: Node);
    fn node_classes(&mut self) -> &mut NodeClassSet;
    fn nodes(&self) -> Iter<'_, (NodeId, Node)>;
    fn focus_id(&self) -> Option<NodeId>;
    fn set_focus(&mut self, new_focus_id: Option<NodeId>);
    // Provided methods
    fn add_node(
        &mut self,
        dioxus_node: &NodeRef<'_, CustomAttributeValues>,
        node_areas: &NodeAreas,
        accessibility_id: NodeId,
        node_accessibility: &AccessibilityState
    ) { ... }
    fn set_focus_with_update(
        &mut self,
        new_focus_id: Option<NodeId>
    ) -> Option<TreeUpdate> { ... }
    fn build_root(&mut self, root_name: &str) -> Node { ... }
    fn process(&mut self, root_id: NodeId, root_name: &str) -> TreeUpdate { ... }
    fn set_focus_on_next_node(
        &mut self,
        direction: AccessibilityFocusDirection,
        focus_sender: &Sender<Option<NodeId>>
    ) -> Option<TreeUpdate> { ... }
}Required Methods§
fn push_node(&mut self, id: NodeId, node: Node)
fn push_node(&mut self, id: NodeId, node: Node)
Push a Node into the Accesibility Tree.
fn node_classes(&mut self) -> &mut NodeClassSet
fn node_classes(&mut self) -> &mut NodeClassSet
Mutable reference to the NodeClassSet.
Provided Methods§
fn add_node(
    &mut self,
    dioxus_node: &NodeRef<'_, CustomAttributeValues>,
    node_areas: &NodeAreas,
    accessibility_id: NodeId,
    node_accessibility: &AccessibilityState
)
fn add_node( &mut self, dioxus_node: &NodeRef<'_, CustomAttributeValues>, node_areas: &NodeAreas, accessibility_id: NodeId, node_accessibility: &AccessibilityState )
Add a Node to the Accessibility Tree.
fn set_focus_with_update(
    &mut self,
    new_focus_id: Option<NodeId>
) -> Option<TreeUpdate>
fn set_focus_with_update( &mut self, new_focus_id: Option<NodeId> ) -> Option<TreeUpdate>
Update the focused Node ID and generate a TreeUpdate if necessary.
fn build_root(&mut self, root_name: &str) -> Node
fn build_root(&mut self, root_name: &str) -> Node
Create the root Accessibility Node.
fn process(&mut self, root_id: NodeId, root_name: &str) -> TreeUpdate
fn process(&mut self, root_id: NodeId, root_name: &str) -> TreeUpdate
Process the Nodes accessibility Tree
fn set_focus_on_next_node(
    &mut self,
    direction: AccessibilityFocusDirection,
    focus_sender: &Sender<Option<NodeId>>
) -> Option<TreeUpdate>
fn set_focus_on_next_node( &mut self, direction: AccessibilityFocusDirection, focus_sender: &Sender<Option<NodeId>> ) -> Option<TreeUpdate>
Focus the next/previous Node starting from the currently focused Node.