aboutsummaryrefslogtreecommitdiffstats
path: root/src/events.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/events.rs')
-rw-r--r--src/events.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/events.rs b/src/events.rs
index c175810..ef2c61d 100644
--- a/src/events.rs
+++ b/src/events.rs
@@ -1,4 +1,6 @@
-#[derive(Clone, Debug, Copy)]
+use std::path::PathBuf;
+
+#[derive(Clone, Debug)]
pub enum Event {
/// The size of the window has changed.
Resized(u32, u32),
@@ -9,6 +11,9 @@ pub enum Event {
/// The window has been closed.
Closed,
+ /// A file has been dropped into the window.
+ DroppedFile(PathBuf),
+
/// The window received a unicode character.
ReceivedCharacter(char),