Function nannou::ui::text::cursor::closest_cursor_index_on_line [−][src]
pub fn closest_cursor_index_on_line(
x_pos: f64,
line_xs: Xs<'a, 'a>
) -> (usize, f64)
Find the closest cursor index to the given x
position on the given line along with the
x
position of that cursor.