devela::_dep::miniquad::window

Function request_quit

pub fn request_quit()
Available on crate feature dep_miniquad only.
Expand description

Calling request_quit() will trigger “quit_requested_event” event , giving the user code a chance to intervene and cancel the pending quit process (for instance to show a ‘Really Quit?’ dialog box). If the event handler callback does nothing, the application will be quit as usual. To prevent this, call the function “cancel_quit()”“ from inside the event handler.