CallbackManager.register

CallbackContext * register(SimpleCallback callback) nothrow

Registers a simple callback and returns its context.

The callback is pinned automatically.

Parameters

callbackThe delegate to register

Returns

Pointer to the callback context
CallbackContext * register(WidgetCallback callback) nothrow

Registers a widget callback and returns its context.

Parameters

callbackThe delegate to register

Returns

Pointer to the callback context