Add window::Event::Resized to iced_native

This commit is contained in:
Héctor Ramón Jiménez 2020-01-10 01:28:45 +01:00
parent 0a83024505
commit 7ab6ed7ef9
4 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,12 @@
/// A window-related event.
#[derive(PartialEq, Clone, Copy, Debug)]
pub enum Event {
/// A window was resized
Resized {
/// The new width of the window (in units)
width: u32,
/// The new height of the window (in units)
height: u32,
},
}