[][src]Function nannou::ui::prelude::text::cursor::xys_per_line

pub fn xys_per_line<I>(
    lines_with_rects: I,
    font: &'a Font<'static>,
    text: &'a str,
    font_size: u32
) -> XysPerLine<'a, I>

Notable traits for XysPerLine<'a, I>

impl<'a, I> Iterator for XysPerLine<'a, I> where
    I: Iterator<Item = (Info, Rect)>, 
type Item = (Xs<'a, 'a>, Range);

Every possible cursor position within each line of text yielded by the given iterator.

Yields (xs, y_range), where y_range is the Range occupied by the line across the y axis and xs is every possible cursor position along the x axis