CustomWidget.onHandle

int delegate(int) onHandle()

Gets the handle callback delegate.

Returns

The current handle callback, or null if not set
void onHandle(int delegate(int) dg)

Sets the handle callback delegate.

The callback is invoked when the widget receives an event. Return true (non-zero) if the event was handled, false (0) otherwise.

Parameters

dgThe handle callback delegate