(&self)
| 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![ |
nothing calls this directly
no test coverage detected