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

pub fn rects<I>(
    infos: I,
    font_size: u32,
    bounding_rect: Rect,
    x_align: Justify,
    y_align: Align,
    line_spacing: f64
) -> 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> + ExactSizeIterator

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

This function assumes that font_size is the same FontSize used to produce the Infos yielded by the infos Iterator.