| 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 | { |
nothing calls this directly
no test coverage detected