aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo/widget_base.h
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-21 08:46:38 -0400
committerPaul Gilbert2015-06-21 08:46:38 -0400
commit3adaf2f999c4af74534beb7d02638aba8cc81a1e (patch)
treedd6aa325a44c51a8867b2e42093c7c085e5d3853 /engines/sherlock/tattoo/widget_base.h
parent371d5e1d904898a01292db26703d38ee90558bbd (diff)
downloadscummvm-rg350-3adaf2f999c4af74534beb7d02638aba8cc81a1e.tar.gz
scummvm-rg350-3adaf2f999c4af74534beb7d02638aba8cc81a1e.tar.bz2
scummvm-rg350-3adaf2f999c4af74534beb7d02638aba8cc81a1e.zip
SHERLOCK: RT: Implement inventory handleEvents
Diffstat (limited to 'engines/sherlock/tattoo/widget_base.h')
-rw-r--r--engines/sherlock/tattoo/widget_base.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/engines/sherlock/tattoo/widget_base.h b/engines/sherlock/tattoo/widget_base.h
index 7e546db248..9d2ddcfc23 100644
--- a/engines/sherlock/tattoo/widget_base.h
+++ b/engines/sherlock/tattoo/widget_base.h
@@ -39,10 +39,11 @@ class WidgetBase {
private:
Common::Rect _oldBounds;
protected:
+ static ImageFile *_interfaceImages;
+protected:
SherlockEngine *_vm;
Common::Rect _bounds;
Surface _surface;
- ImageFile *_images;
bool _outsideMenu;
/**
@@ -55,6 +56,14 @@ protected:
*/
void checkMenuPosition();
+ /**
+ * Draw a window frame around the dges of the passed surface
+ */
+ void makeInfoArea(Surface &s);
+
+ /**
+ * Draw a window frame around the widget's surface
+ */
void makeInfoArea();
/**
@@ -62,6 +71,16 @@ protected:
*/
virtual const Common::Point &getCurrentScroll() const;
public:
+ /**
+ * Sets the interface images used for drawing the various types of window elements
+ */
+ static void setInterfaceImages(ImageFile *images);
+
+ /**
+ * Frees the interface images
+ */
+ static void freeInterfaceImages();
+public:
WidgetBase(SherlockEngine *vm);
virtual ~WidgetBase() {}
@@ -76,6 +95,11 @@ public:
void draw();
/**
+ * Used by some descendents to check for keys to mouse the mouse within the dialog
+ */
+ void checkTabbingKeys(int numOptions);
+
+ /**
* Summon the window
*/
virtual void summonWindow();