DroppedFile event for Win32

This commit is contained in:
Denilson M. Amorim 2015-06-23 19:05:37 -03:00
parent 1aedc828c5
commit 826931e2c2
5 changed files with 35 additions and 2 deletions

View file

@ -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),