summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Richard <richardsoncusto@gmail.com>2022-07-21 09:52:32 -0300
committerLibravatar bungoboingo <shankern@protonmail.com>2023-01-09 11:27:04 -0800
commit2fe58e12619186eb3755491db2bdaf02de297afb (patch)
treef02edb4a7700d66fe6bf8ea2d0d96a59a77ca951 /src
parent01bad4f89654d65b0d6a65a8df99c387cbadf7fe (diff)
downloadiced-2fe58e12619186eb3755491db2bdaf02de297afb.tar.gz
iced-2fe58e12619186eb3755491db2bdaf02de297afb.tar.bz2
iced-2fe58e12619186eb3755491db2bdaf02de297afb.zip
add `window::Id` to `view`
Diffstat (limited to '')
-rw-r--r--src/multi_window/application.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/multi_window/application.rs b/src/multi_window/application.rs
index 6b3f4676..e849bf2b 100644
--- a/src/multi_window/application.rs
+++ b/src/multi_window/application.rs
@@ -88,7 +88,10 @@ pub trait Application: Sized {
/// Returns the widgets to display in the [`Application`].
///
/// These widgets can produce __messages__ based on user interaction.
- fn view(&self) -> Element<'_, Self::Message, crate::Renderer<Self::Theme>>;
+ fn view(
+ &self,
+ window: window::Id,
+ ) -> Element<'_, Self::Message, crate::Renderer<Self::Theme>>;
/// Returns the scale factor of the [`Application`].
///
@@ -178,8 +181,11 @@ where
self.0.update(message)
}
- fn view(&self) -> Element<'_, Self::Message, Self::Renderer> {
- self.0.view()
+ fn view(
+ &self,
+ window: window::Id,
+ ) -> Element<'_, Self::Message, Self::Renderer> {
+ self.0.view(window)
}
fn theme(&self) -> A::Theme {