Struct components::painting::TextStyle
source · [−]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: TextOverflowTrait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnwindSafe for TextStyle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value as a parameter of self.