MyGUI_SkinManager.h
Go to the documentation of this file.
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#ifndef MYGUI_SKIN_MANAGER_H_
#define MYGUI_SKIN_MANAGER_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_Singleton.h"
#include "MyGUI_Enumerator.h"
#include "MyGUI_ResourceSkin.h"
#include "MyGUI_XmlDocument.h"
#include "MyGUI_ResourceManager.h"
#include "MyGUI_BackwardCompatibility.h"
namespace MyGUI
{
class MYGUI_EXPORT SkinManager : public MemberObsolete<SkinManager>
{
MYGUI_SINGLETON_DECLARATION(SkinManager);
public:
SkinManager();
void initialise();
void shutdown();
ResourceSkin* getByName(std::string_view _name) const;
bool isExist(std::string_view _name) const;
const std::string& getDefaultSkin() const;
void setDefaultSkin(std::string_view _value);
private:
void createDefault(std::string_view _value);
void _load(xml::ElementPtr _node, std::string_view _file, Version _version);
private:
std::string mDefaultName;
bool mIsInitialise{false};
std::string mXmlSkinTagName;
std::string mXmlDefaultSkinValue;
};
} // namespace MyGUI
#endif // MYGUI_SKIN_MANAGER_H_
MyGUI_BackwardCompatibility.h
MyGUI_Enumerator.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI_ResourceManager.h
MyGUI_ResourceSkin.h
MyGUI_Singleton.h
MYGUI_SINGLETON_DECLARATION
#define MYGUI_SINGLETON_DECLARATION(ClassName)
Definition MyGUI_Singleton.h:112
MyGUI_XmlDocument.h
MyGUI::MemberObsolete
Definition MyGUI_DeprecatedTypes.h:14
MyGUI::ResourceSkin
Definition MyGUI_ResourceSkin.h:22
MyGUI::SkinManager::shutdown
void shutdown()
Definition MyGUI_SkinManager.cpp:50
MyGUI::SkinManager::getDefaultSkin
const std::string & getDefaultSkin() const
Definition MyGUI_SkinManager.cpp:114
MyGUI::SkinManager::isExist
bool isExist(std::string_view _name) const
Definition MyGUI_SkinManager.cpp:102
MyGUI::SkinManager::getByName
ResourceSkin * getByName(std::string_view _name) const
Definition MyGUI_SkinManager.cpp:80
MyGUI::SkinManager::SkinManager
SkinManager(const SkinManager &)=delete
MyGUI::SkinManager::initialise
void initialise()
Definition MyGUI_SkinManager.cpp:32
MyGUI::SkinManager::setDefaultSkin
void setDefaultSkin(std::string_view _value)
Definition MyGUI_SkinManager.cpp:109
MyGUI::Version
Definition MyGUI_Version.h:18
MyGUI::xml::ElementPtr
Element * ElementPtr
Definition MyGUI_XmlDocument.h:112
MyGUI
Definition MyGUI_ActionController.h:15