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

pub fn infos_maybe_wrapped<'a>(
    text: &'a str,
    font: &'a Font,
    font_size: FontSize,
    maybe_wrap: Option<Wrap>,
    max_width: Scalar
) -> Infos<'a, NextBreakFnPtr>

Notable traits for Infos<'a, F>

impl<'a, F> Iterator for Infos<'a, F> where
    F: for<'b> FnMut(&'b str, &'b Font, FontSize, Scalar) -> NextBreak
type Item = Info;
Expand description

Simplify the retrieval of line information for text that may or may not be wrapped.