diff options
author | Denilson M. Amorim <dma_2012@hotmail.com> | 2015-06-23 19:05:37 -0300 |
---|---|---|
committer | Denilson M. Amorim <dma_2012@hotmail.com> | 2015-06-23 19:05:37 -0300 |
commit | 826931e2c2e61ec7815d25ec33618bfe4aacff0d (patch) | |
tree | d9158fe0734426e0c1c4d2072628ee7bff5bbe0b /src/events.rs | |
parent | 1aedc828c55e94d6f301a100f958ffa1106a0a25 (diff) | |
download | glutin-826931e2c2e61ec7815d25ec33618bfe4aacff0d.tar.gz glutin-826931e2c2e61ec7815d25ec33618bfe4aacff0d.zip |
DroppedFile event for Win32
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 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), |