Go to the documentation of this file.
23 template <> SkinManager* Singleton<SkinManager>::msInstance =
nullptr;
24 template <>
const char* Singleton<SkinManager>::mClassTypeName =
"SkinManager";
28 mXmlSkinTagName(
"Skin"),
29 mXmlDefaultSkinValue(
"Default")
43 mDefaultName =
"skin_Default";
44 createDefault(mDefaultName);
61 mIsInitialise =
false;
66 #ifndef MYGUI_DONT_USE_OBSOLETE
68 #endif // MYGUI_DONT_USE_OBSOLETE
71 void SkinManager::createDefault(
const std::string& _value)
76 skin->setResourceName(_value);
84 if (!skinName.empty() && skinName != mXmlDefaultSkinValue)
87 if (result ==
nullptr)
90 if (!skinName.empty() && skinName != mXmlDefaultSkinValue)
108 mDefaultName = _value;
static ResourceManager & getInstance()
const std::string & getCategoryName() const
void unregisterFactory(const std::string &_category, const std::string &_type)
static std::string getSkinRename(const std::string &_skinName)
void addResource(IResourcePtr _item)
LoadXmlDelegate & registerLoadXmlDelegate(const std::string &_key)
void unregisterLoadXmlDelegate(const std::string &_key)
void loadOldSkinFormat(xml::ElementPtr _node, const std::string &_file, Version _version, const std::string &_tag)
static const char * getClassTypeName()
virtual bool isType(const std::type_info &_type) const
void registerFactory(const std::string &_category, const std::string &_type, Delegate::IDelegate *_delegate)
#define MYGUI_ASSERT(exp, dest)
Type * castType(bool _throw=true)
const std::string getDefaultSkin() const
IResource * getByName(const std::string &_name, bool _throw=true) const
#define MYGUI_LOG(level, text)
IObject * createObject(const std::string &_category, const std::string &_type)
bool isExist(const std::string &_name) const
void setDefaultSkin(const std::string &_value)
ResourceSkin * getByName(const std::string &_name) const
MYGUI_TEMPLATE MYGUI_TEMPLATE_PARAMS delegates::IDelegateMYGUI_SUFFIX MYGUI_TEMPLATE_ARGS * newDelegate(void(*_func)(MYGUI_PARAMS))