pub fn draw<Renderer>(
renderer: &mut Renderer,
style: &Style,
layout: Layout<'_>,
state: &State<<Renderer as Renderer>::Paragraph>,
appearance: Appearance,
viewport: &Rectangle,
)where
Renderer: Renderer,
Expand description
Draws text using the same logic as the Text
widget.
Specifically:
- If no
size
is provided, the default text size of theRenderer
will be used. - If no
color
is provided, therenderer::Style::text_color
will be used. - The alignment attributes do not affect the position of the bounds of the
Layout
.