iced::widget::text

Type Alias Text

pub type Text<'a, Theme = Theme, Renderer = Renderer<Renderer, Renderer>> = Text<'a, Theme, Renderer>;
Expand description

A bunch of text.

§Example

use iced::widget::text;
use iced::color;

enum Message {
    // ...
}

fn view(state: &State) -> Element<'_, Message> {
    text("Hello, this is iced!")
        .size(20)
        .color(color!(0x0000ff))
        .into()
}

Aliased Type§

struct Text<'a, Theme = Theme, Renderer = Renderer<Renderer, Renderer>> { /* private fields */ }