summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/multi_window/application.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/multi_window/application.rs b/src/multi_window/application.rs
index 7d559397..dc1ac5b0 100644
--- a/src/multi_window/application.rs
+++ b/src/multi_window/application.rs
@@ -44,7 +44,7 @@ pub trait Application: Sized {
///
/// This title can be dynamic! The runtime will automatically update the
/// title of your application when necessary.
- fn title(&self) -> String;
+ fn title(&self, window: window::Id) -> String;
/// Handles a __message__ and updates the state of the [`Application`].
///
@@ -110,7 +110,7 @@ pub trait Application: Sized {
false
}
- /// TODO(derezzedex)
+ /// Requests that the [`window`] be closed.
fn close_requested(&self, window: window::Id) -> Self::Message;
/// Runs the [`Application`].
@@ -163,8 +163,8 @@ where
(Instance(app), command)
}
- fn title(&self) -> String {
- self.0.title()
+ fn title(&self, window: window::Id) -> String {
+ self.0.title(window)
}
fn update(&mut self, message: Self::Message) -> Command<Self::Message> {