7
This file is part of MyGUI.
9
MyGUI is free software: you can redistribute it and/or modify
10
it under the terms of the GNU Lesser General Public License as published by
11
the Free Software Foundation, either version 3 of the License, or
12
(at your option) any later version.
14
MyGUI is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU Lesser General Public License for more details.
19
You should have received a copy of the GNU Lesser General Public License
20
along with MyGUI. If not, see <http://www.gnu.org/licenses/>.
22
#ifndef __MYGUI_SKIN_MANAGER_H__
23
#define __MYGUI_SKIN_MANAGER_H__
25
#include "MyGUI_Prerequest.h"
26
#include "MyGUI_Singleton.h"
27
#include "MyGUI_Enumerator.h"
28
#include "MyGUI_ResourceSkin.h"
29
#include "MyGUI_XmlDocument.h"
30
#include "MyGUI_ResourceManager.h"
31
#include "MyGUI_BackwardCompatibility.h"
36
class MYGUI_EXPORT SkinManager :
37
public Singleton<SkinManager>,
38
public MemberObsolete<SkinManager>
46
/** Get ResourceSkin by name */
47
ResourceSkin* getByName(const std::string& _name) const;
49
/** Check if skin with specified name exist */
50
bool isExist(const std::string& _name) const;
52
/** Get default skin name.
53
Default skin used when creating widget with skin that doesn't exist.
55
const std::string getDefaultSkin() const;
56
/** Set default skin name.
57
Default skin used when creating widget with skin that doesn't exist.
59
void setDefaultSkin(const std::string& _value);
62
void createDefault(const std::string& _value);
63
void _load(xml::ElementPtr _node, const std::string& _file, Version _version);
66
std::string mDefaultName;
73
#endif // __MYGUI_SKIN_MANAGER_H__
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)
7
#ifndef __MYGUI_SKIN_MANAGER_H__
8
#define __MYGUI_SKIN_MANAGER_H__
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"
21
class MYGUI_EXPORT SkinManager :
22
public Singleton<SkinManager>,
23
public MemberObsolete<SkinManager>
31
/** Get ResourceSkin by name */
32
ResourceSkin* getByName(const std::string& _name) const;
34
/** Check if skin with specified name exist */
35
bool isExist(const std::string& _name) const;
37
/** Get default skin name.
38
Default skin used when creating widget with skin that doesn't exist.
40
const std::string getDefaultSkin() const;
41
/** Set default skin name.
42
Default skin used when creating widget with skin that doesn't exist.
44
void setDefaultSkin(const std::string& _value);
47
void createDefault(const std::string& _value);
48
void _load(xml::ElementPtr _node, const std::string& _file, Version _version);
51
std::string mDefaultName;
54
std::string mXmlSkinTagName;
55
std::string mXmlDefaultSkinValue;
60
#endif // __MYGUI_SKIN_MANAGER_H__