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)
| 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> { |
no outgoing calls
no test coverage detected