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

Method draw

src/ui/MenuOverlay.cpp:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12
13void MenuOverlay::draw(const DrawArgs& args) {
14 if (bgColor.a > 0.f) {
15 nvgBeginPath(args.vg);
16 nvgRect(args.vg, 0, 0, VEC_ARGS(box.size));
17 nvgFillColor(args.vg, bgColor);
18 nvgFill(args.vg);
19 }
20
21 OpaqueWidget::draw(args);
22}
23
24
25void MenuOverlay::step() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected