Added event for cancelling a drag and drop.

This commit is contained in:
Rob Saunders 2017-07-27 10:56:34 +08:00
parent 5f00028f6b
commit 06e01e4cb3
2 changed files with 14 additions and 11 deletions

View file

@ -26,11 +26,14 @@ pub enum WindowEvent {
/// The window has been closed.
Closed,
/// A file has been dropped into the window.
DroppedFile(PathBuf),
/// A file is being hovered over the window.
HoveredFile(PathBuf),
/// A file has been dropped into the window.
DroppedFile(PathBuf),
/// A file was hovered, but has exited the window.
HoveredFileCancelled,
/// The window received a unicode character.
ReceivedCharacter(char),