OnCloseHook

Type Alias OnCloseHook 

Source
pub type OnCloseHook = Box<dyn FnMut(RendererContext<'_>, WindowId) -> CloseDecision + Send>;
Expand description

Hook called when a window close is requested. Returns a CloseDecision to determine whether the window should actually close.

Aliased Typeยง

pub struct OnCloseHook(/* private fields */);