Expand description
Text widgets display information through writing.
§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()
}
Re-exports§
pub use text::LineHeight;
pub use text::Shaping;
pub use text::Wrapping;
Structs§
- The internal state of a
Text
widget. - The appearance of some text.
- A bunch of text.
Traits§
- The theme catalog of a
Text
.
Functions§
- Text with the default base color.
- Text conveying some negative information, like an error.
- The default text styling; color is inherited.
- Draws text using the same logic as the
Text
widget. - Produces the
layout::Node
of aText
widget. - Text conveying some important information, like an action.
- Text conveying some secondary information, like a footnote.
- Text conveying some positive information, like a successful event.
Type Aliases§
- A styling function for a
Text
.