Skip to main content

on_window_requested

Function on_window_requested 

Source
pub fn on_window_requested(handler: impl FnMut(WindowRequest) + 'static)
Expand description

Calls handler for each window the system or the user made that this application has no Window node for, for as long as this call site is in the composition. The handler puts a node with that RestoreKey into the tree, or the Renderer closes the window.