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_FONT_MANAGER_H__
23
#define __MYGUI_FONT_MANAGER_H__
25
#include "MyGUI_Prerequest.h"
26
#include "MyGUI_Enumerator.h"
27
#include "MyGUI_IFont.h"
28
#include "MyGUI_Singleton.h"
29
#include "MyGUI_XmlDocument.h"
30
#include "MyGUI_ResourceManager.h"
31
#include "MyGUI_BackwardCompatibility.h"
36
class MYGUI_EXPORT FontManager :
37
public Singleton<FontManager>,
38
public MemberObsolete<FontManager>
46
/** Get default font name.
47
Default skin also used when creating widget with skin that doesn't exist.
49
const std::string& getDefaultFont() const;
50
/** Get default font name.
51
Default skin also used when creating widget with skin that doesn't exist.
53
void setDefaultFont(const std::string& _value);
55
/** Get font resource */
56
IFont* getByName(const std::string& _name) const;
59
void _load(xml::ElementPtr _node, const std::string& _file, Version _version);
62
std::string mDefaultName;
69
#endif // __MYGUI_FONT_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_FONT_MANAGER_H__
8
#define __MYGUI_FONT_MANAGER_H__
10
#include "MyGUI_Prerequest.h"
11
#include "MyGUI_Enumerator.h"
12
#include "MyGUI_IFont.h"
13
#include "MyGUI_Singleton.h"
14
#include "MyGUI_XmlDocument.h"
15
#include "MyGUI_ResourceManager.h"
16
#include "MyGUI_BackwardCompatibility.h"
21
class MYGUI_EXPORT FontManager :
22
public Singleton<FontManager>,
23
public MemberObsolete<FontManager>
31
/** Get default font name.
32
Default skin also used when creating widget with skin that doesn't exist.
34
const std::string& getDefaultFont() const;
35
/** Get default font name.
36
Default skin also used when creating widget with skin that doesn't exist.
38
void setDefaultFont(const std::string& _value);
40
/** Get font resource */
41
IFont* getByName(const std::string& _name) const;
44
void _load(xml::ElementPtr _node, const std::string& _file, Version _version);
47
std::string mDefaultName;
50
std::string mXmlFontTagName;
51
std::string mXmlPropertyTagName;
52
std::string mXmlDefaultFontValue;
57
#endif // __MYGUI_FONT_MANAGER_H__