MyGUI 3.5.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_IFont.h"
12#include "MyGUI_Singleton.h"
13#include "MyGUI_XmlDocument.h"
16
17namespace MyGUI
18{
19
20 class MYGUI_EXPORT FontManager : public MemberObsolete<FontManager>
21 {
22 MYGUI_SINGLETON_DECLARATION(FontManager);
23
24 public:
25 FontManager();
26
27 void initialise();
28 void shutdown();
29
33 const std::string& getDefaultFont() const;
37 void setDefaultFont(std::string_view _value);
38
40 IFont* getByName(std::string_view _name) const;
41
42 private:
43 void _load(xml::ElementPtr _node, std::string_view _file, Version _version);
44
45 private:
46 std::string mDefaultName;
47
48 bool mIsInitialise{false};
49 std::string mXmlFontTagName;
50 std::string mXmlPropertyTagName;
51 std::string mXmlDefaultFontValue;
52 };
53
54} // namespace MyGUI
55
56#endif // MYGUI_FONT_MANAGER_H_
#define MYGUI_EXPORT
#define MYGUI_SINGLETON_DECLARATION(ClassName)