MCPcopy Create free account
hub / github.com/VCVRack/Rack / draw

Method draw

src/widget/ZoomWidget.cpp:48–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47
48void ZoomWidget::draw(const DrawArgs& args) {
49 DrawArgs zoomCtx = args;
50 zoomCtx.clipBox.pos = zoomCtx.clipBox.pos.div(zoom);
51 zoomCtx.clipBox.size = zoomCtx.clipBox.size.div(zoom);
52 // No need to save the state because that is done in the parent
53 nvgScale(args.vg, zoom, zoom);
54 Widget::draw(zoomCtx);
55}
56
57
58void ZoomWidget::drawLayer(const DrawArgs& args, int layer) {

Callers

nothing calls this directly

Calls 1

divMethod · 0.80

Tested by

no test coverage detected