zng_wgt_window

Function on_close_requested

source
pub fn on_close_requested(
    child: impl UiNode,
    handler: impl WidgetHandler<WindowCloseRequestedArgs>,
) -> impl UiNode
Expand description

P On window close requested.

This event notifies every time an attempt to close the window is made. Close can be cancelled by stopping propagation on the event args, the window only closes after all handlers receive this event and propagation is not stopped.

This property is the same as on_window_close_requested.