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

Method draw

src/app/SvgPanel.cpp:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8
9void PanelBorder::draw(const DrawArgs& args) {
10 NVGcolor borderColor = nvgRGBAf(0.5, 0.5, 0.5, 0.5);
11 nvgBeginPath(args.vg);
12 nvgRect(args.vg, 0.5, 0.5, box.size.x - 1.0, box.size.y - 1.0);
13 nvgStrokeColor(args.vg, borderColor);
14 nvgStrokeWidth(args.vg, 1.0);
15 nvgStroke(args.vg);
16}
17
18
19SvgPanel::SvgPanel() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected