diff options
Diffstat (limited to 'gui/widget.h')
-rw-r--r-- | gui/widget.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/widget.h b/gui/widget.h index c4ce1b9abd..08e519558f 100644 --- a/gui/widget.h +++ b/gui/widget.h @@ -47,7 +47,8 @@ enum { kCheckboxWidget = 'CHKB', kSliderWidget = 'SLDE', kListWidget = 'LIST', - kScrollBarWidget = 'SCRB' + kScrollBarWidget = 'SCRB', + kTabWidget = 'TABW' }; enum { @@ -75,6 +76,9 @@ public: Widget(GuiObject *boss, int x, int y, int w, int h); virtual ~Widget() {} + virtual int16 getAbsX() const { return _x + _boss->getAbsX(); } + virtual int16 getAbsY() const { return _y + _boss->getAbsY(); } + virtual void handleMouseDown(int x, int y, int button, int clickCount) {} virtual void handleMouseUp(int x, int y, int button, int clickCount) {} virtual void handleMouseEntered(int button) {} |