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§
sourcefn push_node(&mut self, id: AccessibilityId, node: Node)
fn push_node(&mut self, id: AccessibilityId, node: Node)
Push a Node into the Accesibility Tree.
sourcefn node_classes(&mut self) -> &mut NodeClassSet
fn node_classes(&mut self) -> &mut NodeClassSet
Mutable reference to the NodeClassSet.
Provided Methods§
sourcefn add_node(
&mut self,
dioxus_node: &DioxusNode<'_>,
node_areas: &NodeAreas,
accessibility_id: AccessibilityId,
node_accessibility: &AccessibilityState
)
fn add_node( &mut self, dioxus_node: &DioxusNode<'_>, node_areas: &NodeAreas, accessibility_id: AccessibilityId, node_accessibility: &AccessibilityState )
Add a Node to the Accessibility Tree.
sourcefn set_focus_with_update(
&mut self,
new_focus_id: Option<AccessibilityId>
) -> Option<TreeUpdate>
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.
sourcefn build_root(&mut self, root_name: &str) -> Node
fn build_root(&mut self, root_name: &str) -> Node
Create the root Accessibility Node.
sourcefn process(&mut self, root_id: AccessibilityId, root_name: &str) -> TreeUpdate
fn process(&mut self, root_id: AccessibilityId, root_name: &str) -> TreeUpdate
Process the Nodes accessibility Tree
sourcefn set_focus_on_next_node(
&mut self,
direction: AccessibilityFocusDirection,
focus_sender: &Sender<Option<AccessibilityId>>
) -> Option<TreeUpdate>
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.