diff options
Diffstat (limited to 'src/gui/widgets/widget2.h')
-rw-r--r-- | src/gui/widgets/widget2.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/widgets/widget2.h b/src/gui/widgets/widget2.h index c8ee90406..2fdb8b12b 100644 --- a/src/gui/widgets/widget2.h +++ b/src/gui/widgets/widget2.h @@ -23,6 +23,8 @@ #include "gui/theme.h" +class Widget; + class Widget2 notfinal { public: @@ -76,15 +78,27 @@ class Widget2 notfinal mForegroundColor2 = color; } + Widget* getWindow() const A_WARN_UNUSED + { + return mWindow; + } + + virtual void setWindow(Widget *const window) + { + mWindow = window; + } + protected: explicit Widget2(const Widget2 *const widget) : mPaletteOffset(widget ? widget->mPaletteOffset : 0), + mWindow(widget ? widget->getWindow() : nullptr), mForegroundColor2() { checkPalette(); } int mPaletteOffset; + Widget *mWindow; Color mForegroundColor2; }; |