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

Class PickingState

src/picking.rs:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18/// Tracks CPU/GPU picking state for a plot widget.
19#[derive(Debug, Clone, Default)]
20pub(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)]
36pub(crate) enum HoverRequest {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected