diff options
Diffstat (limited to 'engines/sherlock/tattoo/widget_base.h')
-rw-r--r-- | engines/sherlock/tattoo/widget_base.h | 26 |
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(); |