From 15faa626f7df7a3024dda5d11001347ed4573568 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 9 May 2019 20:52:43 +0200 Subject: Add tooltip buttons to frames. --- plugingui/guievent.h | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'plugingui/guievent.h') 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>; struct Rect -- cgit v1.2.3