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

Method shutdown

MyGUIEngine/src/MyGUI_SubWidgetManager.cpp:59–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 void SubWidgetManager::shutdown()
60 {
61 MYGUI_ASSERT(mIsInitialise, getClassTypeName() << " is not initialised");
62 MYGUI_LOG(Info, "* Shutdown: " << getClassTypeName());
63
64 FactoryManager& factory = FactoryManager::getInstance();
65
66 factory.unregisterFactory(mStateCategoryName, "SubSkin");
67 factory.unregisterFactory(mStateCategoryName, "MainSkin");
68 factory.unregisterFactory(mStateCategoryName, "PolygonalSkin");
69 factory.unregisterFactory(mStateCategoryName, "RotatingSkin");
70 factory.unregisterFactory(mStateCategoryName, "TileRect");
71 factory.unregisterFactory(mStateCategoryName, "EditText");
72 factory.unregisterFactory(mStateCategoryName, "SimpleText");
73
74 factory.unregisterFactory<SubSkin>(mCategoryName);
75 factory.unregisterFactory<MainSkin>(mCategoryName);
76 factory.unregisterFactory<PolygonalSkin>(mCategoryName);
77 factory.unregisterFactory<RotatingSkin>(mCategoryName);
78 factory.unregisterFactory<TileRect>(mCategoryName);
79 factory.unregisterFactory<EditText>(mCategoryName);
80 factory.unregisterFactory<SimpleText>(mCategoryName);
81
82 MYGUI_LOG(Info, getClassTypeName() << " successfully shutdown");
83 mIsInitialise = false;
84 }
85
86 const std::string& SubWidgetManager::getCategoryName() const
87 {

Callers

nothing calls this directly

Calls 2

getClassTypeNameFunction · 0.85
unregisterFactoryMethod · 0.80

Tested by

no test coverage detected