ScummVM API documentation
Draci::Text Class Reference
Inheritance diagram for Draci::Text:
Draci::Drawable

Public Member Functions

 Text (const Common::String &str, const Font *font, byte fontColor, int x, int y, uint spacing)
 
void setText (const Common::String &str)
 
void setColor (byte fontColor)
 
void setSpacing (uint spacing)
 
void setFont (const Font *font)
 
void repeatedlySplitLongLines (uint maxWidth)
 
uint getLength () const
 
void draw (Surface *surface, bool markDirty, int relX, int relY) const override
 
void drawReScaled (Surface *surface, bool markDirty, const Displacement &displacement) const override
 
Common::Rect getRect (const Displacement &displacement) const override
 
DrawableType getType () const override
 
- Public Member Functions inherited from Draci::Drawable
uint getWidth () const
 
uint getHeight () const
 
uint getScaledWidth () const
 
uint getScaledHeight () const
 
void setScaled (uint width, uint height)
 
int getX () const
 
int getY () const
 
void setX (int x)
 
void setY (int y)
 
void setDelay (int delay)
 
int getDelay () const
 

Additional Inherited Members

- Protected Attributes inherited from Draci::Drawable
uint _width
 Width of the sprite.
 
uint _height
 Height of the sprite.
 
uint _scaledWidth
 Scaled width of the sprite.
 
uint _scaledHeight
 Scaled height of the sprite.
 
int _x
 
int _y
 Sprite coordinates.
 
int _delay
 

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