summaryrefslogtreecommitdiffstats
path: root/native/src/window
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-10 01:28:45 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-10 01:28:45 +0100
commit7ab6ed7ef912011318e07533e40fc98f4a846511 (patch)
tree626692c9269231497f52e6acc2fcbd7f194b264d /native/src/window
parent0a8302450557877cb667b51fc84383aaf0a11b02 (diff)
downloadiced-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.rs12
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,
+ },
+}