summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2021-03-31 10:20:22 +0200
committerLibravatar GitHub <noreply@github.com>2021-03-31 10:20:22 +0200
commitb9ec44446ed4d99b9b17aceafdcb353dd1595877 (patch)
tree86b3e4d9a7257a6d5b0d82988111f2a3a5ca7117 /native
parentbbb4e4678f14b4b187f9537a32063440e727e919 (diff)
parent8f952452ce3d61203856bcebae7016372556be31 (diff)
downloadiced-b9ec44446ed4d99b9b17aceafdcb353dd1595877.tar.gz
iced-b9ec44446ed4d99b9b17aceafdcb353dd1595877.tar.bz2
iced-b9ec44446ed4d99b9b17aceafdcb353dd1595877.zip
Merge pull request #804 from hecrj/feature/graceful-exit
Graceful exiting for `Application`
Diffstat (limited to 'native')
-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,