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