zng_wgt_window::events

Function on_window_changed

source
pub fn on_window_changed(
    child: impl UiNode,
    handler: impl WidgetHandler<WindowChangedArgs>,
) -> impl 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.

§Preview

You can preview this event using on_pre_window_changed. Otherwise the handler is only called after the widget content has a chance to stop propagation.

§Async

You can use async event handlers with this property.