NanoVegaWidget

The NanoVegaWidget has a class you can use with arsd.nanovega.

static if(OpenGlEnabled)
class NanoVegaWidget : OpenGlWidget {
NVGContext nvg;
}

Members

Variables

clearOnEachFrame
bool clearOnEachFrame;

If true, it automatically clears the widget canvas between each redraw call.

redrawNVGScene
void delegate(NVGContext nvg) redrawNVGScene;

Set this to draw your nanovega frame.

Meta

History

Included in initial release on February 7, 2020 (dub package version 9.2).