#include <aedFont.h>
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_Font * | data |
Friends | |
| class | aedApp |
| aedFont::aedFont | ( | ) |
| virtual aedFont::~aedFont | ( | ) | [virtual] |
| 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 | ) |
friend class aedApp [friend] |
TTF_Font* aedFont::data [private] |
1.4.7