| 86 | /// Drag interaction event in data/world coordinates. |
| 87 | #[derive(Debug, Clone, Copy)] |
| 88 | pub enum DragEvent { |
| 89 | /// A drag gesture started inside the plot. |
| 90 | Start { |
| 91 | /// Mouse button that initiated the drag stream. |
| 92 | button: iced::mouse::Button, |
| 93 | /// Current cursor world/data coordinate. |
| 94 | world: [f64; 2], |
| 95 | }, |
| 96 | /// Cursor moved while drag is active. |
| 97 | Update { |
| 98 | /// Mouse button that initiated the drag stream. |
| 99 | button: iced::mouse::Button, |
| 100 | /// Current cursor world/data coordinate. |
| 101 | world: [f64; 2], |
| 102 | }, |
| 103 | /// Active drag gesture ended. |
| 104 | End { |
| 105 | /// Mouse button that initiated the drag stream. |
| 106 | button: iced::mouse::Button, |
| 107 | /// Current cursor world/data coordinate. |
| 108 | world: [f64; 2], |
| 109 | }, |
| 110 | } |
| 111 | |
| 112 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
| 113 | /// Identifier for a point in a series. |
nothing calls this directly
no outgoing calls
no test coverage detected