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

Method update

examples/auto_backend.rs:53–66  ·  view source on GitHub ↗
(&mut self, message: Message)

Source from the content-addressed store, hash-verified

51 }
52
53 fn update(&mut self, message: Message) {
54 match message {
55 Message::Plot(message) => update_plot(&mut self.widget, message),
56 Message::RenderStrategyDetected(strategy) => {
57 self.set_render_strategy(strategy);
58 }
59 Message::XOffsetChanged(offset) => {
60 self.x_offset = offset;
61 }
62 Message::YOffsetChanged(offset) => {
63 self.y_offset = offset;
64 }
65 }
66 }
67
68 fn view(&self) -> Element<'_, Message> {
69 let plot = column![

Callers 1

update_plotFunction · 0.45

Calls 2

update_plotFunction · 0.85
set_render_strategyMethod · 0.45

Tested by

no test coverage detected