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

Method setDepth

MyGUIEngine/src/MyGUI_Widget.cpp:1427–1440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1425 }
1426
1427 void Widget::setDepth(int _value)
1428 {
1429 if (mDepth == _value)
1430 return;
1431
1432 mDepth = _value;
1433
1434 if (mParent != nullptr)
1435 {
1436 mParent->_unlinkChildWidget(this);
1437 mParent->_linkChildWidget(this);
1438 mParent->_updateChilds();
1439 }
1440 }
1441
1442 int Widget::getDepth() const
1443 {

Callers

nothing calls this directly

Calls 3

_updateChildsMethod · 0.80
_unlinkChildWidgetMethod · 0.45
_linkChildWidgetMethod · 0.45

Tested by

no test coverage detected