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

Method pick_hit

src/plot_widget.rs:1837–1861  ·  view source on GitHub ↗
(&self, state: &mut PlotState)

Source from the content-addressed store, hash-verified

1835 }
1836
1837 fn draw(
1838 &self,
1839 state: &Self::State,
1840 renderer: &iced::Renderer,
1841 _theme: &Theme,
1842 bounds: Rectangle,
1843 _cursor: mouse::Cursor,
1844 ) -> Vec<iced::widget::canvas::Geometry> {
1845 crate::plot_renderer::canvas::draw(renderer, &self.canvas_caches, state, bounds)
1846 }
1847
1848 fn mouse_interaction(
1849 &self,
1850 state: &Self::State,
1851 _bounds: Rectangle,
1852 _cursor: mouse::Cursor,
1853 ) -> Interaction {
1854 plot_mouse_interaction(state)
1855 }
1856}
1857
1858#[doc(hidden)]
1859pub struct PlotRendererState {
1860 renderers: HashMap<u64, PlotRenderer>,
1861 format: TextureFormat,
1862}
1863
1864impl shader::Primitive for Primitive {

Callers 1

Calls 3

force_cpu_pickingMethod · 0.80
request_pick_hitMethod · 0.80
valid_point_idMethod · 0.80

Tested by

no test coverage detected