Function i_slint_core::context::set_window_shown_hook

source ·
pub fn set_window_shown_hook(
    hook: Option<Box<dyn FnMut(&Rc<dyn WindowAdapter>)>>,
) -> Result<Option<Box<dyn FnMut(&Rc<dyn WindowAdapter>)>>, PlatformError>
Expand description

Internal function to set a hook that’s invoked whenever a slint::Window is shown. This is used by the system testing module. Returns a previously set hook, if any.