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

Method draw

src/widget/Widget.cpp:270–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268
269
270void Widget::draw(const DrawArgs& args) {
271 // Iterate children
272 for (Widget* child : children) {
273 // Don't draw if invisible
274 if (!child->isVisible())
275 continue;
276 // Don't draw if child is outside clip box
277 if (!args.clipBox.intersects(child->box))
278 continue;
279
280 drawChild(child, args);
281 }
282}
283
284
285void Widget::drawLayer(const DrawArgs& args, int layer) {

Callers 1

drawChildMethod · 0.45

Calls 2

isVisibleMethod · 0.80
intersectsMethod · 0.80

Tested by

no test coverage detected