MyGUI 3.2.2

MyGUI_SkinManager.h
Go to the documentation of this file.
1 /*
2 * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3 * Distributed under the MIT License
4 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5 */
6
7 #ifndef MYGUI_SKIN_MANAGER_H_
8 #define MYGUI_SKIN_MANAGER_H_
9
10 #include "MyGUI_Prerequest.h"
11 #include "MyGUI_Singleton.h"
12 #include "MyGUI_Enumerator.h"
13 #include "MyGUI_ResourceSkin.h"
14 #include "MyGUI_XmlDocument.h"
15 #include "MyGUI_ResourceManager.h"
16 #include "MyGUI_BackwardCompatibility.h"
17
18 namespace MyGUI
19 {
20
21 class MYGUI_EXPORT SkinManager :
22 public Singleton<SkinManager>,
23 public MemberObsolete<SkinManager>
24 {
25 public:
26 SkinManager();
27
28 void initialise();
29 void shutdown();
30
32 ResourceSkin* getByName(const std::string& _name) const;
33
35 bool isExist(const std::string& _name) const;
36
40 const std::string getDefaultSkin() const;
44 void setDefaultSkin(const std::string& _value);
45
46 private:
47 void createDefault(const std::string& _value);
48 void _load(xml::ElementPtr _node, const std::string& _file, Version _version);
49
50 private:
51 std::string mDefaultName;
52
53 bool mIsInitialise;
54 std::string mXmlSkinTagName;
55 std::string mXmlDefaultSkinValue;
56 };
57
58 } // namespace MyGUI
59
60 #endif // MYGUI_SKIN_MANAGER_H_
MyGUI::ResourceSkin
Definition: MyGUI_ResourceSkin.h:21
MyGUI_Enumerator.h
MyGUI_Prerequest.h
MyGUI_Singleton.h
MyGUI_XmlDocument.h
MyGUI
Definition: MyGUI_ActionController.h:14
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition: MyGUI_Platform.h:103
MyGUI_BackwardCompatibility.h
MyGUI::xml::Element
Definition: MyGUI_XmlDocument.h:158
MyGUI_ResourceSkin.h
MyGUI::Version
Definition: MyGUI_Version.h:17
MyGUI_ResourceManager.h
MyGUI::MemberObsolete
Definition: MyGUI_DeprecatedTypes.h:13
MyGUI::SkinManager
Definition: MyGUI_SkinManager.h:21
MyGUI::Singleton
Definition: MyGUI_Singleton.h:20