on_window_state_changed

Function on_window_state_changed 

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

P On window state changed.

This event notifies every time the user or the app changes the WindowVars::state.

§Preview

You can preview this event using on_pre_window_state_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.