Allow applications to control the window title

`iced_winit` will change the window title dynamically at runtime!
This commit is contained in:
Héctor Ramón Jiménez 2019-11-09 05:06:04 +01:00
parent e66d38403d
commit e953b1828d
5 changed files with 64 additions and 18 deletions

View file

@ -25,6 +25,10 @@ pub enum Message {
impl Application for Example {
type Message = Message;
fn title(&self) -> String {
String::from("Scroll - Iced")
}
fn update(&mut self, message: Message) {
match message {
Message::AddItem => {