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

Method set_crosshairs

src/plot_widget.rs:805–807  ·  view source on GitHub ↗

Enable or disable crosshairs that follow the cursor position.

(&mut self, enabled: bool)

Source from the content-addressed store, hash-verified

803 pub fn autoscale_on_updates(&mut self, enabled: bool) {
804 self.autoscale_on_updates = enabled;
805 }
806
807 /// Set hover radius in logical pixels for picking markers (default: 8 px)
808 pub fn hover_radius_px(&mut self, radius: f32) {
809 self.hover_radius_px = radius.max(0.0);
810 }

Callers 1

buildMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected