MCPcopy Create free account
hub / github.com/OpenMW/openmw / setChildren

Method setChildren

components/lua_ui/widget.cpp:209–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 }
208
209 void WidgetExtension::setChildren(const std::vector<WidgetExtension*>& children)
210 {
211 mChildren.resize(children.size());
212 for (size_t i = 0; i < children.size(); ++i)
213 {
214 mChildren[i] = children[i];
215 attach(mChildren[i]);
216 }
217 updateChildren();
218 }
219
220 void WidgetExtension::setTemplateChildren(const std::vector<WidgetExtension*>& children)
221 {

Callers 5

updateWidgetFunction · 0.80
updateMethod · 0.80
attachElementMethod · 0.80
detachElementMethod · 0.80
attachMethod · 0.80

Calls 3

attachFunction · 0.85
resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected