Crazy Eddie's GUI System  0.8.4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
CEGUI::Font_xmlHandler Class Reference

Handler class used to parse the Font XML files to create Font objects. More...

+ Inheritance diagram for CEGUI::Font_xmlHandler:
+ Collaboration diagram for CEGUI::Font_xmlHandler:

Public Member Functions

 Font_xmlHandler ()
 Constructor.
 
 ~Font_xmlHandler ()
 Destructor.
 
const StringgetObjectName () const
 Return string holding the name of the created Font.
 
FontgetObject () const
 Return reference to the created Font object.
 
const StringgetSchemaName () const
 Retrieves the schema file name to use with resources handled by this handler.
 
const StringgetDefaultResourceGroup () const
 Retrieves the default resource group to be used when handling files.
 
void elementStart (const String &element, const XMLAttributes &attributes)
 Method called to notify the handler at the start of each XML element encountered. More...
 
void elementEnd (const String &element)
 Method called to notify the handler at the end of each XML element encountered. More...
 
- Public Member Functions inherited from CEGUI::XMLHandler
 XMLHandler (void)
 XMLHandler base class constructor.
 
virtual ~XMLHandler (void)
 XMLHandler base class destructor.
 
void handleContainer (const RawDataContainer &source)
 Takes given RawDataContainer containing XML and handles it. More...
 
void handleFile (const String &fileName, const String &resourceGroup)
 Takes given file containing XML and handles it. More...
 
void handleString (const String &source)
 Takes given string containing XML source and handles it. More...
 
virtual void text (const String &text)
 Method called to notify text node, several successiv text node are agregated. More...
 

Static Public Attributes

static const String FontSchemaName
 Filename of the XML schema used for validating Font files.
 
static const String FontElement
 Tag name for Font elements.
 
static const String MappingElement
 Tag name for Mapping elements.
 
static const String FontTypeAttribute
 Attribute name that stores the specific font type.
 
static const String FontNameAttribute
 Attribute name that stores the font name.
 
static const String FontFilenameAttribute
 Attribute name that stores the filename of the font source (font / imageset)
 
static const String FontResourceGroupAttribute
 Attribute name that stores the resource group of the font source.
 
static const String FontAutoScaledAttribute
 Attribute name that stores the auto-scaled setting.
 
static const String FontNativeHorzResAttribute
 Attribute name that stores the horizontal native resolution.
 
static const String FontNativeVertResAttribute
 Attribute name that stores the vertical native resolution.
 
static const String FontLineSpacingAttribute
 Attribute name that stores the line height that we'll report for this font.
 
static const String FontSizeAttribute
 Attribute name that stores the font point size.
 
static const String FontAntiAliasedAttribute
 Attribute name that stores the font anti-aliasing setting.
 
static const String MappingCodepointAttribute
 Attribute name that stores the codepoint value for a mapping.
 
static const String MappingImageAttribute
 Attribute name that stores the image name for a mapping.
 
static const String MappingHorzAdvanceAttribute
 Attribute name that stores the horizontal advance value for a mapping.
 
static const String FontVersionAttribute
 Attribute specifying the datafile version.
 
static const String FontTypeFreeType
 Type name of FreeType fonts.
 
static const String FontTypePixmap
 Type name of Pixmap fonts.
 

Detailed Description

Handler class used to parse the Font XML files to create Font objects.

Member Function Documentation

void CEGUI::Font_xmlHandler::elementEnd ( const String element)
virtual

Method called to notify the handler at the end of each XML element encountered.

Parameters
elementString object holding the name of the element that is ending.
Returns
Nothing.

Reimplemented from CEGUI::XMLHandler.

void CEGUI::Font_xmlHandler::elementStart ( const String element,
const XMLAttributes attributes 
)
virtual

Method called to notify the handler at the start of each XML element encountered.

Parameters
elementString object holding the name of the element that is starting.
attributesAn XMLAttributes object holding the collection of attributes specified for the element.
Returns
Nothing.

Reimplemented from CEGUI::XMLHandler.