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

Method draw

src/app/Scene.cpp:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 math::Vec size;
24
25 void draw(const DrawArgs& args) override {
26 nvgBeginPath(args.vg);
27 nvgMoveTo(args.vg, box.size.x, box.size.y);
28 nvgLineTo(args.vg, 0, box.size.y);
29 nvgLineTo(args.vg, box.size.x, 0);
30 nvgClosePath(args.vg);
31 nvgFillColor(args.vg, nvgRGBAf(1, 1, 1, 0.15));
32 nvgFill(args.vg);
33 }
34
35 void onDragStart(const DragStartEvent& e) override {
36 size = APP->window->getSize();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected