accesskit_consumer

Trait TreeChangeHandler

Source
pub trait TreeChangeHandler {
    // Required methods
    fn node_added(&mut self, node: &Node<'_>);
    fn node_updated(&mut self, old_node: &Node<'_>, new_node: &Node<'_>);
    fn focus_moved(
        &mut self,
        old_node: Option<&Node<'_>>,
        new_node: Option<&Node<'_>>,
    );
    fn node_removed(&mut self, node: &Node<'_>);
}

Required Methods§

Source

fn node_added(&mut self, node: &Node<'_>)

Source

fn node_updated(&mut self, old_node: &Node<'_>, new_node: &Node<'_>)

Source

fn focus_moved( &mut self, old_node: Option<&Node<'_>>, new_node: Option<&Node<'_>>, )

Source

fn node_removed(&mut self, node: &Node<'_>)

Implementors§