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

Method available_cursor_is_inside

src/plot_state.rs:479–482  ·  view source on GitHub ↗
(&self, cursor: mouse::Cursor)

Source from the content-addressed store, hash-verified

477 let Some(tick_plot) = self.y_axis_scale.data_to_plot(tick.value) else {
478 continue;
479 };
480 // Convert world position to screen position
481 if let Some(screen_pos) =
482 world_to_screen_position_y(tick_plot, &self.camera, &self.bounds)
483 {
484 self.y_ticks.push(PositionedTick { screen_pos, tick });
485 }

Callers 2

handle_keyboard_eventMethod · 0.80
update_plot_programFunction · 0.80

Tested by

no test coverage detected