Mac module emits the winit events DroppedFile and HoveredFile.

This commit is contained in:
Rob Saunders 2017-07-27 10:51:00 +08:00
parent 4ef7c71c66
commit 5f00028f6b
2 changed files with 38 additions and 12 deletions

View file

@ -26,6 +26,9 @@ pub enum WindowEvent {
/// The window has been closed.
Closed,
/// A file is being hovered over the window.
HoveredFile(PathBuf),
/// A file has been dropped into the window.
DroppedFile(PathBuf),