on_window_changed

Function on_window_changed 

Source
pub fn on_window_changed(
    child: impl IntoUiNode,
    handler: Box<dyn FnMut(&WindowChangedArgs) -> HandlerResult + Send>,
) -> UiNode
Expand description

P On window moved, resized or other state changed.

This event aggregates events moves, resizes and other state changes into a single event to simplify tracking composite changes, for example, the window changes size and position when maximized, this can be trivially observed with this event.

ยงRoute

This event property uses the normal route, that is, the handler is called after the children widget handlers and after the $pn_pre_ident handlers.