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: bool
color: Color
background_color: Color
font_size: f32
font_weight: FontWeight
font_style: FontStyle
letter_spacing: f32
word_spacing: f32
text_baseline: TextBaseline
height: f32
leading_distribution: TextLeadingDistribution
locale: Locale
foreground: Paint
background: Paint
shadows: Vec<Shadow>
font_features: Vec<FontFeature>
decoration: TextDecorationStyle
decoration_colo: Color
decoration_style: TextDecorationStyle
decoration_thickness: f32
debug_label: String
font_family: String
font_family_fallback: Vec<String>
package: String
overflow: TextOverflow
Trait 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
.