MyGUI: MyGUI_FontManager.h Source File

MyGUI 3.4.3

MyGUI_FontManager.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_FONT_MANAGER_H_
8#define MYGUI_FONT_MANAGER_H_
9
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"
17
18namespace MyGUI
19{
20
21 class MYGUI_EXPORT FontManager : public MemberObsolete<FontManager>
22 {
23 MYGUI_SINGLETON_DECLARATION(FontManager);
24
25 public:
26 FontManager();
27
28 void initialise();
29 void shutdown();
30
34 const std::string& getDefaultFont() const;
38 void setDefaultFont(std::string_view _value);
39
41 IFont* getByName(std::string_view _name) const;
42
43 private:
44 void _load(xml::ElementPtr _node, std::string_view _file, Version _version);
45
46 private:
47 std::string mDefaultName;
48
49 bool mIsInitialise{false};
50 std::string mXmlFontTagName;
51 std::string mXmlPropertyTagName;
52 std::string mXmlDefaultFontValue;
53 };
54
55} // namespace MyGUI
56
57#endif // MYGUI_FONT_MANAGER_H_
MyGUI_BackwardCompatibility.h
MyGUI_Enumerator.h
MyGUI_IFont.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI_ResourceManager.h
MyGUI_Singleton.h
MYGUI_SINGLETON_DECLARATION
#define MYGUI_SINGLETON_DECLARATION(ClassName)
Definition MyGUI_Singleton.h:112
MyGUI_XmlDocument.h
MyGUI::FontManager::setDefaultFont
void setDefaultFont(std::string_view _value)
Definition MyGUI_FontManager.cpp:84
MyGUI::FontManager::getByName
IFont * getByName(std::string_view _name) const
Definition MyGUI_FontManager.cpp:89
MyGUI::FontManager::getDefaultFont
const std::string & getDefaultFont() const
Definition MyGUI_FontManager.cpp:108
MyGUI::FontManager::initialise
void initialise()
Definition MyGUI_FontManager.cpp:28
MyGUI::FontManager::FontManager
FontManager(const FontManager &)=delete
MyGUI::FontManager::shutdown
void shutdown()
Definition MyGUI_FontManager.cpp:46
MyGUI::IFont
Definition MyGUI_IFont.h:21
MyGUI::MemberObsolete
Definition MyGUI_DeprecatedTypes.h:14
MyGUI::Version
Definition MyGUI_Version.h:18
MyGUI::xml::ElementPtr
Element * ElementPtr
Definition MyGUI_XmlDocument.h:112
MyGUI
Definition MyGUI_ActionController.h:15