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

Method step

src/widget/Widget.cpp:249–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247
248
249void Widget::step() {
250 for (auto it = children.begin(); it != children.end();) {
251 Widget* child = *it;
252 // Delete children if a delete is requested
253 if (child->requestedDelete) {
254 // Dispatch Remove event
255 RemoveEvent eRemove;
256 child->onRemove(eRemove);
257 APP->event->finalizeWidget(child);
258 it = children.erase(it);
259 child->parent = NULL;
260 delete child;
261 continue;
262 }
263
264 child->step();
265 it++;
266 }
267}
268
269
270void Widget::draw(const DrawArgs& args) {

Callers

nothing calls this directly

Calls 2

finalizeWidgetMethod · 0.80
onRemoveMethod · 0.45

Tested by

no test coverage detected