dispatch

fun dispatch(event: Event, bindable: Boolean = false, to: Inputtable? = mouseOver): Boolean

Dispatch an event to the provided component.

If the candidate component does not accept the event (returns false), it will be given to the parent, and so on.

Note that changing of the to parameter is experimental.

Parameters

bindable

(mostly internal parameter) if true, the event will be given to the keyBinder for processing of keybindings, before being given to the candidate component. It will consume the event if a keybinding matches and accepts it.