WidgetTree

Trait WidgetTree 

Source
pub trait WidgetTree {
    // Required methods
    fn get_widget_classname(&self, path: &[usize]) -> Option<String>;
    fn get_path_names(&self, path: &[usize]) -> Option<Vec<String>>;
    fn get_path_indexes(&self, path: &[&str]) -> Option<Vec<usize>>;
    fn get_partial_path_indexes(&self, path: &[&str]) -> (Vec<usize>, String);
}

Required Methods§

Source

fn get_widget_classname(&self, path: &[usize]) -> Option<String>

return the widget type

Source

fn get_path_names(&self, path: &[usize]) -> Option<Vec<String>>

return the full path names to the widget

Source

fn get_path_indexes(&self, path: &[&str]) -> Option<Vec<usize>>

return the full path indexes to the widget

Source

fn get_partial_path_indexes(&self, path: &[&str]) -> (Vec<usize>, String)

return the full path indexes to the widget (or the partial path indexes until where it failed) alongside the last name searched.

Implementors§