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

#include <font.h>

Inheritance diagram for Grim::Font:
Collaboration diagram for Grim::Font:

List of all members.

Classes

struct  CharHeader

Public Member Functions

 Font ()
 ~Font ()
void load (const Common::String &filename, Common::SeekableReadStream *data)
const Common::StringgetFilename () const
int32 getKernedHeight () const
int32 getBaseOffsetY () const
int32 getCharBitmapWidth (unsigned char c) const
int32 getCharBitmapHeight (unsigned char c) const
int32 getCharKernedWidth (unsigned char c) const
int32 getCharStartingCol (unsigned char c) const
int32 getCharStartingLine (unsigned char c) const
int32 getCharOffset (unsigned char c) const
const bytegetCharData (unsigned char c) const
const bytegetFontData () const
uint32 getDataSize () const
int getKernedStringLength (const Common::String &text) const
int getBitmapStringLength (const Common::String &text) const
int getStringHeight (const Common::String &text) const
const void * getUserData () const
void setUserData (void *data)
void saveState (SaveGame *state) const
void restoreState (SaveGame *state)

Static Public Member Functions

static int32 getStaticTag ()

Static Public Attributes

static const uint8 emerFont [][13]

Private Member Functions

uint16 getCharIndex (unsigned char c) const

Private Attributes

uint32 _numChars
uint32 _dataSize
uint32 _kernedHeight
uint32 _baseOffsetY
uint32 _firstChar
uint32 _lastChar
uint16_charIndex
CharHeader_charHeaders
byte_fontData
Common::String _filename
void * _userData

Detailed Description

Definition at line 36 of file font.h.


Constructor & Destructor Documentation

Grim::Font::Font (  ) 

Definition at line 34 of file font.cpp.

Grim::Font::~Font (  ) 

Definition at line 42 of file font.cpp.


Member Function Documentation

int32 Grim::Font::getBaseOffsetY (  )  const [inline]

Definition at line 47 of file font.h.

int Grim::Font::getBitmapStringLength ( const Common::String text  )  const

Definition at line 123 of file font.cpp.

int32 Grim::Font::getCharBitmapHeight ( unsigned char  c  )  const [inline]

Definition at line 49 of file font.h.

int32 Grim::Font::getCharBitmapWidth ( unsigned char  c  )  const [inline]

Definition at line 48 of file font.h.

const byte* Grim::Font::getCharData ( unsigned char  c  )  const [inline]

Definition at line 54 of file font.h.

uint16 Grim::Font::getCharIndex ( unsigned char  c  )  const [private]

Definition at line 85 of file font.cpp.

int32 Grim::Font::getCharKernedWidth ( unsigned char  c  )  const [inline]

Definition at line 50 of file font.h.

int32 Grim::Font::getCharOffset ( unsigned char  c  )  const [inline]

Definition at line 53 of file font.h.

int32 Grim::Font::getCharStartingCol ( unsigned char  c  )  const [inline]

Definition at line 51 of file font.h.

int32 Grim::Font::getCharStartingLine ( unsigned char  c  )  const [inline]

Definition at line 52 of file font.h.

uint32 Grim::Font::getDataSize (  )  const [inline]

Definition at line 57 of file font.h.

const Common::String& Grim::Font::getFilename (  )  const [inline]

Definition at line 45 of file font.h.

const byte* Grim::Font::getFontData (  )  const [inline]

Definition at line 56 of file font.h.

int32 Grim::Font::getKernedHeight (  )  const [inline]

Definition at line 46 of file font.h.

int Grim::Font::getKernedStringLength ( const Common::String text  )  const

Definition at line 115 of file font.cpp.

static int32 Grim::Font::getStaticTag (  )  [inline, static]

Definition at line 41 of file font.h.

int Grim::Font::getStringHeight ( const Common::String text  )  const

Definition at line 131 of file font.cpp.

const void* Grim::Font::getUserData (  )  const [inline]

Definition at line 63 of file font.h.

void Grim::Font::load ( const Common::String filename,
Common::SeekableReadStream data 
)

Definition at line 49 of file font.cpp.

void Grim::Font::restoreState ( SaveGame state  ) 

Definition at line 146 of file font.cpp.

void Grim::Font::saveState ( SaveGame state  )  const

Definition at line 142 of file font.cpp.

void Grim::Font::setUserData ( void *  data  )  [inline]

Definition at line 64 of file font.h.


Member Data Documentation

Definition at line 84 of file font.h.

Definition at line 87 of file font.h.

Definition at line 86 of file font.h.

Definition at line 83 of file font.h.

Definition at line 89 of file font.h.

Definition at line 85 of file font.h.

Definition at line 88 of file font.h.

Definition at line 84 of file font.h.

Definition at line 85 of file font.h.

Definition at line 82 of file font.h.

void* Grim::Font::_userData [private]

Definition at line 90 of file font.h.

const uint8 Grim::Font::emerFont [static]

Definition at line 69 of file font.h.


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


Generated on Sat Nov 9 2019 05:02:04 for ResidualVM by doxygen 1.7.1
curved edge   curved edge