summaryrefslogtreecommitdiffstats
path: root/examples/scroll.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-09 05:06:04 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-09 05:10:10 +0100
commite953b1828d5b8dbdd145829f47c4817137e37f0d (patch)
tree9c775128e047e4a141f2aefb691e7e31a801ba93 /examples/scroll.rs
parente66d38403d09b265f111d9e1b59af6143464d912 (diff)
downloadiced-e953b1828d5b8dbdd145829f47c4817137e37f0d.tar.gz
iced-e953b1828d5b8dbdd145829f47c4817137e37f0d.tar.bz2
iced-e953b1828d5b8dbdd145829f47c4817137e37f0d.zip
Allow applications to control the window title
`iced_winit` will change the window title dynamically at runtime!
Diffstat (limited to 'examples/scroll.rs')
-rw-r--r--examples/scroll.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/scroll.rs b/examples/scroll.rs
index 608923fe..5a725f0c 100644
--- a/examples/scroll.rs
+++ b/examples/scroll.rs
@@ -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 => {