Frontend::GUI::BitmapFont Class Reference

#include <BitmapFont.h>

Inheritance diagram for Frontend::GUI::BitmapFont:

Frontend::GUI::Font Frontend::Object List of all members.

Public Member Functions

 BitmapFont (String name, int pointSize, FontStyle style)
virtual ~BitmapFont ()
String GetName ()
int GetPointSize ()
FontStyle GetStyle ()
void SetAscender (int ascender)
void SetDescender (int descender)
void SetHeight (int height)
void SetAdvance (unsigned char character, int advance)
void SetBearing (unsigned char character, Math::Vector2i bearing)
void SetBitmap (unsigned char character, Bitmap *bitmap)
int GetAscender ()
int GetDescender ()
int GetHeight ()
int GetAdvance (unsigned char character)
Math::Vector2i GetBearing (unsigned char character)
BitmapGetBitmap (unsigned char character)
void AddRef ()
 Adds a reference to the object.
void Release ()
 Releases a reference on the object.
unsigned int GetRefCount ()
 Returns the number of references on the object.

Private Attributes

int ascender
int descender
int height
int advanceTable [256]
Math::Vector2i bearingTable [256]
BitmapbitmapTable [256]
String name
int pointSize
FontStyle style

Constructor & Destructor Documentation

Frontend::GUI::BitmapFont::BitmapFont String  name,
int  pointSize,
FontStyle  style
 

virtual Frontend::GUI::BitmapFont::~BitmapFont  )  [virtual]
 


Member Function Documentation

void Frontend::Object::AddRef  )  [inherited]
 

Adds a reference to the object.

Aqcuires an additional ownership on the object. The object will not be deleted until all owners have called Release() on it.

See also:
Release()

int Frontend::GUI::BitmapFont::GetAdvance unsigned char  character  ) 
 

int Frontend::GUI::BitmapFont::GetAscender  ) 
 

Math::Vector2i Frontend::GUI::BitmapFont::GetBearing unsigned char  character  ) 
 

Bitmap* Frontend::GUI::BitmapFont::GetBitmap unsigned char  character  ) 
 

int Frontend::GUI::BitmapFont::GetDescender  ) 
 

int Frontend::GUI::BitmapFont::GetHeight  ) 
 

String Frontend::GUI::BitmapFont::GetName  )  [virtual]
 

Implements Frontend::GUI::Font.

int Frontend::GUI::BitmapFont::GetPointSize  )  [virtual]
 

Implements Frontend::GUI::Font.

unsigned int Frontend::Object::GetRefCount  )  [inline, inherited]
 

Returns the number of references on the object.

Returns:
The number of references on the object.

FontStyle Frontend::GUI::BitmapFont::GetStyle  )  [virtual]
 

Implements Frontend::GUI::Font.

void Frontend::Object::Release  )  [inherited]
 

Releases a reference on the object.

If you are an owner of an object, use this function to release it when you are done with it. The object will not be deleted until all owners have called Release() on it.

void Frontend::GUI::BitmapFont::SetAdvance unsigned char  character,
int  advance
 

void Frontend::GUI::BitmapFont::SetAscender int  ascender  ) 
 

void Frontend::GUI::BitmapFont::SetBearing unsigned char  character,
Math::Vector2i  bearing
 

void Frontend::GUI::BitmapFont::SetBitmap unsigned char  character,
Bitmap bitmap
 

void Frontend::GUI::BitmapFont::SetDescender int  descender  ) 
 

void Frontend::GUI::BitmapFont::SetHeight int  height  ) 
 


Member Data Documentation

int Frontend::GUI::BitmapFont::advanceTable[256] [private]
 

int Frontend::GUI::BitmapFont::ascender [private]
 

Math::Vector2i Frontend::GUI::BitmapFont::bearingTable[256] [private]
 

Bitmap* Frontend::GUI::BitmapFont::bitmapTable[256] [private]
 

int Frontend::GUI::BitmapFont::descender [private]
 

int Frontend::GUI::BitmapFont::height [private]
 

String Frontend::GUI::BitmapFont::name [private]
 

int Frontend::GUI::BitmapFont::pointSize [private]
 

FontStyle Frontend::GUI::BitmapFont::style [private]
 


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