#include <CFont.h>

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 | |
| CDisplay * | m_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 |
| CFont::CFont | ( | void | ) |
| CFont::~CFont | ( | void | ) |
| void CFont::DrawString | ( | int | PositionX, | |
| int | PositionY, | |||
| const char * | pString | |||
| ) | [private] |


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

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

| void CFont::Create | ( | void | ) |


| void CFont::Destroy | ( | void | ) |

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

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


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


| void CFont::SetShadowDirection | ( | EShadowDirection | ShadowDirection | ) |

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

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


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


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

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

CDisplay* CFont::m_pDisplay [private] |
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.
int CFont::m_ShadowColorOffset [private] |
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] |
1.5.5