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

Method force_cpu_picking

src/plot_renderer/mod.rs:39–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37 }
38 }
39 pub(crate) fn force_cpu_picking(self) -> bool {
40 #[cfg(feature = "canvas")]
41 {
42 matches!(self, Self::Canvas)
43 }
44 #[cfg(not(feature = "canvas"))]
45 {
46 let _ = self;
47 false
48 }
49 }
50}
51
52const SELECTION_FILL_RGBA: [f32; 4] = [0.2, 0.6, 1.0, 0.2];

Callers 2

pick_hitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected