~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to MyGUIEngine/include/MyGUI_FontManager.h

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*!
2
 
        @file
3
 
        @author         Albert Semenov
4
 
        @date           11/2007
5
 
*/
6
 
/*
7
 
        This file is part of MyGUI.
8
 
 
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.
13
 
 
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.
18
 
 
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/>.
21
 
*/
22
 
#ifndef __MYGUI_FONT_MANAGER_H__
23
 
#define __MYGUI_FONT_MANAGER_H__
24
 
 
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"
32
 
 
33
 
namespace MyGUI
34
 
{
35
 
 
36
 
        class MYGUI_EXPORT FontManager :
37
 
                public Singleton<FontManager>,
38
 
                public MemberObsolete<FontManager>
39
 
        {
40
 
        public:
41
 
                FontManager();
42
 
 
43
 
                void initialise();
44
 
                void shutdown();
45
 
 
46
 
                /** Get default font name.
47
 
                        Default skin also used when creating widget with skin that doesn't exist.
48
 
                */
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.
52
 
                */
53
 
                void setDefaultFont(const std::string& _value);
54
 
 
55
 
                /** Get font resource */
56
 
                IFont* getByName(const std::string& _name) const;
57
 
 
58
 
        private:
59
 
                void _load(xml::ElementPtr _node, const std::string& _file, Version _version);
60
 
 
61
 
        private:
62
 
                std::string mDefaultName;
63
 
 
64
 
                bool mIsInitialise;
65
 
        };
66
 
 
67
 
} // namespace MyGUI
68
 
 
69
 
#endif // __MYGUI_FONT_MANAGER_H__
 
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
 
 
18
namespace MyGUI
 
19
{
 
20
 
 
21
        class MYGUI_EXPORT FontManager :
 
22
                public Singleton<FontManager>,
 
23
                public MemberObsolete<FontManager>
 
24
        {
 
25
        public:
 
26
                FontManager();
 
27
 
 
28
                void initialise();
 
29
                void shutdown();
 
30
 
 
31
                /** Get default font name.
 
32
                        Default skin also used when creating widget with skin that doesn't exist.
 
33
                */
 
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.
 
37
                */
 
38
                void setDefaultFont(const std::string& _value);
 
39
 
 
40
                /** Get font resource */
 
41
                IFont* getByName(const std::string& _name) const;
 
42
 
 
43
        private:
 
44
                void _load(xml::ElementPtr _node, const std::string& _file, Version _version);
 
45
 
 
46
        private:
 
47
                std::string mDefaultName;
 
48
 
 
49
                bool mIsInitialise;
 
50
                std::string mXmlFontTagName;
 
51
                std::string mXmlPropertyTagName;
 
52
                std::string mXmlDefaultFontValue;
 
53
        };
 
54
 
 
55
} // namespace MyGUI
 
56
 
 
57
#endif // __MYGUI_FONT_MANAGER_H__