Struct egui::RichText[][src]

pub struct RichText { /* fields omitted */ }
Expand description

Text and optional style choices for it.

The style choices (font, color) are applied to the entire text. For more detailed control, use crate::text::LayoutJob instead.

Implementations

Override the TextStyle.

Set the TextStyle unless it has already been set

Monospace label with different background color.

Extra strong text (stronger color).

Extra weak text (fainter color).

Draw a line under the text.

If you want to control the line color, use LayoutJob instead.

Draw a line through the text, crossing it out.

If you want to control the strikethrough line color, use LayoutJob instead.

Tilt the characters to the right.

Smaller text.

For e.g. exponents.

Align text to top. Only applicable together with Self::small().

Fill-color behind the text.

Override text color.

Read the font height of the selected text style.

Trait Implementations

Returns the “default value” for a type. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.