MyGUI 3.5.3
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_ResourceSkin.h"
13#include "MyGUI_XmlDocument.h"
16
17namespace MyGUI
18{
19
20 class MYGUI_EXPORT SkinManager : public MemberObsolete<SkinManager>
21 {
22 MYGUI_SINGLETON_DECLARATION(SkinManager);
23
24 public:
25 SkinManager();
26
27 void initialise();
28 void shutdown();
29
31 ResourceSkin* getByName(std::string_view _name) const;
32
34 bool isExist(std::string_view _name) const;
35
39 const std::string& getDefaultSkin() const;
43 void setDefaultSkin(std::string_view _value);
44
45 private:
46 void createDefault(std::string_view _value);
47 void _load(xml::ElementPtr _node, std::string_view _file, Version _version);
48
49 private:
50 std::string mDefaultName;
51
52 bool mIsInitialise{false};
53 std::string mXmlSkinTagName;
54 std::string mXmlDefaultSkinValue;
55 };
56
57} // namespace MyGUI
58
59#endif // MYGUI_SKIN_MANAGER_H_
#define MYGUI_EXPORT
#define MYGUI_SINGLETON_DECLARATION(ClassName)