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

Method draw

src/core/Blank.cpp:108–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 }
107
108 void draw(const DrawArgs& args) override {
109 for (float x = 5.0; x <= 10.0; x += 5.0) {
110 nvgBeginPath(args.vg);
111 const float margin = 5.0;
112 nvgMoveTo(args.vg, x + 0.5, margin + 0.5);
113 nvgLineTo(args.vg, x + 0.5, box.size.y - margin + 0.5);
114 nvgStrokeWidth(args.vg, 1.0);
115 nvgStrokeColor(args.vg, nvgRGBAf(0.5, 0.5, 0.5, 0.5));
116 nvgStroke(args.vg);
117 }
118 }
119};
120
121

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected