pub struct TextStyle {
pub color: Hsla,
pub font_family: SharedString,
pub font_features: FontFeatures,
pub font_size: AbsoluteLength,
pub line_height: DefiniteLength,
pub font_weight: FontWeight,
pub font_style: FontStyle,
pub underline: Option<UnderlineStyle>,
}
Fields§
§color: Hsla
§font_family: SharedString
§font_features: FontFeatures
§font_size: AbsoluteLength
§line_height: DefiniteLength
§font_weight: FontWeight
§font_style: FontStyle
§underline: Option<UnderlineStyle>
Implementations§
Trait Implementations§
source§impl From<&TextStyle> for HighlightStyle
impl From<&TextStyle> for HighlightStyle
source§impl From<TextStyle> for HighlightStyle
impl From<TextStyle> for HighlightStyle
source§impl From<TextStyleRefinement> for TextStylewhere
Option<Hsla>: Clone,
Option<SharedString>: Clone,
Option<FontFeatures>: Clone,
Option<AbsoluteLength>: Clone,
Option<DefiniteLength>: Clone,
Option<FontWeight>: Clone,
Option<FontStyle>: Clone,
Option<UnderlineStyle>: Clone,
impl From<TextStyleRefinement> for TextStylewhere Option<Hsla>: Clone, Option<SharedString>: Clone, Option<FontFeatures>: Clone, Option<AbsoluteLength>: Clone, Option<DefiniteLength>: Clone, Option<FontWeight>: Clone, Option<FontStyle>: Clone, Option<UnderlineStyle>: Clone,
source§fn from(value: TextStyleRefinement) -> Self
fn from(value: TextStyleRefinement) -> Self
Converts to this type from the input type.
source§impl Refineable for TextStylewhere
Option<Hsla>: Clone,
Option<SharedString>: Clone,
Option<FontFeatures>: Clone,
Option<AbsoluteLength>: Clone,
Option<DefiniteLength>: Clone,
Option<FontWeight>: Clone,
Option<FontStyle>: Clone,
Option<UnderlineStyle>: Clone,
impl Refineable for TextStylewhere Option<Hsla>: Clone, Option<SharedString>: Clone, Option<FontFeatures>: Clone, Option<AbsoluteLength>: Clone, Option<DefiniteLength>: Clone, Option<FontWeight>: Clone, Option<FontStyle>: Clone, Option<UnderlineStyle>: Clone,
type Refinement = TextStyleRefinement
fn refine(&mut self, refinement: &Self::Refinement)
fn refined(self, refinement: Self::Refinement) -> Self
fn from_cascade(cascade: &Cascade<Self>) -> Selfwhere Self: Default + Sized,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more