logo
pub struct TextStyle {
Show 25 fields pub inherit: bool, pub color: Color, pub background_color: Color, pub font_size: f32, pub font_weight: FontWeight, pub font_style: FontStyle, pub letter_spacing: f32, pub word_spacing: f32, pub text_baseline: TextBaseline, pub height: f32, pub leading_distribution: TextLeadingDistribution, pub locale: Locale, pub foreground: Paint, pub background: Paint, pub shadows: Vec<Shadow>, pub font_features: Vec<FontFeature>, pub decoration: TextDecorationStyle, pub decoration_colo: Color, pub decoration_style: TextDecorationStyle, pub decoration_thickness: f32, pub debug_label: String, pub font_family: String, pub font_family_fallback: Vec<String>, pub package: String, pub overflow: TextOverflow,
}

Fields

inherit: boolcolor: Colorbackground_color: Colorfont_size: f32font_weight: FontWeightfont_style: FontStyleletter_spacing: f32word_spacing: f32text_baseline: TextBaselineheight: f32leading_distribution: TextLeadingDistributionlocale: Localeforeground: Paintbackground: Paintshadows: Vec<Shadow>font_features: Vec<FontFeature>decoration: TextDecorationStyledecoration_colo: Colordecoration_style: TextDecorationStyledecoration_thickness: f32debug_label: Stringfont_family: Stringfont_family_fallback: Vec<String>package: Stringoverflow: TextOverflow

Trait Implementations

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

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

Returns the argument unchanged.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert into color

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Sets value as a parameter of self.

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.