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

Method _updateEnabled

MyGUIEngine/src/MyGUI_Widget.cpp:1058–1072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1056 }
1057
1058 void Widget::_updateEnabled()
1059 {
1060 mInheritedEnabled = mParent == nullptr || (mParent->getInheritedEnabled());
1061 mInheritedEnabled = mInheritedEnabled && mEnabled;
1062
1063 for (auto& iter : mWidgetChild)
1064 iter->_updateEnabled();
1065 for (auto& iter : mWidgetChildSkin)
1066 iter->_updateEnabled();
1067
1068 baseUpdateEnable();
1069
1070 if (!mInheritedEnabled)
1071 InputManager::getInstance().unlinkWidget(this);
1072 }
1073
1074 void Widget::setColour(const Colour& _value)
1075 {

Callers

nothing calls this directly

Calls 2

getInheritedEnabledMethod · 0.80
unlinkWidgetMethod · 0.80

Tested by

no test coverage detected