Type Alias cosmic::iced::widget::text::Text

source ·
pub type Text<'a, Theme = Theme, 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> { /* private fields */ }