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

Method update

src/plot_overlay.rs:215–236  ·  view source on GitHub ↗
(
        &mut self,
        tree: &mut Tree,
        event: &iced::Event,
        layout: Layout<'_>,
        cursor: mouse::Cursor,
        renderer: &iced::Renderer,
        clipboard: &mut dyn Cli

Source from the content-addressed store, hash-verified

213 }
214
215 fn update(
216 &mut self,
217 tree: &mut Tree,
218 event: &iced::Event,
219 layout: Layout<'_>,
220 cursor: mouse::Cursor,
221 renderer: &iced::Renderer,
222 clipboard: &mut dyn Clipboard,
223 shell: &mut Shell<'_, Message>,
224 viewport: &Rectangle,
225 ) {
226 let cursor = if cursor.is_over(layout.bounds()) {
227 cursor
228 } else {
229 mouse::Cursor::Unavailable
230 };
231 if let Some(layout) = layout.children().next() {
232 self.content.as_widget_mut().update(
233 tree, event, layout, cursor, renderer, clipboard, shell, viewport,
234 );
235 }
236 }
237
238 fn mouse_interaction(
239 &self,

Callers

nothing calls this directly

Calls 1

childrenMethod · 0.80

Tested by

no test coverage detected