summaryrefslogtreecommitdiffstats
path: root/native/src/window/event.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-01-10 05:13:04 +0100
committerLibravatar GitHub <noreply@github.com>2020-01-10 05:13:04 +0100
commit992ca76afc40bd3f57fbd2bc6e673e1fb334b0af (patch)
tree4e2598f2cf71b80f2e454391e65d2409b671778a /native/src/window/event.rs
parent0a8302450557877cb667b51fc84383aaf0a11b02 (diff)
parentd15d1156bd0c7fa111d1c59bea11fd58b9cc63b1 (diff)
downloadiced-992ca76afc40bd3f57fbd2bc6e673e1fb334b0af.tar.gz
iced-992ca76afc40bd3f57fbd2bc6e673e1fb334b0af.tar.bz2
iced-992ca76afc40bd3f57fbd2bc6e673e1fb334b0af.zip
Merge pull request #149 from hecrj/feature/window-resized-event
Window resized event
Diffstat (limited to 'native/src/window/event.rs')
-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,
+ },
+}