dispatch

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

Dispatch an event to the provided drawable.

If the candidate drawable 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 drawable. It will consume the event if a keybinding matches and accepts it.