| 18 | /// Tracks CPU/GPU picking state for a plot widget. |
| 19 | #[derive(Debug, Clone, Default)] |
| 20 | pub(crate) struct PickingState { |
| 21 | /// Last hover hit, if any. |
| 22 | pub(crate) last_hover_cache: Option<PointId>, |
| 23 | |
| 24 | /// When set, the matching GPU result is interpreted as a *pick* (click) |
| 25 | /// instead of a hover. |
| 26 | pending_gpu_pick_seq: Option<u64>, |
| 27 | |
| 28 | /// Last submitted GPU request sequence number |
| 29 | pick_seq: u64, |
| 30 | |
| 31 | /// Last processed GPU result sequence number |
| 32 | pick_result_seq: u64, |
| 33 | } |
| 34 | |
| 35 | #[derive(Debug, Clone, Copy)] |
| 36 | pub(crate) enum HoverRequest { |
nothing calls this directly
no outgoing calls
no test coverage detected