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

Method draw

src/ui/ProgressBar.cpp:12–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12void ProgressBar::draw(const DrawArgs& args) {
13 float progress = quantity ? quantity->getScaledValue() : 0.f;
14 std::string text = quantity ? quantity->getString() : "";
15 bndSlider(args.vg, 0.0, 0.0, box.size.x, box.size.y, BND_CORNER_ALL, BND_DEFAULT, progress, text.c_str(), NULL);
16}
17
18
19} // namespace ui

Callers

nothing calls this directly

Calls 2

getScaledValueMethod · 0.80
getStringMethod · 0.80

Tested by

no test coverage detected