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

Method preRender

forms/control.cpp:409–424  ·  view source on GitHub ↗

* Used if controls require computations before rendering. * Any operations other than graphical. */

Source from the content-addressed store, hash-verified

407 * Any operations other than graphical.
408 */
409void Control::preRender()
410{
411 for (auto ctrlidx = Controls.begin(); ctrlidx != Controls.end(); ctrlidx++)
412 {
413 auto c = *ctrlidx;
414 if (c->Visible)
415 {
416 c->preRender();
417 }
418 }
419
420 if (funcPreRender)
421 {
422 funcPreRender(shared_from_this());
423 }
424}
425
426void Control::onRender() { fw().renderer->clear(BackgroundColour); }
427

Callers 3

renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80

Calls 2

endMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected