From e953b1828d5b8dbdd145829f47c4817137e37f0d Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 9 Nov 2019 05:06:04 +0100 Subject: Allow applications to control the window title `iced_winit` will change the window title dynamically at runtime! --- examples/todos.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/todos.rs') diff --git a/examples/todos.rs b/examples/todos.rs index 2ebbcc7c..5257fc12 100644 --- a/examples/todos.rs +++ b/examples/todos.rs @@ -25,6 +25,10 @@ pub enum Message { impl Application for Todos { type Message = Message; + fn title(&self) -> String { + String::from("Todos - Iced") + } + fn update(&mut self, message: Message) { match message { Message::InputChanged(value) => { -- cgit