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

Method get_hover_pick_event

src/message.rs:24–30  ·  view source on GitHub ↗

Get the hover or pick event from the render update. If the plot widget is not in hover or pick mode, this will return None.

(&self)

Source from the content-addressed store, hash-verified

22 /// Get the hover or pick event from the render update.
23 /// If the plot widget is not in hover or pick mode, this will return None.
24 pub fn get_hover_pick_event(&self) -> Option<HoverPickEvent> {
25 if let PlotUiMessage::RenderUpdate(update) = self {
26 update.hover_pick
27 } else {
28 None
29 }
30 }
31
32 /// Get the drag event from the render update.
33 pub fn get_drag_event(&self) -> Option<DragEvent> {

Callers 3

update_plotFunction · 0.80
updateMethod · 0.80
updateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected