Skip to main content

EngineEventCallback

Type Alias EngineEventCallback 

Source
pub type EngineEventCallback<S> = Box<dyn FnMut(&mut S, &mut Ui<'_>, &EngineEvent)>;
Expand description

A callback that receives the engine events Pushrod emits after its internal actions.

It receives the application state, a Ui handle, and the engine event. Register one with Engine::on_engine_event or Engine::on_engine_event_filtered.

Aliased Typeยง

pub struct EngineEventCallback<S>(/* private fields */);