summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/multi_window/application.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/multi_window/application.rs b/src/multi_window/application.rs
index e849bf2b..df45ca1e 100644
--- a/src/multi_window/application.rs
+++ b/src/multi_window/application.rs
@@ -113,6 +113,9 @@ pub trait Application: Sized {
false
}
+ /// TODO(derezzedex)
+ fn close_requested(&self, window: window::Id) -> Self::Message;
+
/// Runs the [`Application`].
///
/// On native platforms, this method will take control of the current thread
@@ -207,4 +210,8 @@ where
fn should_exit(&self) -> bool {
self.0.should_exit()
}
+
+ fn close_requested(&self, window: window::Id) -> Self::Message {
+ self.0.close_requested(window)
+ }
}