Merge pull request #511 from thelink2012/drop-win32

[0.3] DroppedFile event for Win32
This commit is contained in:
tomaka 2015-07-09 11:06:38 +02:00
commit bb96e8a58a
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),