aedFont Class Reference

The aedFont class handles text rendering. More...

#include <aedFont.h>

List of all members.

Public Member Functions

 aedFont ()
virtual ~aedFont ()
int getStyle () const
void setStyle (int style)
int getHeight () const
int getAscent () const
int getDescent () const
int getLineSkip () const
bool getGlyphMetrics (Uint16 c, int *minx, int *maxx, int *miny, int *maxy, int *advance)
int getTextSize (const char *text, Uint16 *w, Uint16 *h)
SDL_Surface * renderTextSolid (const char *str, const aedColor &color)
SDL_Surface * renderTextShaded (const char *str, const aedColor &fg, const aedColor &bg)
SDL_Surface * renderTextBlended (const char *str, const aedColor &color)
void renderTextSolid (SDL_Surface *s, int x, int y, const char *str, const aedColor &color)
void renderTextShaded (SDL_Surface *s, int x, int y, const char *str, const aedColor &fg, const aedColor &bg)
void renderTextBlended (SDL_Surface *s, int x, int y, const char *str, const aedColor &color)

Static Public Member Functions

static Uint16 getUnicode (const char *utf8, int *advance)

Private Member Functions

bool openFont (const char *file, int pointsize)
bool openFont (unsigned char *data, unsigned long int datasize, int pointsize)
void closeFont ()

Private Attributes

TTF_Fontdata

Friends

class aedApp


Detailed Description

The aedFont class handles text rendering.


Constructor & Destructor Documentation

aedFont::aedFont (  ) 

virtual aedFont::~aedFont (  )  [virtual]


Member Function Documentation

void aedFont::closeFont (  )  [private]

int aedFont::getAscent (  )  const

int aedFont::getDescent (  )  const

bool aedFont::getGlyphMetrics ( Uint16  c,
int *  minx,
int *  maxx,
int *  miny,
int *  maxy,
int *  advance 
)

int aedFont::getHeight (  )  const

int aedFont::getLineSkip (  )  const

int aedFont::getStyle (  )  const

int aedFont::getTextSize ( const char *  text,
Uint16 *  w,
Uint16 *  h 
)

static Uint16 aedFont::getUnicode ( const char *  utf8,
int *  advance 
) [inline, static]

bool aedFont::openFont ( unsigned char *  data,
unsigned long int  datasize,
int  pointsize 
) [private]

bool aedFont::openFont ( const char *  file,
int  pointsize 
) [private]

void aedFont::renderTextBlended ( SDL_Surface *  s,
int  x,
int  y,
const char *  str,
const aedColor color 
)

SDL_Surface* aedFont::renderTextBlended ( const char *  str,
const aedColor color 
)

void aedFont::renderTextShaded ( SDL_Surface *  s,
int  x,
int  y,
const char *  str,
const aedColor fg,
const aedColor bg 
)

SDL_Surface* aedFont::renderTextShaded ( const char *  str,
const aedColor fg,
const aedColor bg 
)

void aedFont::renderTextSolid ( SDL_Surface *  s,
int  x,
int  y,
const char *  str,
const aedColor color 
)

SDL_Surface* aedFont::renderTextSolid ( const char *  str,
const aedColor color 
)

void aedFont::setStyle ( int  style  ) 


Friends And Related Function Documentation

friend class aedApp [friend]


Member Data Documentation

TTF_Font* aedFont::data [private]


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 15:33:25 2007 for MetalWarriors by  doxygen 1.4.7