diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-18 16:27:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-18 16:27:04 +0300 |
commit | 03c74387d37cefcc18e59db203d17d78cda40e8e (patch) | |
tree | 74e7291b97b67bb75984f5f5819944f058a9ace7 /src/gui/gui.h | |
parent | 3d7cb45edeb4f75bad321d54d84fe2d13b487db9 (diff) | |
download | plus-03c74387d37cefcc18e59db203d17d78cda40e8e.tar.gz plus-03c74387d37cefcc18e59db203d17d78cda40e8e.tar.bz2 plus-03c74387d37cefcc18e59db203d17d78cda40e8e.tar.xz plus-03c74387d37cefcc18e59db203d17d78cda40e8e.zip |
Move mousebutton into separate file.
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r-- | src/gui/gui.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h index 6027625cb..5a1677ff2 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -68,6 +68,7 @@ #include "gui/color.h" +#include "events/mousebutton.h" #include "events/mouseeventtype.h" #include "resources/cursor.h" @@ -328,7 +329,7 @@ class Gui final void distributeMouseEvent(Widget *const source, const MouseEventType::Type type, - const int button, + const MouseButton::Type button, const int x, const int y, const bool force = false, const bool toSourceOnly = false); @@ -467,7 +468,7 @@ class Gui final /** * Holds the last mouse button pressed. */ - unsigned int mLastMousePressButton; + MouseButton::Type mLastMousePressButton; /** * Holds the last mouse press time stamp. @@ -495,7 +496,7 @@ class Gui final * was initiated. Used to be able to release a drag * when the same button is released. */ - int mLastMouseDragButton; + MouseButton::Type mLastMouseDragButton; /** * Holds a stack with all the widgets with the mouse. |