CustomWidget.onDraw

void delegate() onDraw()

Gets the draw callback delegate.

Returns

The current draw callback, or null if not set
void onDraw(void delegate() dg)

Sets the draw callback delegate.

The callback is invoked when the widget needs to redraw itself. Use the fltk.draw module functions to perform drawing.

Parameters

dgThe draw callback delegate