summaryrefslogtreecommitdiffstats
path: root/src/multi_window
diff options
context:
space:
mode:
Diffstat (limited to 'src/multi_window')
-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 {