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

Method update

examples/plot_overlays.rs:50–63  ·  view source on GitHub ↗
(&mut self, message: Message)

Source from the content-addressed store, hash-verified

48 }
49
50 fn update(&mut self, message: Message) {
51 match message {
52 Message::Plot(message) => self.widget.update(message),
53 Message::Shape(ShapeMessage::ToggleAnnotation) => {
54 self.annotation_expanded = !self.annotation_expanded;
55 }
56 Message::Shape(ShapeMessage::CycleVertical) => {
57 self.shape_vertical = next_vertical(self.shape_vertical);
58 }
59 Message::Shape(ShapeMessage::CycleHorizontal) => {
60 self.shape_horizontal = next_horizontal(self.shape_horizontal);
61 }
62 }
63 }
64
65 fn view(&self) -> Element<'_, Message> {
66 self.widget

Callers

nothing calls this directly

Calls 2

next_verticalFunction · 0.85
next_horizontalFunction · 0.85

Tested by

no test coverage detected