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

Method draw

src/ui/MenuSeparator.cpp:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12void MenuSeparator::draw(const DrawArgs& args) {
13 nvgBeginPath(args.vg);
14 const float margin = 8.0;
15 nvgMoveTo(args.vg, margin, box.size.y / 2.0);
16 nvgLineTo(args.vg, box.size.x - margin, box.size.y / 2.0);
17 nvgStrokeWidth(args.vg, 1.0);
18 nvgStrokeColor(args.vg, color::alpha(bndGetTheme()->menuTheme.textColor, 0.25));
19 nvgStroke(args.vg);
20}
21
22
23} // namespace ui

Callers

nothing calls this directly

Calls 1

alphaFunction · 0.85

Tested by

no test coverage detected