Trait text_layout::ParagraphLayout
source · pub trait ParagraphLayout<Box = (), Glue = (), Penalty = (), N: Num = f32> {
// Required method
fn layout_paragraph(
&self,
items: &[Item<Box, Glue, Penalty, N>],
line_width: N
) -> Vec<Line<N>>;
}
Expand description
Represents a paragraph layout algorithm
Required Methods§
sourcefn layout_paragraph(
&self,
items: &[Item<Box, Glue, Penalty, N>],
line_width: N
) -> Vec<Line<N>>
fn layout_paragraph( &self, items: &[Item<Box, Glue, Penalty, N>], line_width: N ) -> Vec<Line<N>>
Lays out a paragraph with the given line width that consists of as list of items and returns the laid-out lines.