Type Definition cgl_rs::window::EventFunction
source · pub type EventFunction = dyn Fn(&Window, &Event) -> bool;
Expand description
Represents a function that handles a window event. Takes a reference to the window and the event, and returns a boolean indicating whether the event was handled successfully. If this function returns false, the event will be passed to the next handler in the chain, or if there are no more handlers, the event will be ignored. If this function returns true, the event will not be passed to any more handlers.