summaryrefslogtreecommitdiff
path: root/src/gui/gui.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-23 03:33:47 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-23 03:33:47 +0300
commit48f2996ccc789d740edc4b425a3e00f378a9095a (patch)
tree8117023506896ffbe204eeb61b8cdafaa0463f8e /src/gui/gui.h
parent8040656ae1d1dea330754d4595b2737b7eb7959a (diff)
downloadmanaverse-48f2996ccc789d740edc4b425a3e00f378a9095a.tar.gz
manaverse-48f2996ccc789d740edc4b425a3e00f378a9095a.tar.bz2
manaverse-48f2996ccc789d740edc4b425a3e00f378a9095a.tar.xz
manaverse-48f2996ccc789d740edc4b425a3e00f378a9095a.zip
Restore mouse cursor if window set visible and have mouse over.
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r--src/gui/gui.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h
index ee1cb9092..4766a4bf4 100644
--- a/src/gui/gui.h
+++ b/src/gui/gui.h
@@ -28,8 +28,10 @@
class Graphics;
class GuiConfigListener;
class ImageSet;
+class MouseEvent;
class SDLFont;
class SDLInput;
+class Window;
/**
* \defgroup GUI Core GUI related classes (widgets)
@@ -129,6 +131,10 @@ class Gui final : public gcn::Gui
void resetClickCount();
+ MouseEvent *createMouseEvent(Window *widget);
+
+ void getAbsolutePosition(gcn::Widget *widget, int &x, int &y);
+
/**
* Cursors are in graphic order from left to right.
* CURSOR_POINTER should be left untouched.