| 60 | } |
| 61 | |
| 62 | void PointerManager::shutdown() |
| 63 | { |
| 64 | MYGUI_ASSERT(mIsInitialise, getClassTypeName() << " is not initialised"); |
| 65 | MYGUI_LOG(Info, "* Shutdown: " << getClassTypeName()); |
| 66 | |
| 67 | InputManager::getInstance().eventChangeMouseFocus -= newDelegate(this, &PointerManager::notifyChangeMouseFocus); |
| 68 | Gui::getInstance().eventFrameStart -= newDelegate(this, &PointerManager::notifyFrameStart); |
| 69 | |
| 70 | const std::string& resourceCategory = ResourceManager::getInstance().getCategoryName(); |
| 71 | FactoryManager::getInstance().unregisterFactory<ResourceManualPointer>(resourceCategory); |
| 72 | FactoryManager::getInstance().unregisterFactory<ResourceImageSetPointer>(resourceCategory); |
| 73 | |
| 74 | // удаляем все виджеты |
| 75 | _destroyAllChildWidget(); |
| 76 | |
| 77 | mWidgetOwner = nullptr; |
| 78 | |
| 79 | WidgetManager::getInstance().unregisterUnlinker(this); |
| 80 | ResourceManager::getInstance().unregisterLoadXmlDelegate(mXmlPointerTagName); |
| 81 | |
| 82 | MYGUI_LOG(Info, getClassTypeName() << " successfully shutdown"); |
| 83 | mIsInitialise = false; |
| 84 | } |
| 85 | |
| 86 | void PointerManager::_load(xml::ElementPtr _node, std::string_view _file, Version _version) |
| 87 | { |
nothing calls this directly
no test coverage detected