| 426 | void Control::onRender() { fw().renderer->clear(BackgroundColour); } |
| 427 | |
| 428 | void Control::postRender() |
| 429 | { |
| 430 | for (auto ctrlidx = Controls.begin(); ctrlidx != Controls.end(); ctrlidx++) |
| 431 | { |
| 432 | auto c = *ctrlidx; |
| 433 | if (c->Visible) |
| 434 | { |
| 435 | c->render(); |
| 436 | } |
| 437 | } |
| 438 | if (showBounds) |
| 439 | { |
| 440 | fw().renderer->drawRect({0, 0}, Size, Colour{255, 0, 0, 255}); |
| 441 | } |
| 442 | } |
| 443 | |
| 444 | void Control::update() |
| 445 | { |