From 3adaf2f999c4af74534beb7d02638aba8cc81a1e Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 21 Jun 2015 08:46:38 -0400 Subject: SHERLOCK: RT: Implement inventory handleEvents --- engines/sherlock/tattoo/widget_base.h | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'engines/sherlock/tattoo/widget_base.h') 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 @@ -38,11 +38,12 @@ namespace Tattoo { class WidgetBase { private: Common::Rect _oldBounds; +protected: + static ImageFile *_interfaceImages; protected: SherlockEngine *_vm; Common::Rect _bounds; Surface _surface; - ImageFile *_images; bool _outsideMenu; /** @@ -55,12 +56,30 @@ 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(); /** * Returns the current scroll position */ 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() {} @@ -75,6 +94,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 */ -- cgit v1.2.3