MCPcopy Create free account
hub / github.com/MyGUI/mygui / _updateChilds

Method _updateChilds

MyGUIEngine/src/MyGUI_Widget.cpp:1467–1486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1465 }
1466
1467 void Widget::_updateChilds()
1468 {
1469 for (auto& widget : mWidgetChild)
1470 {
1471 if (widget->getWidgetStyle() == WidgetStyle::Child)
1472 {
1473 widget->detachFromLayerItemNode(false);
1474 removeChildItem(widget);
1475 }
1476 }
1477
1478 for (auto& widget : mWidgetChild)
1479 {
1480 if (widget->getWidgetStyle() == WidgetStyle::Child)
1481 {
1482 addChildItem(widget);
1483 widget->_updateView();
1484 }
1485 }
1486 }
1487
1488} // namespace MyGUI

Callers 1

setDepthMethod · 0.80

Calls 3

getWidgetStyleMethod · 0.80
_updateViewMethod · 0.45

Tested by

no test coverage detected