iced_core::widget::text

Function layout

Source
pub fn layout<Renderer>(
    state: &mut State<Renderer::Paragraph>,
    renderer: &Renderer,
    limits: &Limits,
    width: Length,
    height: Length,
    content: &str,
    line_height: LineHeight,
    size: Option<Pixels>,
    font: Option<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.