ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <base_font.h>

Inheritance diagram for Wintermute::BaseFont:
Collaboration diagram for Wintermute::BaseFont:

List of all members.

Public Member Functions

virtual int getTextWidth (const byte *text, int maxLength=-1)
virtual int getTextHeight (const byte *text, int width)
virtual void drawText (const byte *text, int x, int y, int width, TTextAlign align=TAL_LEFT, int max_height=-1, int maxLength=-1)
virtual int getLetterHeight ()
virtual void initLoop ()
virtual void afterLoad ()
 BaseFont (BaseGame *inGame)
 ~BaseFont () override

Static Public Member Functions

static BaseFontcreateFromFile (BaseGame *game, const Common::String &filename)

Static Private Member Functions

static bool isTrueType (BaseGame *game, const Common::String &filename)

Detailed Description

Definition at line 38 of file base_font.h.


Constructor & Destructor Documentation

Wintermute::BaseFont::BaseFont ( BaseGame inGame  ) 

Definition at line 44 of file base_font.cpp.

Wintermute::BaseFont::~BaseFont (  )  [override]

Definition at line 50 of file base_font.cpp.


Member Function Documentation

virtual void Wintermute::BaseFont::afterLoad (  )  [inline, virtual]

Reimplemented in Wintermute::BaseFontTT.

Definition at line 47 of file base_font.h.

BaseFont * Wintermute::BaseFont::createFromFile ( BaseGame game,
const Common::String filename 
) [static]

Definition at line 86 of file base_font.cpp.

void Wintermute::BaseFont::drawText ( const byte text,
int  x,
int  y,
int  width,
TTextAlign  align = TAL_LEFT,
int  max_height = -1,
int  maxLength = -1 
) [virtual]

Reimplemented in Wintermute::BaseFontBitmap, and Wintermute::BaseFontTT.

Definition at line 55 of file base_font.cpp.

int Wintermute::BaseFont::getLetterHeight (  )  [virtual]

Reimplemented in Wintermute::BaseFontBitmap, and Wintermute::BaseFontTT.

Definition at line 72 of file base_font.cpp.

int Wintermute::BaseFont::getTextHeight ( const byte text,
int  width 
) [virtual]

Reimplemented in Wintermute::BaseFontBitmap, and Wintermute::BaseFontTT.

Definition at line 60 of file base_font.cpp.

int Wintermute::BaseFont::getTextWidth ( const byte text,
int  maxLength = -1 
) [virtual]

Reimplemented in Wintermute::BaseFontBitmap, and Wintermute::BaseFontTT.

Definition at line 66 of file base_font.cpp.

virtual void Wintermute::BaseFont::initLoop (  )  [inline, virtual]

Reimplemented in Wintermute::BaseFontTT.

Definition at line 46 of file base_font.h.

TOKEN_DEF_START TOKEN_DEF_END bool Wintermute::BaseFont::isTrueType ( BaseGame game,
const Common::String filename 
) [static, private]

Definition at line 114 of file base_font.cpp.


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


Generated on Sat Sep 19 2020 05:06:28 for ResidualVM by doxygen 1.7.1
curved edge   curved edge