summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/Event.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibGUI/Event.h')
-rw-r--r--Libraries/LibGUI/Event.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/Libraries/LibGUI/Event.h b/Libraries/LibGUI/Event.h
index 7b6b472176..c518a694a1 100644
--- a/Libraries/LibGUI/Event.h
+++ b/Libraries/LibGUI/Event.h
@@ -60,6 +60,7 @@ public:
WindowCloseRequest,
ContextMenu,
EnabledChange,
+ DragMove,
Drop,
__Begin_WM_Events,
@@ -306,6 +307,23 @@ private:
int m_wheel_delta { 0 };
};
+class DragEvent final : public Event {
+public:
+ DragEvent(Type type, const Gfx::Point& position, const String& data_type)
+ : Event(type)
+ , m_position(position)
+ , m_data_type(data_type)
+ {
+ }
+
+ const Gfx::Point& position() const { return m_position; }
+ const String& data_type() const { return m_data_type; }
+
+private:
+ Gfx::Point m_position;
+ String m_data_type;
+};
+
class DropEvent final : public Event {
public:
DropEvent(const Gfx::Point& position, const String& text, const String& data_type, const String& data)