Enum piet::TextAttribute[][src]

pub enum TextAttribute {
    FontFamily(FontFamily),
    FontSize(f64),
    Weight(FontWeight),
    TextColor(Color),
    Style(FontStyle),
    Underline(bool),
    Strikethrough(bool),
}
Expand description

Attributes that can be applied to text.

Variants

FontFamily

The font family.

Tuple Fields of FontFamily

0: FontFamily
FontSize

The font size, in points.

Tuple Fields of FontSize

0: f64
Weight

Tuple Fields of Weight

0: FontWeight
TextColor

The foreground color of the text.

Tuple Fields of TextColor

0: Color
Style

The FontStyle; either regular or italic.

Tuple Fields of Style

0: FontStyle
Underline

Underline.

Tuple Fields of Underline

0: bool
Strikethrough

Strikethrough.

Tuple Fields of Strikethrough

0: bool

Trait Implementations

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.