pub trait AccessibilityProvider {
    // Required methods
    fn push_node(&mut self, id: AccessibilityId, node: Node);
    fn node_classes(&mut self) -> &mut NodeClassSet;
    fn nodes(&self) -> Iter<'_, (AccessibilityId, Node)>;
    fn focus_id(&self) -> Option<AccessibilityId>;
    fn set_focus(&mut self, new_focus_id: Option<AccessibilityId>);

    // Provided methods
    fn add_node(
        &mut self,
        dioxus_node: &DioxusNode<'_>,
        node_areas: &NodeAreas,
        accessibility_id: AccessibilityId,
        node_accessibility: &AccessibilityState
    ) { ... }
    fn set_focus_with_update(
        &mut self,
        new_focus_id: Option<AccessibilityId>
    ) -> Option<TreeUpdate> { ... }
    fn build_root(&mut self, root_name: &str) -> Node { ... }
    fn process(
        &mut self,
        root_id: AccessibilityId,
        root_name: &str
    ) -> TreeUpdate { ... }
    fn set_focus_on_next_node(
        &mut self,
        direction: AccessibilityFocusDirection,
        focus_sender: &Sender<Option<AccessibilityId>>
    ) -> Option<TreeUpdate> { ... }
}

Required Methods§

source

fn push_node(&mut self, id: AccessibilityId, node: Node)

Push a Node into the Accesibility Tree.

source

fn node_classes(&mut self) -> &mut NodeClassSet

Mutable reference to the NodeClassSet.

source

fn nodes(&self) -> Iter<'_, (AccessibilityId, Node)>

Iterator over the Accessibility Tree of Nodes.

source

fn focus_id(&self) -> Option<AccessibilityId>

Get the currently focused Node’s ID.

source

fn set_focus(&mut self, new_focus_id: Option<AccessibilityId>)

Update the focused Node ID.

Provided Methods§

source

fn add_node( &mut self, dioxus_node: &DioxusNode<'_>, node_areas: &NodeAreas, accessibility_id: AccessibilityId, node_accessibility: &AccessibilityState )

Add a Node to the Accessibility Tree.

source

fn set_focus_with_update( &mut self, new_focus_id: Option<AccessibilityId> ) -> Option<TreeUpdate>

Update the focused Node ID and generate a TreeUpdate if necessary.

source

fn build_root(&mut self, root_name: &str) -> Node

Create the root Accessibility Node.

source

fn process(&mut self, root_id: AccessibilityId, root_name: &str) -> TreeUpdate

Process the Nodes accessibility Tree

source

fn set_focus_on_next_node( &mut self, direction: AccessibilityFocusDirection, focus_sender: &Sender<Option<AccessibilityId>> ) -> Option<TreeUpdate>

Focus the next/previous Node starting from the currently focused Node.

Implementors§