summaryrefslogtreecommitdiff
path: root/plugingui/guievent.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-05-09 20:52:43 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2019-05-09 20:52:47 +0200
commit15faa626f7df7a3024dda5d11001347ed4573568 (patch)
treeaad5c44d8906caef72e76f767b6895c0a4682a46 /plugingui/guievent.h
parent751f01eea8c40f70d412e691e6677d3daae54c7a (diff)
Add tooltip buttons to frames.
Diffstat (limited to 'plugingui/guievent.h')
-rw-r--r--plugingui/guievent.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/plugingui/guievent.h b/plugingui/guievent.h
index 11a7b9b..fe51826 100644
--- a/plugingui/guievent.h
+++ b/plugingui/guievent.h
@@ -42,7 +42,9 @@ enum class EventType
key,
close,
resize,
- move
+ move,
+ mouseEnter,
+ mouseLeave,
};
class Event
@@ -172,6 +174,26 @@ public:
int y;
};
+class MouseEnterEvent
+ : public Event
+{
+public:
+ EventType type() { return EventType::mouseEnter; }
+
+ int x;
+ int y;
+};
+
+class MouseLeaveEvent
+ : public Event
+{
+public:
+ EventType type() { return EventType::mouseLeave; }
+
+ int x;
+ int y;
+};
+
using EventQueue = std::list<std::shared_ptr<Event>>;
struct Rect