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

Method drawLayer

src/widget/ZoomWidget.cpp:58–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57
58void ZoomWidget::drawLayer(const DrawArgs& args, int layer) {
59 DrawArgs zoomCtx = args;
60 zoomCtx.clipBox.pos = zoomCtx.clipBox.pos.div(zoom);
61 zoomCtx.clipBox.size = zoomCtx.clipBox.size.div(zoom);
62 // No need to save the state because that is done in the parent
63 nvgScale(args.vg, zoom, zoom);
64 Widget::drawLayer(zoomCtx, layer);
65}
66
67
68} // namespace widget

Callers

nothing calls this directly

Calls 1

divMethod · 0.80

Tested by

no test coverage detected