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

Method drawLayer

src/widget/Widget.cpp:285–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283
284
285void Widget::drawLayer(const DrawArgs& args, int layer) {
286 // Iterate children
287 for (Widget* child : children) {
288 // Don't draw if invisible
289 if (!child->isVisible())
290 continue;
291 // Don't draw if child is outside clip box
292 if (!args.clipBox.intersects(child->box))
293 continue;
294
295 drawChild(child, args, layer);
296 }
297}
298
299
300void Widget::drawChild(Widget* child, const DrawArgs& args, int layer) {

Callers 1

drawChildMethod · 0.45

Calls 2

isVisibleMethod · 0.80
intersectsMethod · 0.80

Tested by

no test coverage detected