diff options
author | Paul Gilbert | 2016-04-26 22:18:21 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:12:05 -0400 |
commit | 34c32e38e2659406e3556f752fcada8491860e92 (patch) | |
tree | c9f2e355504d97376cf8437133415a7f0a606dc6 /engines/titanic/support/text_cursor.h | |
parent | b114c768cd592462794d4fa2a397473cf146656c (diff) | |
download | scummvm-rg350-34c32e38e2659406e3556f752fcada8491860e92.tar.gz scummvm-rg350-34c32e38e2659406e3556f752fcada8491860e92.tar.bz2 scummvm-rg350-34c32e38e2659406e3556f752fcada8491860e92.zip |
TITANIC: More font logic, beginnings of text cursor
Diffstat (limited to 'engines/titanic/support/text_cursor.h')
-rw-r--r-- | engines/titanic/support/text_cursor.h | 54 |
1 files changed, 52 insertions, 2 deletions
diff --git a/engines/titanic/support/text_cursor.h b/engines/titanic/support/text_cursor.h index b6480673eb..d9dbce0988 100644 --- a/engines/titanic/support/text_cursor.h +++ b/engines/titanic/support/text_cursor.h @@ -28,13 +28,63 @@ namespace Titanic { +class CScreenManager; +class CVideoSurface; + class CTextCursor { +private: + CScreenManager *_screenManager; + Point _pos; + Rect _bounds; + uint _priorTicks; + int _field24; + Point _size; + int _field38; + int _field3C; + int _field44; + int _field48; + int _field4C; + CVideoSurface *_surface; + int _field54; public: bool _active; public: - CTextCursor(); + CTextCursor(CScreenManager *screenManager); + ~CTextCursor(); + + /** + * Sets the position of the cursor + */ + void setPos(const Point &pt) { _pos = pt; } + + /** + * Sets the size of the cursor + */ + void setSize(const Point &size) { _size = size; } + + /** + * Returns the bounds for the cursor + */ + Rect getCursorBounds() const { + return Rect(_pos.x, _pos.y, _pos.x + _size.x, _pos.y + _size.y); + } + + /** + * Set bounds + */ + void setBounds(const Rect &r) { _bounds = r; } + + /** + * Clear the bounds + */ + void clearBounds() { _bounds.clear(); } + + /** + * Set the prior ticks + */ + void setTicks(uint ticks) { _priorTicks = ticks; } - Rect getBounds(); + int get54() const { return _field54; } }; } // End of namespace Titanic |