diff options
Diffstat (limited to 'src/events.rs')
-rw-r--r-- | src/events.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/events.rs b/src/events.rs index cff58e9..2fcdc61 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), |