iced::widget::text

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,
) -> Node
where Renderer: Renderer,
Expand description

Produces the layout::Node of a Text widget.