MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / postRender

Method postRender

forms/control.cpp:428–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426void Control::onRender() { fw().renderer->clear(BackgroundColour); }
427
428void 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
444void Control::update()
445{

Callers

nothing calls this directly

Calls 4

endMethod · 0.80
beginMethod · 0.45
renderMethod · 0.45
drawRectMethod · 0.45

Tested by

no test coverage detected