pub type EventHandler<State> = fn(&CanvasInfo, &mut State, &Event<'_, ()>) -> bool;
Expand description
A type that represents an event handler.
It returns true if the state is changed.
pub type EventHandler<State> = fn(&CanvasInfo, &mut State, &Event<'_, ()>) -> bool;
A type that represents an event handler.
It returns true if the state is changed.