Function nannou::text::cursor::closest_cursor_index_on_line
source · pub fn closest_cursor_index_on_line<'a>(
x_pos: Scalar,
line_xs: Xs<'a, 'a>
) -> (usize, Scalar)
Expand description
Find the closest cursor index to the given x
position on the given line along with the
x
position of that cursor.