Crazy Eddies GUI System
0.6.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
include
CEGUIFontManager.h
1
/***********************************************************************
2
filename: CEGUIFontManager.h
3
created: 21/2/2004
4
author: Paul D Turner
5
6
purpose: Defines interface for the FontManager class
7
*************************************************************************/
8
/***************************************************************************
9
* Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
10
*
11
* Permission is hereby granted, free of charge, to any person obtaining
12
* a copy of this software and associated documentation files (the
13
* "Software"), to deal in the Software without restriction, including
14
* without limitation the rights to use, copy, modify, merge, publish,
15
* distribute, sublicense, and/or sell copies of the Software, and to
16
* permit persons to whom the Software is furnished to do so, subject to
17
* the following conditions:
18
*
19
* The above copyright notice and this permission notice shall be
20
* included in all copies or substantial portions of the Software.
21
*
22
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
26
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
27
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28
* OTHER DEALINGS IN THE SOFTWARE.
29
***************************************************************************/
30
#ifndef _CEGUIFontManager_h_
31
#define _CEGUIFontManager_h_
32
33
#include "CEGUIBase.h"
34
#include "CEGUIString.h"
35
#include "CEGUISingleton.h"
36
#include "CEGUIIteratorBase.h"
37
#include <map>
38
39
#if defined(_MSC_VER)
40
# pragma warning(push)
41
# pragma warning(disable : 4275)
42
# pragma warning(disable : 4251)
43
#endif
44
45
46
// Start of CEGUI namespace section
47
namespace
CEGUI
48
{
58
class
CEGUIEXPORT
FontManager
:
public
Singleton
<FontManager>
59
{
60
public
:
65
FontManager
(
void
);
66
67
72
~
FontManager
(
void
);
73
74
95
Font
*createFont(
const
String
& filename,
const
String
& resourceGroup =
""
);
96
97
123
Font
*createFont (
const
String
&type,
const
String
& name,
const
String
& fontname,
124
const
String
& resourceGroup =
""
);
125
126
134
Font
*createFont (
const
String
&type,
const
XMLAttributes
& attributes);
135
136
147
void
destroyFont(
const
String
& name);
148
149
160
void
destroyFont(
Font
* font);
161
162
170
void
destroyAllFonts(
void
);
171
172
183
bool
isFontPresent(
const
String
& name)
const
;
184
185
198
Font
* getFont(
const
String
& name)
const
;
199
200
211
void
notifyScreenResolution(
const
Size
& size);
212
213
227
void
writeFontToStream(
const
String
& name,
OutStream
& out_stream)
const
;
228
229
230
private
:
231
/*************************************************************************
232
Implementation Data
233
*************************************************************************/
234
typedef
std::map<String, Font*, String::FastLessCompare> FontRegistry;
235
FontRegistry d_fonts;
236
237
public
:
238
/*************************************************************************
239
Iterator stuff
240
*************************************************************************/
241
typedef
ConstBaseIterator<FontRegistry>
FontIterator
;
242
247
FontIterator
getIterator (
void
)
const
;
248
};
249
250
}
// End of CEGUI namespace section
251
252
253
#if defined(_MSC_VER)
254
# pragma warning(pop)
255
#endif
256
257
#endif // end of guard _CEGUIFontManager_h_
Generated by
1.8.3.1