diff options
author | Max Horn | 2003-11-02 22:31:20 +0000 |
---|---|---|
committer | Max Horn | 2003-11-02 22:31:20 +0000 |
commit | 1d9ac7b91b86973a298acdc8e29659343e41c5dc (patch) | |
tree | 095e7d4651b26d8a0c720733385c92fa9d58061f /gui/object.h | |
parent | 95db1c18dbefaa691174ffe80b8282f0b922eb74 (diff) | |
download | scummvm-rg350-1d9ac7b91b86973a298acdc8e29659343e41c5dc.tar.gz scummvm-rg350-1d9ac7b91b86973a298acdc8e29659343e41c5dc.tar.bz2 scummvm-rg350-1d9ac7b91b86973a298acdc8e29659343e41c5dc.zip |
more changes to allow widget nesting to fully work
svn-id: r11068
Diffstat (limited to 'gui/object.h')
-rw-r--r-- | gui/object.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gui/object.h b/gui/object.h index 8393acf671..f842a708f8 100644 --- a/gui/object.h +++ b/gui/object.h @@ -60,13 +60,17 @@ protected: public: GuiObject(int x, int y, int w, int h) : _x(x), _y(y), _w(w), _h(h), _firstWidget(0) { } - virtual bool isVisible() const = 0; - virtual int16 getAbsX() const { return _x; } virtual int16 getAbsY() const { return _y; } + virtual int16 getChildX() const { return getAbsX(); } + virtual int16 getChildY() const { return getAbsY(); } virtual uint16 getWidth() const { return _w; } virtual uint16 getHeight() const { return _h; } + virtual bool isVisible() const = 0; + + virtual void draw() = 0; + protected: virtual void releaseFocus() = 0; }; |