MCPcopy Create free account
hub / github.com/VCVRack/Befaco / drawBackground

Method drawBackground

src/MidiThing.cpp:451–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449 }
450
451 void drawBackground(const DrawArgs& args) override {
452 // Background
453 NVGcolor backgroundColor = nvgRGB(0x20, 0x20, 0x20);
454 NVGcolor borderColor = nvgRGB(0x10, 0x10, 0x10);
455 nvgBeginPath(args.vg);
456 nvgRoundedRect(args.vg, 0.0, 0.0, box.size.x, box.size.y, 2.0);
457 nvgFillColor(args.vg, backgroundColor);
458 nvgFill(args.vg);
459 nvgStrokeWidth(args.vg, 1.0);
460 nvgStrokeColor(args.vg, borderColor);
461 nvgStroke(args.vg);
462 }
463
464 void drawLight(const DrawArgs& args) override {
465 // Background

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected