[][src]Function nannou::ui::text::cursor::closest_line

pub fn closest_line<'a, I>(
    y_pos: f64,
    xys_per_line: I
) -> Option<(usize, Xs<'a, 'a>, Range)> where
    I: Iterator<Item = (Xs<'a, 'a>, Range)>, 

Find the closest line for the given y position, and return the line index, Xs iterator, and y-range of that line

Returns None if there are no lines