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

Method with_hover_radius_px

src/plot_widget_builder.rs:100–103  ·  view source on GitHub ↗

Set the hover radius in pixels for detecting nearby points for highlighting.

(mut self, radius: f32)

Source from the content-addressed store, hash-verified

98
99 /// Set the hover radius in pixels for detecting nearby points for highlighting.
100 pub fn with_hover_radius_px(mut self, radius: f32) -> Self {
101 self.hover_radius_px = Some(radius.max(0.0));
102 self
103 }
104
105 /// Enable or disable point highlighting while hovering.
106 pub fn with_highlight_on_hover(mut self, enabled: bool) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected