diff options
Diffstat (limited to 'plugingui/guievent.h')
-rw-r--r-- | plugingui/guievent.h | 24 |
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 |