22 #ifndef GRIM_TEXTOBJECT_H 23 #define GRIM_TEXTOBJECT_H 25 #include "engines/grim/pool.h" 26 #include "engines/grim/color.h" 28 #include "common/endian.h" 37 void setX(
int x) { _x = x; }
38 int getX()
const {
return _x; }
40 void setY(
int y) { _y = y; }
41 int getY()
const {
return _y; }
43 void setFont(
const Font *font) { _font = font; }
44 const Font *getFont()
const {
return _font; }
46 void setFGColor(
const Color &fgColor) { _fgColor = fgColor; }
47 Color getFGColor()
const {
return _fgColor; }
49 void setJustify(
int justify) { _justify = justify; }
50 int getJustify()
const {
return _justify; }
52 void setWidth(
int width) { _width = width; }
53 int getWidth()
const {
return _width; }
55 void setHeight(
int height) { _height = height; }
56 int getHeight()
const {
return _height; }
58 void setDuration(
int duration) { _duration = duration; }
59 int getDuration()
const {
return _duration; }
61 void setLayer(
int layer);
62 int getLayer()
const {
return _layer; }
64 void setCoords(
int coords) { _coords = coords; }
65 int getCoords()
const {
return _coords; }
89 static int32 getStaticTag() {
return MKTAG(
'T',
'E',
'X',
'T'); }
95 int getBitmapWidth()
const;
96 int getBitmapHeight()
const;
97 int getTextCharPosition(
int pos);
99 int getLineX(
int line)
const;
100 int getLineY(
int line)
const;
102 void setIsSpeech() { _isSpeech =
true; }
103 void setBlastDraw() { _blastDraw =
true; }
104 bool isBlastDraw() {
return _blastDraw; }
106 const void *getUserData()
const {
return _userData; }
107 void setUserData(
void *data) { _userData = data; }
110 int getNumLines()
const {
return _numberLines; }
118 void saveState(
SaveGame *state)
const;
121 int getStackLevel() {
return _stackLevel; }
122 void incStackLevel() { _stackLevel++; }
123 void decStackLevel() { assert(_stackLevel > 0); _stackLevel--; }
152 template <
typename S>
Definition: savegame.h:33
Definition: textobject.h:84
Definition: textobject.h:35
#define MKTAG(a0, a1, a2, a3)
Definition: endian.h:188
Definition: textobject.h:80