diff options
Diffstat (limited to 'LibGUI/GEvent.h')
-rw-r--r-- | LibGUI/GEvent.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/LibGUI/GEvent.h b/LibGUI/GEvent.h index cc0cd8aee2..ecbe51ead3 100644 --- a/LibGUI/GEvent.h +++ b/LibGUI/GEvent.h @@ -29,6 +29,7 @@ public: FocusIn, FocusOut, WindowCloseRequest, + ContextMenu, WM_WindowRemoved, WM_WindowStateChanged, WM_WindowIconChanged, @@ -141,6 +142,23 @@ private: Size m_size; }; +class GContextMenuEvent final : public GEvent { +public: + explicit GContextMenuEvent(const Point& position, const Point& screen_position) + : GEvent(GEvent::ContextMenu) + , m_position(position) + , m_screen_position(screen_position) + { + } + + const Point& position() const { return m_position; } + const Point& screen_position() const { return m_screen_position; } + +private: + Point m_position; + Point m_screen_position; +}; + class GShowEvent final : public GEvent { public: GShowEvent() |