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

Method shutdown

MyGUIEngine/src/MyGUI_PointerManager.cpp:62–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

getClassTypeNameFunction · 0.85
newDelegateFunction · 0.85
unregisterUnlinkerMethod · 0.80

Tested by

no test coverage detected