diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-09 18:17:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-09 18:17:50 +0300 |
commit | 4aeceabb5d4f00e2555234951a2f5db24b008265 (patch) | |
tree | 16e970611e7cc05352f18a9385b9e26c72d498d8 /src/gui/widgets/popup.h | |
parent | dd4d44a07d3a63ced0eec51c30b75887792c4a36 (diff) | |
download | manaplus-4aeceabb5d4f00e2555234951a2f5db24b008265.tar.gz manaplus-4aeceabb5d4f00e2555234951a2f5db24b008265.tar.bz2 manaplus-4aeceabb5d4f00e2555234951a2f5db24b008265.tar.xz manaplus-4aeceabb5d4f00e2555234951a2f5db24b008265.zip |
Improve perfomance in windows and popups visibility checks.
Diffstat (limited to 'src/gui/widgets/popup.h')
-rw-r--r-- | src/gui/widgets/popup.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/popup.h b/src/gui/widgets/popup.h index 23bce3d5f..57772f642 100644 --- a/src/gui/widgets/popup.h +++ b/src/gui/widgets/popup.h @@ -168,6 +168,9 @@ class Popup : public Container, public gcn::MouseListener, void widgetMoved(const gcn::Event &event) override; + bool isPopupVisible() const + { return mVisible; } + protected: int mPadding; /**< Holds the padding of the popup. */ Skin *mSkin; /**< Skin in use by this popup */ |