diff options
author | 2023-03-13 14:16:45 -0700 | |
---|---|---|
committer | 2023-03-13 14:16:45 -0700 | |
commit | 8ba18430800142965549077373e2a45d0a3429a1 (patch) | |
tree | 0ba36d187e3c66e88476779dc40ba3cf0b28bff0 /src/multi_window | |
parent | fa068b904a904c86195ebfaa4e953466426a27aa (diff) | |
download | iced-8ba18430800142965549077373e2a45d0a3429a1.tar.gz iced-8ba18430800142965549077373e2a45d0a3429a1.tar.bz2 iced-8ba18430800142965549077373e2a45d0a3429a1.zip |
Code cleanup, clearer comments + removed some unnecessary dupe;
Removed `Frames` struct return for `window::frames()` since we are just redrawing every window anyways;
Interface dropping;
Diffstat (limited to 'src/multi_window')
-rw-r--r-- | src/multi_window/application.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/multi_window/application.rs b/src/multi_window/application.rs index d0b515ab..1fb4bcd4 100644 --- a/src/multi_window/application.rs +++ b/src/multi_window/application.rs @@ -139,7 +139,7 @@ pub trait Application: Sized { window: window::Id, ) -> Element<'_, Self::Message, crate::Renderer<Self::Theme>>; - /// Returns the scale factor of the [`Application`]. + /// Returns the scale factor of the `window` of the [`Application`]. /// /// It can be used to dynamically control the size of the UI at runtime /// (i.e. zooming). @@ -160,7 +160,8 @@ pub trait Application: Sized { false } - /// Requests that the [`window`] be closed. + /// Returns the `Self::Message` that should be processed when a `window` is requested to + /// be closed. fn close_requested(&self, window: window::Id) -> Self::Message; /// Runs the [`Application`]. |