aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo/widget_base.h
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-18 21:48:27 -0400
committerPaul Gilbert2015-06-18 21:48:27 -0400
commit7186eab65f47c7370925d1a72598ccd8e0656076 (patch)
tree98132c6c4abc4566a2d9eeaf32d70c2d4c2694e1 /engines/sherlock/tattoo/widget_base.h
parent1732428aa63c35c3989568fbc3a3e9c63bc8482c (diff)
downloadscummvm-rg350-7186eab65f47c7370925d1a72598ccd8e0656076.tar.gz
scummvm-rg350-7186eab65f47c7370925d1a72598ccd8e0656076.tar.bz2
scummvm-rg350-7186eab65f47c7370925d1a72598ccd8e0656076.zip
SHERLOCK: RT: Implement loading for the text window widget
Diffstat (limited to 'engines/sherlock/tattoo/widget_base.h')
-rw-r--r--engines/sherlock/tattoo/widget_base.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/widget_base.h b/engines/sherlock/tattoo/widget_base.h
index 2a9988bc49..38b6d04b20 100644
--- a/engines/sherlock/tattoo/widget_base.h
+++ b/engines/sherlock/tattoo/widget_base.h
@@ -31,6 +31,7 @@
namespace Sherlock {
class SherlockEngine;
+class ImageFile;
namespace Tattoo {
@@ -39,6 +40,19 @@ protected:
SherlockEngine *_vm;
Common::Rect _bounds, _oldBounds;
Surface _surface;
+ ImageFile *_images;
+
+ /**
+ * Used by descendent classes to split up long text for display across multiple lines
+ */
+ Common::String splitLines(const Common::String &str, Common::StringArray &lines, int maxWidth, uint maxLines);
+
+ /**
+ * Ensure that menu is drawn entirely on-screen
+ */
+ void checkMenuPosition();
+
+ void makeInfoArea();
public:
WidgetBase(SherlockEngine *vm);
virtual ~WidgetBase() {}