Add CloseRequested variant to window::Event

This commit is contained in:
Héctor Ramón Jiménez 2021-03-30 21:33:57 +02:00
parent bbb4e4678f
commit 00de9d0c9b
2 changed files with 9 additions and 0 deletions

View file

@ -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,