Function nannou::text::line::rects[][src]

pub fn rects<I>(
    infos: I,
    font_size: FontSize,
    max_width: Scalar,
    x_align: Justify,
    line_spacing: Scalar
) -> Rects<I>

Notable traits for Rects<I>

impl<I> Iterator for Rects<I> where
    I: Iterator<Item = Info>, 
type Item = Rect;
where
    I: Iterator<Item = Info>, 

Produce an iterator yielding the bounding Rect for each line in the text.

Yielded Rects will begin with the top-left of the first line at a [0.0, 0.0].

This function assumes that font_size and max_width are the same as those used to produce the Infos yielded by the infos Iterator.