ScummVM API documentation
Neverhood::FontSurface Class Reference
Inheritance diagram for Neverhood::FontSurface:
Neverhood::BaseSurface

Public Member Functions

 FontSurface (NeverhoodEngine *vm, NPointArray *tracking, uint charsPerRow, uint16 numRows, byte firstChar, uint16 charWidth, uint16 charHeight)
 
 FontSurface (NeverhoodEngine *vm, uint32 fileHash, uint charsPerRow, uint16 numRows, byte firstChar, uint16 charWidth, uint16 charHeight)
 
void drawChar (BaseSurface *destSurface, int16 x, int16 y, byte chr)
 
void drawString (const Common::SharedPtr< BaseSurface > &destSurface, int16 x, int16 y, const byte *string, int stringLen=-1)
 
int16 getStringWidth (const byte *string, int stringLen)
 
uint16 getCharWidth () const
 
uint16 getCharHeight () const
 
- Public Member Functions inherited from Neverhood::BaseSurface
 BaseSurface (NeverhoodEngine *vm, int priority, int16 width, int16 height, Common::String name)
 
virtual void draw ()
 
void clear ()
 
void drawSpriteResource (SpriteResource &spriteResource)
 
void drawSpriteResourceEx (SpriteResource &spriteResource, bool flipX, bool flipY, int16 width, int16 height)
 
void drawAnimResource (AnimResource &animResource, uint frameIndex, bool flipX, bool flipY, int16 width, int16 height)
 
void drawMouseCursorResource (MouseCursorResource &mouseCursorResource, int frameNum)
 
void copyFrom (Graphics::Surface *sourceSurface, int16 x, int16 y, NDrawRect &sourceRect)
 
int getPriority () const
 
void setPriority (int priority)
 
NDrawRectgetDrawRect ()
 
NDrawRectgetSysRect ()
 
NRectgetClipRect ()
 
void setClipRect (NRect clipRect)
 
void setClipRects (NRect *clipRects, uint clipRectsCount)
 
void clearClipRects ()
 
bool getVisible () const
 
void setVisible (bool value)
 
void setTransparent (bool value)
 
Graphics::SurfacegetSurface ()
 
const Common::String getName () const
 

Static Public Member Functions

static FontSurfacecreateFontSurface (NeverhoodEngine *vm, uint32 fileHash)
 

Protected Attributes

uint _charsPerRow
 
uint16 _numRows
 
byte _firstChar
 
uint16 _charWidth
 
uint16 _charHeight
 
NPointArray_tracking
 
- Protected Attributes inherited from Neverhood::BaseSurface
NeverhoodEngine_vm
 
int _priority
 
bool _visible
 
Common::String _name
 
Graphics::Surface_surface
 
NDrawRect _drawRect
 
NDrawRect _sysRect
 
NRect _clipRect
 
NRect_clipRects
 
uint _clipRectsCount
 
bool _transparent
 
byte _version
 

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