| 247 | |
| 248 | |
| 249 | void 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 | |
| 270 | void Widget::draw(const DrawArgs& args) { |
nothing calls this directly
no test coverage detected