MCPcopy Create free account
hub / github.com/DISTRHO/DPF / displayChildren

Method displayChildren

dgl/src/NanoVG.cpp:1086–1098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1084
1085template <class BaseWidget>
1086void NanoBaseWidget<BaseWidget>::displayChildren()
1087{
1088 std::list<SubWidget*> children(BaseWidget::getChildren());
1089
1090 for (std::list<SubWidget*>::iterator it = children.begin(); it != children.end(); ++it)
1091 {
1092 if (NanoSubWidget* const subwidget = dynamic_cast<NanoSubWidget*>(*it))
1093 {
1094 if (subwidget->fUsingParentContext && subwidget->isVisible())
1095 subwidget->onDisplay();
1096 }
1097 }
1098}
1099
1100// -----------------------------------------------------------------------
1101// NanoSubWidget

Callers

nothing calls this directly

Calls 2

isVisibleMethod · 0.45
onDisplayMethod · 0.45

Tested by

no test coverage detected