Skip to main content

on_window_request

Function on_window_request 

Source
pub fn on_window_request(
    handler: Rc<dyn Fn(WindowRequest)>,
) -> WindowRequestSubscription
Expand description

Runs handler for each window the system or the user made that the application has no node for, for as long as the returned registration is kept. The handler puts a Window node with that RestoreKey into the tree in the same call, or the Renderer closes the window.