diff options
author | 2022-07-27 15:37:48 -0300 | |
---|---|---|
committer | 2023-01-09 11:27:04 -0800 | |
commit | dc86bd03733969033df7389c3d21e78ecc6291bb (patch) | |
tree | 7a37a4a9a78ba6c794dfb7915e1f7e7b81212449 /src | |
parent | 35331d0a41a53b8ff5c642b8274c7377ae6c6182 (diff) | |
download | iced-dc86bd03733969033df7389c3d21e78ecc6291bb.tar.gz iced-dc86bd03733969033df7389c3d21e78ecc6291bb.tar.bz2 iced-dc86bd03733969033df7389c3d21e78ecc6291bb.zip |
Introduce `close_requested` for `multi-window`
Diffstat (limited to '')
-rw-r--r-- | src/multi_window/application.rs | 7 |
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) + } } |