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) -> AccessibilityId;
fn set_focus(&mut self, new_focus_id: AccessibilityId);
// Provided methods
fn add_node(
&mut self,
dioxus_node: &DioxusNode<'_>,
node_areas: &NodeAreas,
accessibility_id: AccessibilityId,
node_accessibility: &AccessibilityNodeState
) { ... }
fn set_focus_with_update(
&mut self,
new_focus_id: 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
) -> 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.
sourcefn nodes(&self) -> Iter<'_, (AccessibilityId, Node)>
fn nodes(&self) -> Iter<'_, (AccessibilityId, Node)>
Iterator over the Accessibility Tree of Nodes.
sourcefn focus_id(&self) -> AccessibilityId
fn focus_id(&self) -> AccessibilityId
Get the currently focused Node’s ID.
sourcefn set_focus(&mut self, new_focus_id: AccessibilityId)
fn set_focus(&mut self, new_focus_id: AccessibilityId)
Update the focused Node ID.
Provided Methods§
sourcefn add_node(
&mut self,
dioxus_node: &DioxusNode<'_>,
node_areas: &NodeAreas,
accessibility_id: AccessibilityId,
node_accessibility: &AccessibilityNodeState
)
fn add_node( &mut self, dioxus_node: &DioxusNode<'_>, node_areas: &NodeAreas, accessibility_id: AccessibilityId, node_accessibility: &AccessibilityNodeState )
Add a Node to the Accessibility Tree.
sourcefn set_focus_with_update(
&mut self,
new_focus_id: AccessibilityId
) -> Option<TreeUpdate>
fn set_focus_with_update( &mut self, new_focus_id: 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
) -> TreeUpdate
fn set_focus_on_next_node( &mut self, direction: AccessibilityFocusDirection ) -> TreeUpdate
Focus the next/previous Node starting from the currently focused Node.