summaryrefslogtreecommitdiff
path: root/Widgets/Widget.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-14 00:21:42 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-14 00:21:42 +0200
commit3ebea059961ec027ee0298e38201aa43f7e9451c (patch)
treea318a441304ac74e3bf0220d37da70d78d5e7e7f /Widgets/Widget.h
parente9e7f7a714575c570cc4ec988af4568eb9d946d2 (diff)
downloadserenity-3ebea059961ec027ee0298e38201aa43f7e9451c.zip
Add a simple MsgBox() :^)
Diffstat (limited to 'Widgets/Widget.h')
-rw-r--r--Widgets/Widget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Widgets/Widget.h b/Widgets/Widget.h
index e025dc3aed..c0e9b428f2 100644
--- a/Widgets/Widget.h
+++ b/Widgets/Widget.h
@@ -76,6 +76,9 @@ public:
Widget* parentWidget() { return static_cast<Widget*>(parent()); }
const Widget* parentWidget() const { return static_cast<const Widget*>(parent()); }
+ void setFillWithBackgroundColor(bool b) { m_fillWithBackgroundColor = b; }
+ bool fillWithBackgroundColor() const { return m_fillWithBackgroundColor; }
+
private:
Window* m_window { nullptr };
@@ -84,4 +87,5 @@ private:
Color m_foregroundColor;
bool m_hasPendingPaintEvent { false };
+ bool m_fillWithBackgroundColor { false };
};