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.