MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / removeAllChildren

Method removeAllChildren

source/windowing/StarWidget.cpp:353–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353void Widget::removeAllChildren() {
354 for (auto child : m_members)
355 child->setParent(nullptr);
356
357 m_members.clear();
358 m_memberHash.clear();
359}
360
361bool Widget::containsChild(String const& name) {
362 if (fetchChild(name))

Callers 6

makeWidgetCallbacksMethod · 0.80
updateMethod · 0.80
buildTooltipMethod · 0.80
createTooltipMethod · 0.80
updateCodexListMethod · 0.80
buildItemTooltipMethod · 0.80

Calls 2

setParentMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected