[][src]Function conrod_core::text::glyph::rects_per_line

pub fn rects_per_line<'a, I>(
    lines_with_rects: I,
    font: &'a Font,
    font_size: FontSize
) -> RectsPerLine<'a, I>

Notable traits for RectsPerLine<'a, I>

impl<'a, I> Iterator for RectsPerLine<'a, I> where
    I: Iterator<Item = (&'a str, Rect)>, 
type Item = Rects<'a, 'a>;
where
    I: Iterator<Item = (&'a str, Rect)>, 

Produce an iterator that, for every (line, line_rect) pair yielded by the given iterator, produces an iterator that yields a Rect for every character in that line.

This is useful when information about character positioning is needed when reasoning about text layout.