#include <sdltruetypefont.hpp>
Public Member Functions | |
SDLTrueTypeFont (const std::string &filename, int size) | |
virtual | ~SDLTrueTypeFont () |
virtual void | setRowSpacing (int spacing) |
virtual int | getRowSpacing () |
virtual void | setGlyphSpacing (int spacing) |
virtual int | getGlyphSpacing () |
virtual void | setAntiAlias (bool antiAlias) |
virtual bool | isAntiAlias () |
virtual int | getWidth (const std::string &text) const |
virtual int | getHeight () const |
virtual void | drawString (Graphics *graphics, const std::string &text, int x, int y) |
Protected Attributes | |
TTF_Font * | mFont |
int | mHeight |
int | mGlyphSpacing |
int | mRowSpacing |
std::string | mFilename |
bool | mAntiAlias |
gcn::SDLTrueTypeFont::SDLTrueTypeFont | ( | const std::string & | filename, | |
int | size | |||
) |
gcn::SDLTrueTypeFont::~SDLTrueTypeFont | ( | ) | [virtual] |
void gcn::SDLTrueTypeFont::setRowSpacing | ( | int | spacing | ) | [virtual] |
int gcn::SDLTrueTypeFont::getRowSpacing | ( | ) | [virtual] |
void gcn::SDLTrueTypeFont::setGlyphSpacing | ( | int | spacing | ) | [virtual] |
int gcn::SDLTrueTypeFont::getGlyphSpacing | ( | ) | [virtual] |
void gcn::SDLTrueTypeFont::setAntiAlias | ( | bool | antiAlias | ) | [virtual] |
bool gcn::SDLTrueTypeFont::isAntiAlias | ( | ) | [virtual] |
int gcn::SDLTrueTypeFont::getWidth | ( | const std::string & | text | ) | const [virtual] |
int gcn::SDLTrueTypeFont::getHeight | ( | ) | const [virtual] |
void gcn::SDLTrueTypeFont::drawString | ( | Graphics * | graphics, | |
const std::string & | text, | |||
int | x, | |||
int | y | |||
) | [virtual] |
TTF_Font* gcn::SDLTrueTypeFont::mFont [protected] |
int gcn::SDLTrueTypeFont::mHeight [protected] |
int gcn::SDLTrueTypeFont::mGlyphSpacing [protected] |
int gcn::SDLTrueTypeFont::mRowSpacing [protected] |
std::string gcn::SDLTrueTypeFont::mFilename [protected] |
bool gcn::SDLTrueTypeFont::mAntiAlias [protected] |