Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

CCustomFont Class Reference

Font class. More...

#include <CustomFont.h>

Inheritance diagram for CCustomFont:

CXMLResource CResource CEntity CBitmapFont List of all members.

Public Member Functions

virtual int LoadXML (TiXmlNode *pDataNode, CString strFilename)
virtual int SaveXML (TiXmlNode *pDataNode, CString strFilename)
virtual void Destroy ()
virtual void Draw (CString strFormat,...)=0
virtual void DrawChar (float x, float y, char c)=0
eFontType GetFontType ()
 Returns font type.
virtual bool IsOfType (eEntityType eType)

Protected Attributes

DWORD m_dwFlags
eFontType m_eFontType

Detailed Description

Font class.

This class provides an interface to higher-abstraction font classes.

Definition at line 29 of file CustomFont.h.


Member Function Documentation

void CCustomFont::Destroy  )  [virtual]
 

Method details: Clean-up method

Reimplemented from CXMLResource.

Reimplemented in CBitmapFont.

Definition at line 29 of file CustomFont.cpp.

virtual void CCustomFont::Draw CString  strFormat,
  ...
[pure virtual]
 

Method details:

Parameters:
strFormat - Format of passed parameters

Implemented in CBitmapFont.

virtual void CCustomFont::DrawChar float  x,
float  y,
char  c
[pure virtual]
 

Method details:

Parameters:
x,y - 2D coordinate to draw character at
c - character (letter or symbol) to draw

Implemented in CBitmapFont.

bool CCustomFont::IsOfType eEntityType  eType  )  [virtual]
 

Method details: This is an implementation of Custom RTTI

Reimplemented from CXMLResource.

Reimplemented in CBitmapFont.

Definition at line 34 of file CustomFont.cpp.

References CXMLResource::IsOfType().

Referenced by CBitmapFont::IsOfType().

int CCustomFont::LoadXML TiXmlNode pDataNode,
CString  strFilename
[virtual]
 

Method details:

Parameters:
pDataNode - Pointer to XML Node that holds data for the animation
strFilename - String containing filename where the data for the animation is stored

Reimplemented from CXMLResource.

Reimplemented in CBitmapFont.

Definition at line 14 of file CustomFont.cpp.

References CXMLResource::LoadXML().

Referenced by CFontManager::LoadResource(), and CBitmapFont::LoadXML().

int CCustomFont::SaveXML TiXmlNode pDataNode,
CString  strFilename
[virtual]
 

Method details:

Parameters:
pDataNode - Pointer to XML Node that will be the parent hold the data for this animation
strFilename - String containing filename where the data for the animation is stored

Reimplemented from CXMLResource.

Reimplemented in CBitmapFont.

Definition at line 19 of file CustomFont.cpp.

References CXMLResource::SaveXML().

Referenced by CFontManager::SaveXML().


Member Data Documentation

DWORD CCustomFont::m_dwFlags [protected]
 

Custom flags Definition at line 77 of file CustomFont.h.

eFontType CCustomFont::m_eFontType [protected]
 

Font type Definition at line 78 of file CustomFont.h.

Referenced by GetFontType().


The documentation for this class was generated from the following files:
Generated on Sun Jul 17 21:34:29 2005 for OpenGL GUI by doxygen 1.3.8