summaryrefslogtreecommitdiffstats
path: root/native/src/window
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-03-30 21:33:57 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-03-30 21:33:57 +0200
commit00de9d0c9ba20b313ffb459ed291ea2b85e53d32 (patch)
tree1b4bdefe2bb2c2877660c239fc61bb4e6251a2ce /native/src/window
parentbbb4e4678f14b4b187f9537a32063440e727e919 (diff)
downloadiced-00de9d0c9ba20b313ffb459ed291ea2b85e53d32.tar.gz
iced-00de9d0c9ba20b313ffb459ed291ea2b85e53d32.tar.bz2
iced-00de9d0c9ba20b313ffb459ed291ea2b85e53d32.zip
Add `CloseRequested` variant to `window::Event`
Diffstat (limited to 'native/src/window')
-rw-r--r--native/src/window/event.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/native/src/window/event.rs b/native/src/window/event.rs
index fc746781..3aa1ab0b 100644
--- a/native/src/window/event.rs
+++ b/native/src/window/event.rs
@@ -12,6 +12,12 @@ pub enum Event {
height: u32,
},
+ /// The user has requested for the window to close.
+ ///
+ /// Usually, you will want to terminate the execution whenever this event
+ /// occurs.
+ CloseRequested,
+
/// A window was focused.
Focused,