pub struct AccessibilityState {
pub nodes: Vec<(AccessibilityId, Node)>,
pub node_classes: NodeClassSet,
pub focus: Option<AccessibilityId>,
}
Expand description
Manages the Accessibility integration.
Fields§
§nodes: Vec<(AccessibilityId, Node)>
Accessibility Nodes
node_classes: NodeClassSet
Accessibility tree
focus: Option<AccessibilityId>
Current focused Accessibility Node.
Implementations§
Trait Implementations§
source§impl AccessibilityProvider for AccessibilityState
impl AccessibilityProvider for AccessibilityState
source§fn node_classes(&mut self) -> &mut NodeClassSet
fn node_classes(&mut self) -> &mut NodeClassSet
Mutable reference to the NodeClassSet.
source§fn nodes(&self) -> Iter<'_, (AccessibilityId, Node)>
fn nodes(&self) -> Iter<'_, (AccessibilityId, Node)>
Iterator over the Accessibility Tree of Nodes.
source§fn push_node(&mut self, id: AccessibilityId, node: Node)
fn push_node(&mut self, id: AccessibilityId, node: Node)
Push a Node into the Accesibility Tree.
source§fn 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.
source§fn 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.
source§fn build_root(&mut self, root_name: &str) -> Node
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
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>
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.
source§impl Default for AccessibilityState
impl Default for AccessibilityState
source§fn default() -> AccessibilityState
fn default() -> AccessibilityState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for AccessibilityState
impl Send for AccessibilityState
impl Sync for AccessibilityState
impl Unpin for AccessibilityState
impl UnwindSafe for AccessibilityState
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.