Type Alias cosmic::iced_widget::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 */ }