Skip to main content

OnExitCallbackType

Type Alias OnExitCallbackType 

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

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.

Aliased Type§

pub enum OnExitCallbackType {
    None,
    Some(Box<dyn FnMut(&mut Engine) -> bool>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(Box<dyn FnMut(&mut Engine) -> bool>)

Some value of type T.