Function nannou::text::glyph::selected_rects_per_line
source · pub fn selected_rects_per_line<'a, I>(
lines_with_rects: I,
font: &'a Font,
font_size: FontSize,
start: Index,
end: Index
) -> SelectedRectsPerLine<'a, I> ⓘ
Expand description
Produces an iterator that yields iteraors yielding Rect
s for each selected character in
each line of text within the given iterator yielding char Rect
s.
Given some start
and end
indices, only Rect
s for char
s between these two indices
will be produced.
All lines that have no selected Rect
s will be skipped.