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

Method draw

include/componentlibrary.hpp:989–996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

987 float margin = mm2px(0.5);
988
989 void draw(const DrawArgs& args) override {
990 // Background
991 nvgBeginPath(args.vg);
992 nvgRect(args.vg, 0, 0, box.size.x, box.size.y);
993 nvgFillColor(args.vg, color::BLACK);
994 nvgFill(args.vg);
995 Widget::draw(args);
996 }
997
998 template <typename TLightBase = WhiteLight>
999 void setLights(engine::Module* module, int firstLightId, int lightsLen) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected