ScummVM API documentation
Scumm::CharsetRendererMac Class Reference
Inheritance diagram for Scumm::CharsetRendererMac:
Scumm::CharsetRendererCommon Scumm::CharsetRenderer

Public Member Functions

 CharsetRendererMac (ScummEngine *vm, const Common::Path &fontFile)
 
void setCurID (int32 id) override
 
int getStringWidth (int arg, const byte *text) override
 
int getFontHeight () const override
 
int getCharWidth (uint16 chr) const override
 
void printChar (int chr, bool ignoreCharsetMask) override
 
void setColor (byte color, bool) override
 
- Public Member Functions inherited from Scumm::CharsetRendererCommon
 CharsetRendererCommon (ScummEngine *vm)
 
void setCurID (int32 id) override
 
int getFontHeight () const override
 
- Public Member Functions inherited from Scumm::CharsetRenderer
 CharsetRenderer (ScummEngine *vm)
 
virtual void printChar (int chr, bool ignoreCharsetMask)=0
 
virtual void drawChar (int chr, Graphics::Surface &s, int x, int y)
 
virtual int getStringWidth (int arg, const byte *text)
 
void addLinebreaks (int a, byte *str, int pos, int maxwidth)
 
void translateColor ()
 
virtual void setCurID (int32 id)=0
 
int getCurID ()
 
virtual int getFontHeight () const =0
 
virtual int getCharHeight (uint16 chr) const
 
virtual int getCharWidth (uint16 chr) const =0
 
virtual void setColor (byte color, bool shadowModeSpecialFlag=false)
 
virtual byte getColor ()
 
void saveLoadWithSerializer (Common::Serializer &ser)
 
virtual Common::U32String convertText (const Common::String &text, Common::Language language) const
 

Protected Member Functions

int getDrawWidthIntern (uint16 chr) const
 
void printCharInternal (int chr, int color, bool shadow, int x, int y)
 
byte getTextColor ()
 
byte getTextShadowColor ()
 

Protected Attributes

const Graphics::Font * _font = nullptr
 
bool _useCorrectFontSpacing
 
bool _pad
 
int _lastTop
 
Graphics::Surface * _glyphSurface
 
- Protected Attributes inherited from Scumm::CharsetRendererCommon
const byte * _fontPtr
 
int _bitsPerPixel
 
int _fontHeight
 
int _numChars
 
byte _shadowColor
 
ShadowType _shadowType
 
- Protected Attributes inherited from Scumm::CharsetRenderer
byte _color
 
ScummEngine * _vm
 
int32 _curId
 

Additional Inherited Members

- Public Types inherited from Scumm::CharsetRendererCommon
enum  ShadowType { kNoShadowType , kNormalShadowType , kHorizontalShadowType , kOutlineShadowType }
 
- Public Attributes inherited from Scumm::CharsetRenderer
Common::Rect _str
 
int _top
 
int _left
 
int _startLeft
 
int _right
 
bool _center
 
bool _hasMask
 
VirtScreenNumber _textScreenID
 
bool _blitAlso
 
bool _firstChar
 
bool _disableOffsX
 

Member Function Documentation

◆ setCurID()

void Scumm::CharsetRendererMac::setCurID ( int32  id)
overridevirtual

Reimplemented from Scumm::CharsetRendererCommon.

◆ getStringWidth()

int Scumm::CharsetRendererMac::getStringWidth ( int  arg,
const byte *  text 
)
overridevirtual

Reimplemented from Scumm::CharsetRenderer.

◆ getFontHeight()

int Scumm::CharsetRendererMac::getFontHeight ( ) const
overridevirtual

Reimplemented from Scumm::CharsetRendererCommon.

◆ getCharWidth()

int Scumm::CharsetRendererMac::getCharWidth ( uint16  chr) const
overridevirtual

◆ printChar()

void Scumm::CharsetRendererMac::printChar ( int  chr,
bool  ignoreCharsetMask 
)
overridevirtual

◆ setColor()

void Scumm::CharsetRendererMac::setColor ( byte  color,
bool   
)
overridevirtual

Reimplemented from Scumm::CharsetRenderer.


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