summaryrefslogtreecommitdiff
path: root/src/gui/widgets/popup.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-03-01 07:46:59 -0700
committerJared Adams <jaxad0127@gmail.com>2010-03-01 13:21:52 -0700
commit452b02cb1b6e1675323d89e5f2c4946b2868a584 (patch)
tree3ea0dc67ea31d0c373f87c8dd2dc1037296845fd /src/gui/widgets/popup.h
parent33b5868a46feb75bc939495c0a3650379e1e56e1 (diff)
downloadmana-452b02cb1b6e1675323d89e5f2c4946b2868a584.tar.gz
mana-452b02cb1b6e1675323d89e5f2c4946b2868a584.tar.bz2
mana-452b02cb1b6e1675323d89e5f2c4946b2868a584.tar.xz
mana-452b02cb1b6e1675323d89e5f2c4946b2868a584.zip
Hide BeingPopup when mouseover Windows
Reviewed-by: Thorbjørn Lindeijer Reviewed-by: Chuck Miller
Diffstat (limited to 'src/gui/widgets/popup.h')
-rw-r--r--src/gui/widgets/popup.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/widgets/popup.h b/src/gui/widgets/popup.h
index 207a9857..5c9164f6 100644
--- a/src/gui/widgets/popup.h
+++ b/src/gui/widgets/popup.h
@@ -28,6 +28,8 @@
#include "gui/widgets/container.h"
+#include <guichan/mouselistener.hpp>
+
class Skin;
class WindowContainer;
@@ -43,7 +45,7 @@ class WindowContainer;
*
* \ingroup GUI
*/
-class Popup : public Container
+class Popup : public Container, public gcn::MouseListener
{
public:
/**
@@ -94,6 +96,8 @@ class Popup : public Container
*/
void setLocationRelativeTo(gcn::Widget *widget);
+ void mouseMoved(gcn::MouseEvent &event);
+
/**
* Sets the minimum width of the popup.
*/