diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-21 21:22:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-21 21:22:17 +0300 |
commit | 773ef01f1490f0884836a9d08f75938eb8742c8e (patch) | |
tree | dc7ccb40d39cf7ad4b712a342407257671962205 /src/gui/widgets/widget.h | |
parent | c66f0547024b54c1a944746e947328c4e7fa56ae (diff) | |
download | manaplus-773ef01f1490f0884836a9d08f75938eb8742c8e.tar.gz manaplus-773ef01f1490f0884836a9d08f75938eb8742c8e.tar.bz2 manaplus-773ef01f1490f0884836a9d08f75938eb8742c8e.tar.xz manaplus-773ef01f1490f0884836a9d08f75938eb8742c8e.zip |
Add parent window field to all widgets.
Diffstat (limited to 'src/gui/widgets/widget.h')
-rw-r--r-- | src/gui/widgets/widget.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/widgets/widget.h b/src/gui/widgets/widget.h index 8191754e5..f1db2b481 100644 --- a/src/gui/widgets/widget.h +++ b/src/gui/widgets/widget.h @@ -199,6 +199,9 @@ class Widget notfinal : public Widget2 Widget* getParent() const A_WARN_UNUSED { return mParent; } + Widget* getWindow() const A_WARN_UNUSED + { return mWindow; } + /** * Sets the width of the widget. * @@ -666,6 +669,9 @@ class Widget notfinal : public Widget2 virtual void setParent(Widget* parent) { mParent = parent; } + virtual void setWindow(Widget* window) + { mWindow = window; } + /** * Gets the font set for the widget. If no font has been set, * the global font will be returned. If no global font has been set, @@ -1193,6 +1199,8 @@ class Widget notfinal : public Widget2 */ Widget* mParent; + Widget* mWindow; + /** * Holds the font used by the widget. */ |