Skip to main content

SearchableWindow

Trait SearchableWindow 

pub trait SearchableWindow {
    // Required method
    fn visit_search_root(
        &mut self,
        visit: &mut dyn FnMut(&mut dyn Widget) -> bool,
    ) -> bool;
}
Expand description

An app that runs inside a runtime of its own (an embedded app) and lets the window’s search reach its widgets.

Required Methods§

fn visit_search_root( &mut self, visit: &mut dyn FnMut(&mut dyn Widget) -> bool, ) -> bool

Run visit on the app’s root widget, where the search finds the view’s document or list. visit says whether it changed anything the app shows, so the app lays out and draws again only then; returns what visit said.

Implementors§