diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-13 22:54:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-13 22:54:28 +0300 |
commit | bcdf34645ff3067d3b4110120b6191af2b0b2e99 (patch) | |
tree | 428493a138f0fdaebd4c915153f0dcdcbaedf76d /src/gui/widgets/widget.h | |
parent | a93d1e06f928f6e4e1c7f3c58ddb7ae3676c1c63 (diff) | |
parent | b64a1f46b930516927b1290c1d6771b491b84958 (diff) | |
download | plus-bcdf34645ff3067d3b4110120b6191af2b0b2e99.tar.gz plus-bcdf34645ff3067d3b4110120b6191af2b0b2e99.tar.bz2 plus-bcdf34645ff3067d3b4110120b6191af2b0b2e99.tar.xz plus-bcdf34645ff3067d3b4110120b6191af2b0b2e99.zip |
Merge branch 'master' into stable
Diffstat (limited to 'src/gui/widgets/widget.h')
-rw-r--r-- | src/gui/widgets/widget.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/gui/widgets/widget.h b/src/gui/widgets/widget.h index de5a79502..f3e2fdb66 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. * @@ -1006,9 +1009,22 @@ class Widget : public Widget2 */ virtual void showPart(const Rect &rectangle); - bool isAllowLogic() const + bool isAllowLogic() const A_WARN_UNUSED { return mAllowLogic; } + void setMouseConsume(const bool b) + { mMouseConsume = b; } + + bool isMouseConsume() const A_WARN_UNUSED + { return mMouseConsume; } + + void setRedraw(const bool b) + { mRedraw = b; } + + static void distributeWindowResizeEvent(); + + void windowResized(); + protected: /** * Distributes an action event to all action listeners @@ -1219,6 +1235,10 @@ class Widget : public Widget2 bool mAllowLogic; + bool mMouseConsume; + + bool mRedraw; + /** * Holds the global font used by the widget. */ |