summaryrefslogtreecommitdiffstats
path: root/native/src/window
diff options
context:
space:
mode:
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,
+ },
+}