Type Alias EventHandler

Source
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.