summaryrefslogtreecommitdiff
path: root/src/gui/widgets/widget.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-02 16:17:04 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-02 16:17:04 +0300
commitef0f7af63a5e1bd73fb34c601f996e7aadf848c0 (patch)
tree321a3e7104e24a9e11da401eba2f2ed7066142ab /src/gui/widgets/widget.h
parent39a3fd884d6d585825d9f80a578c6f466a856ec3 (diff)
downloadplus-ef0f7af63a5e1bd73fb34c601f996e7aadf848c0.tar.gz
plus-ef0f7af63a5e1bd73fb34c601f996e7aadf848c0.tar.bz2
plus-ef0f7af63a5e1bd73fb34c601f996e7aadf848c0.tar.xz
plus-ef0f7af63a5e1bd73fb34c601f996e7aadf848c0.zip
Improve visible check in widgets draw code.
Diffstat (limited to 'src/gui/widgets/widget.h')
-rw-r--r--src/gui/widgets/widget.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/widget.h b/src/gui/widgets/widget.h
index de5a79502..236c7b6ee 100644
--- a/src/gui/widgets/widget.h
+++ b/src/gui/widgets/widget.h
@@ -399,6 +399,9 @@ class Widget : public Widget2
bool isVisible() const A_WARN_UNUSED
{ return mVisible && (!mParent || mParent->isVisible()); }
+ bool isVisibleLocal() const A_WARN_UNUSED
+ { return mVisible; }
+
/**
* Sets the base color of the widget.
*