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