MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / view

Method view

examples/auto_backend.rs:68–92  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

66 }
67
68 fn view(&self) -> Element<'_, Message> {
69 let plot = column![
70 Space::new().height(Length::Fixed(self.y_offset)),
71 row![
72 Space::new().width(Length::Fixed(self.x_offset)),
73 container(self.widget.view().map(Message::Plot))
74 .width(Length::Fill)
75 .height(Length::Fill),
76 ]
77 .width(Length::Fill)
78 .height(Length::Fill),
79 ]
80 .width(Length::Fill)
81 .height(Length::Fill);
82
83 let overlay = container(self.controls_overlay())
84 .width(Length::Fill)
85 .height(Length::Fill)
86 .padding(12)
87 .align_x(alignment::Horizontal::Left)
88 .align_y(alignment::Vertical::Top)
89 .style(container::transparent);
90
91 stack![plot, overlay].into()
92 }
93
94 fn controls_overlay(&self) -> Element<'_, Message> {
95 let panel = column![

Callers

nothing calls this directly

Calls 1

controls_overlayMethod · 0.80

Tested by

no test coverage detected