ScummVM API documentation
Twp::Text Class Reference

Public Member Functions

 Text (const Common::String &fontName, const Common::String &text, TextHAlignment hAlign=thCenter, TextVAlignment vAlign=tvCenter, float maxWidth=0.0f, const Color &color=Color())
 
void setText (const Common::String &text)
 
Common::String getText () const
 
void setColor (const Color &c)
 
Color getColor () const
 
void setMaxWidth (float maxW)
 
float getMaxWidth () const
 
void setHAlign (TextHAlignment align)
 
TextHAlignment getHAlign () const
 
void setVAlign (TextVAlignment align)
 
TextVAlignment getVAlign () const
 
void setFont (const Common::String &fontName)
 
Common::SharedPtr< FontgetFont ()
 
Math::Vector2d getBounds ()
 
void draw (Gfx &gfx, const Math::Matrix4 &trsf=Math::Matrix4())
 

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