[−][src]Type Definition pixel_canvas::canvas::EventHandler
type EventHandler<State> = fn(_: &CanvasInfo, _: &mut State, _: &Event<()>) -> bool;
A type that represents an event handler.
It returns true if the state is changed.
type EventHandler<State> = fn(_: &CanvasInfo, _: &mut State, _: &Event<()>) -> bool;
A type that represents an event handler.
It returns true if the state is changed.