CFont Class Reference

#include <CFont.h>

Collaboration diagram for CFont:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CFont (void)
 ~CFont (void)
void SetDisplay (CDisplay *pDisplay)
void Create (void)
void Destroy (void)
void SetShadow (bool DrawShadow)
void SetTextColor (EFontColor FontColor)
void SetShadowColor (EFontColor FontColor)
void SetShadowDirection (EShadowDirection ShadowDirection)
void SetSpriteLayer (int SpriteLayer)
void Draw (int PositionX, int PositionY, const char *pString,...)
void DrawCenteredX (int BorderLeft, int BorderRight, int PositionY, const char *pString,...)
void DrawCenteredY (int PositionX, int BorderUp, int BorderDown, const char *pString,...)
void DrawCenteredXY (int BorderUp, int BorderDown, int BorderLeft, int BorderRight, const char *pString,...)

Private Member Functions

void DrawString (int PositionX, int PositionY, const char *pString)
int GetColorOffset (EFontColor FontColor)

Private Attributes

CDisplaym_pDisplay
 We need a display object to draw the string characters.
int m_TextColorOffset
 Sprite offset to use to write text using the selected font color.
int m_ShadowColorOffset
 Sprite offset to use to write text shadow using the selected font color.
int m_SpriteLayer
 Sprite layer in which string characters will be drawn.
bool m_DrawShadow
 Do we have to draw a shadow under the string we draw?
int m_ShadowOffsetX
 Offset to apply to text position in order to get shadow position.
int m_ShadowOffsetY


Constructor & Destructor Documentation

CFont::CFont ( void   ) 

CFont::~CFont ( void   ) 


Member Function Documentation

void CFont::DrawString ( int  PositionX,
int  PositionY,
const char *  pString 
) [private]

Here is the call graph for this function:

Here is the caller graph for this function:

int CFont::GetColorOffset ( EFontColor  FontColor  )  [private]

Here is the caller graph for this function:

void CFont::SetDisplay ( CDisplay pDisplay  )  [inline]

Here is the caller graph for this function:

void CFont::Create ( void   ) 

Here is the call graph for this function:

Here is the caller graph for this function:

void CFont::Destroy ( void   ) 

Here is the caller graph for this function:

void CFont::SetShadow ( bool  DrawShadow  )  [inline]

Here is the caller graph for this function:

void CFont::SetTextColor ( EFontColor  FontColor  )  [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

void CFont::SetShadowColor ( EFontColor  FontColor  )  [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

void CFont::SetShadowDirection ( EShadowDirection  ShadowDirection  ) 

Here is the caller graph for this function:

void CFont::SetSpriteLayer ( int  SpriteLayer  )  [inline]

Here is the caller graph for this function:

void CFont::Draw ( int  PositionX,
int  PositionY,
const char *  pString,
  ... 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void CFont::DrawCenteredX ( int  BorderLeft,
int  BorderRight,
int  PositionY,
const char *  pString,
  ... 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void CFont::DrawCenteredY ( int  PositionX,
int  BorderUp,
int  BorderDown,
const char *  pString,
  ... 
)

Here is the call graph for this function:

void CFont::DrawCenteredXY ( int  BorderUp,
int  BorderDown,
int  BorderLeft,
int  BorderRight,
const char *  pString,
  ... 
)

Here is the call graph for this function:


Member Data Documentation

We need a display object to draw the string characters.

int CFont::m_TextColorOffset [private]

Sprite offset to use to write text using the selected font color.

Sprite offset to use to write text shadow using the selected font color.

int CFont::m_SpriteLayer [private]

Sprite layer in which string characters will be drawn.

bool CFont::m_DrawShadow [private]

Do we have to draw a shadow under the string we draw?

int CFont::m_ShadowOffsetX [private]

Offset to apply to text position in order to get shadow position.

int CFont::m_ShadowOffsetY [private]


The documentation for this class was generated from the following files:

Generated on Sat Oct 18 12:26:45 2008 for Bombermaaan by  doxygen 1.5.5
Visit the Bombermaaan project page
SourceForge.net Logo