diff options
author | 2020-01-10 01:28:45 +0100 | |
---|---|---|
committer | 2020-01-10 01:28:45 +0100 | |
commit | 7ab6ed7ef912011318e07533e40fc98f4a846511 (patch) | |
tree | 626692c9269231497f52e6acc2fcbd7f194b264d /native/src/window | |
parent | 0a8302450557877cb667b51fc84383aaf0a11b02 (diff) | |
download | iced-7ab6ed7ef912011318e07533e40fc98f4a846511.tar.gz iced-7ab6ed7ef912011318e07533e40fc98f4a846511.tar.bz2 iced-7ab6ed7ef912011318e07533e40fc98f4a846511.zip |
Add `window::Event::Resized` to `iced_native`
Diffstat (limited to 'native/src/window')
-rw-r--r-- | native/src/window/event.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/native/src/window/event.rs b/native/src/window/event.rs new file mode 100644 index 00000000..89ec0a0c --- /dev/null +++ b/native/src/window/event.rs @@ -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, + }, +} |