Function layout
pub fn layout<Renderer>(
state: &mut State<<Renderer as Renderer>::Paragraph>,
renderer: &Renderer,
limits: &Limits,
width: Length,
height: Length,
content: &str,
line_height: LineHeight,
size: Option<Pixels>,
font: Option<<Renderer as Renderer>::Font>,
horizontal_alignment: Horizontal,
vertical_alignment: Vertical,
shaping: Shaping,
wrapping: Wrapping,
) -> Nodewhere
Renderer: Renderer,
Available on crate feature
advanced
only.Expand description
Produces the layout::Node
of a Text
widget.