FIFE  2008.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
FIFE::ImageFontBase Class Reference

#include <imagefontbase.h>

Inheritance diagram for FIFE::ImageFontBase:
Inheritance graph
Collaboration diagram for FIFE::ImageFontBase:
Collaboration graph

Public Member Functions

 ImageFontBase ()
 
virtual ~ImageFontBase ()
 
virtual int32_t getWidth (const std::string &text) const
 
virtual int32_t getHeight () const
 
- Public Member Functions inherited from FIFE::FontBase
void setRowSpacing (int32_t spacing)
 
int32_t getRowSpacing () const
 
void setGlyphSpacing (int32_t spacing)
 
int32_t getGlyphSpacing () const
 
void setAntiAlias (bool antiAlias)
 
bool isAntiAlias ()
 
ImagegetAsImage (const std::string &text)
 
ImagegetAsImageMultiline (const std::string &text)
 
SDL_Color getColor () const
 
- Public Member Functions inherited from FIFE::IFont
virtual void setColor (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)=0
 

Detailed Description

ImageFont base class

Just set the glyphs/placeholder in any derived class and the rendering is handled by this class. Also frees all glyph surfaces on destruction.

Definition at line 46 of file imagefontbase.h.

Constructor & Destructor Documentation

FIFE::ImageFontBase::ImageFontBase ( )

Constructor.

Definition at line 43 of file imagefontbase.cpp.

FIFE::ImageFontBase::~ImageFontBase ( )
virtual

Destructor.

Definition at line 46 of file imagefontbase.cpp.

Member Function Documentation

int32_t FIFE::ImageFontBase::getHeight ( ) const
virtual

Get the height in pixels a text line would occupy

Implements FIFE::IFont.

Definition at line 73 of file imagefontbase.cpp.

int32_t FIFE::ImageFontBase::getWidth ( const std::string &  text) const
virtual

Get the width in pixels a given text would occupy

Parameters
textThe text that should be measured.

Implements FIFE::IFont.

Definition at line 54 of file imagefontbase.cpp.

References FIFE::FontBase::getGlyphSpacing().


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