Crazy Eddie's GUI System
0.8.7
|
27 #ifndef _CEGUIFontManager_h_
28 #define _CEGUIFontManager_h_
30 #include "CEGUI/Singleton.h"
31 #include "CEGUI/NamedXMLResourceManager.h"
32 #include "CEGUI/Font.h"
33 #include "CEGUI/Font_xmlHandler.h"
34 #include "CEGUI/IteratorBase.h"
37 # pragma warning(push)
38 # pragma warning(disable : 4275)
39 # pragma warning(disable : 4251)
57 class CEGUIEXPORT FontManager :
58 public Singleton<FontManager>,
59 public NamedXMLResourceManager<Font, Font_xmlHandler>,
60 public AllocatedObject<FontManager>
111 Font& createFreeTypeFont(
const String& font_name,
const float point_size,
112 const bool anti_aliased,
113 const String& font_filename,
114 const String& resource_group =
"",
116 const Sizef& native_res = Sizef(640.0f, 480.0f),
159 Font& createPixmapFont(
const String& font_name,
160 const String& imageset_filename,
161 const String& resource_group =
"",
163 const Sizef& native_res = Sizef(640.0f, 480.0f),
173 void notifyDisplaySizeChanged(
const Sizef& size);
186 void writeFontToStream(
const String& name,
OutStream& out_stream)
const;
189 typedef ConstMapIterator<ObjectRegistry> FontIterator;
196 FontIterator getIterator()
const;
207 #if defined(_MSC_VER)
208 # pragma warning(pop)
211 #endif // end of guard _CEGUIFontManager_h_
Font & createFromContainer(const RawDataContainer &source, XMLResourceExistsAction action=XREA_RETURN)
Creates a new T object from a RawDataContainer and adds it to the collection.
Definition: NamedXMLResourceManager.h:290
@ ASM_Disabled
No auto scaling takes place.
Definition: Image.h:90
XMLResourceExistsAction
Possible actions when loading an XML resource that already exists.
Definition: NamedXMLResourceManager.h:66
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Font & createFromString(const String &source, XMLResourceExistsAction action=XREA_RETURN)
Creates a new T object from a string and adds it to the collection.
Definition: NamedXMLResourceManager.h:315
Font & createFromFile(const String &xml_filename, const String &resource_group="", XMLResourceExistsAction action=XREA_RETURN)
Creates a new T object from an XML file and adds it to the collection.
Definition: NamedXMLResourceManager.h:302
AutoScaledMode
Definition: Image.h:63
@ XREA_RETURN
Do not load the resource, return the existing instance.
Definition: NamedXMLResourceManager.h:93
std::ostream OutStream
Output stream class.
Definition: Base.h:187