Logo Search packages:      
Sourcecode: scummvm version File versions

Graphics::Font Class Reference

#include <font.h>

Inherited by Graphics::NewFont, and Graphics::ScummFont.

List of all members.

Detailed Description

Instances of this class represent a distinct font, with a built-in renderer.
Maybe move the high-level methods (drawString etc.) to a separate FontRenderer class? That way, we could have different variants... ?

Definition at line 49 of file font.h.

Public Member Functions

virtual void drawChar (Surface *dst, byte chr, int x, int y, uint32 color) const =0
void drawString (Surface *dst, const Common::String &str, int x, int y, int w, uint32 color, TextAlign align=kTextAlignLeft, int deltax=0, bool useEllipsis=true) const
virtual int getCharWidth (byte chr) const =0
virtual int getFontHeight () const =0
virtual int getMaxCharWidth () const =0
int getStringWidth (const Common::String &str) const
int wordWrapText (const Common::String &str, int maxWidth, Common::StringList &lines) const

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

Generated by  Doxygen 1.6.0   Back to index