ScummVM API documentation
Grim::TextObject Class Reference
Inheritance diagram for Grim::TextObject:
Grim::PoolObject< TextObject > Grim::TextObjectCommon Grim::PoolObjectBase

Public Types

enum  Justify { NONE, CENTER, LJUSTIFY, RJUSTIFY }
 

Public Member Functions

void setDefaults (const TextObjectDefaults *defaults)
 
void setText (const Common::String &text, bool delaySetup)
 
void reset ()
 
int getBitmapWidth () const
 
int getBitmapHeight () const
 
int getTextCharPosition (int pos)
 
int getLineX (int line) const
 
int getLineY (int line) const
 
void setIsSpeech ()
 
void setBlastDraw ()
 
bool isBlastDraw ()
 
const void * getUserData () const
 
void setUserData (void *data)
 
const Common::StringgetLines () const
 
int getNumLines () const
 
const Common::StringgetName () const
 
void draw ()
 
void update ()
 
void destroy ()
 
void saveState (SaveGame *state) const
 
bool restoreState (SaveGame *state)
 
int getStackLevel ()
 
void incStackLevel ()
 
void decStackLevel ()
 
- Public Member Functions inherited from Grim::PoolObject< TextObject >
void setId (int id)
 
int getId () const override
 
int32 getTag () const override
 
- Public Member Functions inherited from Grim::TextObjectCommon
void setX (int x)
 
int getX () const
 
void setY (int y)
 
int getY () const
 
void setFont (const Font *font)
 
const FontgetFont () const
 
void setFGColor (const Color &fgColor)
 
Color getFGColor () const
 
void setJustify (int justify)
 
int getJustify () const
 
void setWidth (int width)
 
int getWidth () const
 
void setHeight (int height)
 
int getHeight () const
 
void setDuration (int duration)
 
int getDuration () const
 
void setLayer (int layer)
 
int getLayer () const
 
void setCoords (int coords)
 
int getCoords () const
 

Static Public Member Functions

static int32 getStaticTag ()
 
- Static Public Member Functions inherited from Grim::PoolObject< TextObject >
static PoolgetPool ()
 

Protected Member Functions

void setupText ()
 

Protected Attributes

Common::String _textID
 
Common::String_lines
 
void * _userData
 
int _numberLines
 
int _elapsedTime
 
int _maxLineWidth
 
bool _blastDraw
 
bool _isSpeech
 
bool _created
 
int _stackLevel
 
- Protected Attributes inherited from Grim::TextObjectCommon
const Font_font
 
int _x
 
int _y
 
int _width
 
int _height
 
int _justify
 
int _duration
 
int _layer
 
int _coords
 
Color _fgColor
 

Additional Inherited Members

- Static Protected Member Functions inherited from Grim::PoolObject< TextObject >
static void saveStaticState (SaveGame *state)
 
static void restoreStaticState (SaveGame *state)
 

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