summaryrefslogtreecommitdiffstats
path: root/native/src/window
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--native/src/window.rs4
-rw-r--r--native/src/window/event.rs12
2 files changed, 16 insertions, 0 deletions
diff --git a/native/src/window.rs b/native/src/window.rs
new file mode 100644
index 00000000..220bb3be
--- /dev/null
+++ b/native/src/window.rs
@@ -0,0 +1,4 @@
+//! Build window-based GUI applications.
+mod event;
+
+pub use event::Event;
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,
+ },
+}