summaryrefslogtreecommitdiffstats
path: root/examples/multi_window
diff options
context:
space:
mode:
authorLibravatar bungoboingo <shankern@protonmail.com>2023-01-09 10:19:12 -0800
committerLibravatar bungoboingo <shankern@protonmail.com>2023-01-09 11:28:07 -0800
commit3e5d34f25fa07fa99f57b686bbde87d73b8ed548 (patch)
treed984f9f42c42413e0d264b7f17d3f50ef73190a2 /examples/multi_window
parentec41918ec40bddaba81235372f1566da59fd09f2 (diff)
downloadiced-3e5d34f25fa07fa99f57b686bbde87d73b8ed548.tar.gz
iced-3e5d34f25fa07fa99f57b686bbde87d73b8ed548.tar.bz2
iced-3e5d34f25fa07fa99f57b686bbde87d73b8ed548.zip
Formatting
Diffstat (limited to 'examples/multi_window')
-rw-r--r--examples/multi_window/src/main.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/multi_window/src/main.rs b/examples/multi_window/src/main.rs
index b9f0514c..18536bdf 100644
--- a/examples/multi_window/src/main.rs
+++ b/examples/multi_window/src/main.rs
@@ -57,9 +57,9 @@ enum WindowMessage {
}
impl Application for Example {
+ type Executor = executor::Default;
type Message = Message;
type Theme = Theme;
- type Executor = executor::Default;
type Flags = ();
fn new(_flags: ()) -> (Self, Command<Message>) {
@@ -251,10 +251,6 @@ impl Application for Example {
})
}
- fn close_requested(&self, window: window::Id) -> Self::Message {
- Message::Window(window, WindowMessage::CloseWindow)
- }
-
fn view(&self, window_id: window::Id) -> Element<Message> {
if let Some(window) = self.windows.get(&window_id) {
let focus = window.focus;
@@ -342,6 +338,10 @@ impl Application for Example {
.center_y()
.into()
}
+
+ fn close_requested(&self, window: window::Id) -> Self::Message {
+ Message::Window(window, WindowMessage::CloseWindow)
+ }
}
const PANE_ID_COLOR_UNFOCUSED: Color = Color::from_rgb(