[][src]Type Definition pushrod::render::engine::OnExitCallbackType

type OnExitCallbackType = Option<Box<dyn FnMut(&mut Engine) -> bool>>;

This function is called when when the application requests to quit. It accepts the currently running engine, and the return value will indicate whether or not to quit. Returning a true tells the engine to quit, false otherwise. If this function is not set, the application will quit when asked.