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

Wintermute::BaseFontBitmap Class Reference

#include <base_font_bitmap.h>

Inheritance diagram for Wintermute::BaseFontBitmap:
Collaboration diagram for Wintermute::BaseFontBitmap:

List of all members.

Public Member Functions

bool loadBuffer (char *buffer)
bool loadFile (const Common::String &filename)
int getTextWidth (const byte *text, int maxLength=-1) override
int getTextHeight (const byte *text, int width) override
void drawText (const byte *text, int x, int y, int width, TTextAlign align=TAL_LEFT, int max_height=-1, int maxLength=-1) override
int getLetterHeight () override
 BaseFontBitmap (BaseGame *inGame)
 ~BaseFontBitmap () override

Private Member Functions

bool getWidths ()
int getCharWidth (byte index)
void drawChar (byte c, int x, int y)
int textHeightDraw (const byte *text, int x, int y, int width, TTextAlign align, bool draw, int max_height=-1, int maxLength=-1)

Private Attributes

BaseSprite_sprite
int32 _widthsFrame
bool _fontextFix
int32 _numColumns
int32 _tileHeight
int32 _tileWidth
byte _widths [NUM_CHARACTERS]
BaseSubFrame_subframe
bool _wholeCell

Detailed Description

Definition at line 37 of file base_font_bitmap.h.


Constructor & Destructor Documentation

Wintermute::BaseFontBitmap::BaseFontBitmap ( BaseGame inGame  ) 

Definition at line 51 of file base_font_bitmap.cpp.

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

Definition at line 64 of file base_font_bitmap.cpp.


Member Function Documentation

void Wintermute::BaseFontBitmap::drawChar ( byte  c,
int  x,
int  y 
) [private]

Definition at line 245 of file base_font_bitmap.cpp.

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

Reimplemented from Wintermute::BaseFont.

Definition at line 73 of file base_font_bitmap.cpp.

int Wintermute::BaseFontBitmap::getCharWidth ( byte  index  )  [private]

Definition at line 564 of file base_font_bitmap.cpp.

int Wintermute::BaseFontBitmap::getLetterHeight (  )  [override, virtual]

Reimplemented from Wintermute::BaseFont.

Definition at line 627 of file base_font_bitmap.cpp.

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

Reimplemented from Wintermute::BaseFont.

Definition at line 79 of file base_font_bitmap.cpp.

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

Reimplemented from Wintermute::BaseFont.

Definition at line 85 of file base_font_bitmap.cpp.

bool Wintermute::BaseFontBitmap::getWidths (  )  [private]

Definition at line 573 of file base_font_bitmap.cpp.

TOKEN_DEF_START TOKEN_DEF_END bool Wintermute::BaseFontBitmap::loadBuffer ( char *  buffer  ) 

Definition at line 325 of file base_font_bitmap.cpp.

bool Wintermute::BaseFontBitmap::loadFile ( const Common::String filename  ) 

Definition at line 282 of file base_font_bitmap.cpp.

int Wintermute::BaseFontBitmap::textHeightDraw ( const byte text,
int  x,
int  y,
int  width,
TTextAlign  align,
bool  draw,
int  max_height = -1,
int  maxLength = -1 
) [private]

Definition at line 110 of file base_font_bitmap.cpp.


Member Data Documentation

Definition at line 54 of file base_font_bitmap.h.

Definition at line 55 of file base_font_bitmap.h.

Definition at line 52 of file base_font_bitmap.h.

Definition at line 56 of file base_font_bitmap.h.

Definition at line 57 of file base_font_bitmap.h.

Definition at line 60 of file base_font_bitmap.h.

byte Wintermute::BaseFontBitmap::_widths[NUM_CHARACTERS] [private]

Definition at line 58 of file base_font_bitmap.h.


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


Generated on Sat Sep 26 2020 05:04:12 for ResidualVM by doxygen 1.7.1
curved edge   curved edge