Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

Public Member Functions

Graphics::Font Class Reference

#include <font.h>

Inheritance diagram for Graphics::Font:
Inheritance graph
[legend]

List of all members.

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::Array< Common::String > &lines) const

Detailed Description

Instances of this class represent a distinct font, with a built-in renderer.

Todo:
Maybe move the high-level methods (drawString etc.) to a separate FontRenderer class? That way, we could have different variants... ?

Definition at line 51 of file font.h.


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

Generated by  Doxygen 1.6.0   Back to index