summaryrefslogtreecommitdiff
path: root/src/enums/events
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-30 01:01:04 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-30 01:01:04 +0300
commit2e07a7af24cf8a2928ab6a3431ab5b01b29969bb (patch)
tree8e3ab15e6ce2f6e085f5c7be0d4c9a43ef85f44a /src/enums/events
parentf29616d8d1309ee135afe2b2e7baf1d91d677a95 (diff)
downloadmv-2e07a7af24cf8a2928ab6a3431ab5b01b29969bb.tar.gz
mv-2e07a7af24cf8a2928ab6a3431ab5b01b29969bb.tar.bz2
mv-2e07a7af24cf8a2928ab6a3431ab5b01b29969bb.tar.xz
mv-2e07a7af24cf8a2928ab6a3431ab5b01b29969bb.zip
Convert MouseEventType enum into strong typed enum.
Diffstat (limited to 'src/enums/events')
-rw-r--r--src/enums/events/mouseeventtype.h33
1 files changed, 15 insertions, 18 deletions
diff --git a/src/enums/events/mouseeventtype.h b/src/enums/events/mouseeventtype.h
index 7fa568960..f430953fa 100644
--- a/src/enums/events/mouseeventtype.h
+++ b/src/enums/events/mouseeventtype.h
@@ -64,24 +64,21 @@
#ifndef ENUMS_EVENTS_MOUSEEVENTTYPE_H
#define ENUMS_EVENTS_MOUSEEVENTTYPE_H
-namespace MouseEventType
+#include "enums/simpletypes/enumdefines.h"
+
+enumStart(MouseEventType)
{
- /**
- * Mouse event types.
- */
- enum Type
- {
- MOVED = 0,
- PRESSED,
- RELEASED,
- WHEEL_MOVED_DOWN,
- WHEEL_MOVED_UP,
- CLICKED,
- ENTERED,
- EXITED,
- DRAGGED,
- RELEASED2 = 100
- };
-} // namespace MouseEventType
+ MOVED = 0,
+ PRESSED,
+ RELEASED,
+ WHEEL_MOVED_DOWN,
+ WHEEL_MOVED_UP,
+ CLICKED,
+ ENTERED,
+ EXITED,
+ DRAGGED,
+ RELEASED2 = 100
+}
+enumEnd(MouseEventType);
#endif // ENUMS_EVENTS_MOUSEEVENTTYPE_H