ScummVM API documentation
Ultima::Nuvie::GUI_Font Class Reference

Public Member Functions

 GUI_Font (uint8 fontType=GUI_FONT_DEFAULT)
 
 GUI_Font (const char *name)
 
 GUI_Font (Graphics::ManagedSurface *bitmap)
 
 GUI_Font (const GUI_Font &font)=delete
 
virtual void setTransparency (bool on)
 
virtual void setColoring (uint8 fr, uint8 fg, uint8 fb, uint8 br=255, uint8 bg=255, uint8 bb=255)
 
virtual void setColoring (uint8 fr, uint8 fg, uint8 fb, uint8 fr1, uint8 fg1, uint8 fb1, uint8 br, uint8 bg, uint8 bb)
 
virtual int charHeight () const
 
virtual int charWidth () const
 
virtual void textOut (Graphics::ManagedSurface *context, int x, int y, const char *text, int line_wrap=0)
 
void textExtent (const char *text, int *w, int *h, int line_wrap=0)
 
uint16 getCenter (const char *text, uint16 width)
 

Protected Attributes

Graphics::ManagedSurface_fontStore
 
bool _transparent
 
DisposeAfterUse::Flag _disposeFont
 
int _charH
 
int _charW
 
byte * _wData
 

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