Struct gpui2::TextStyleRefinement
source · pub struct TextStyleRefinement {
pub color: Option<Hsla>,
pub font_family: Option<SharedString>,
pub font_features: Option<FontFeatures>,
pub font_size: Option<AbsoluteLength>,
pub line_height: Option<DefiniteLength>,
pub font_weight: Option<FontWeight>,
pub font_style: Option<FontStyle>,
pub underline: Option<UnderlineStyle>,
}
Fields§
§color: Option<Hsla>
§font_family: Option<SharedString>
§font_features: Option<FontFeatures>
§font_size: Option<AbsoluteLength>
§line_height: Option<DefiniteLength>
§font_weight: Option<FontWeight>
§font_style: Option<FontStyle>
§underline: Option<UnderlineStyle>
Implementations§
source§impl TextStyleRefinementwhere
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 TextStyleRefinementwhere Option<Hsla>: Clone, Option<SharedString>: Clone, Option<FontFeatures>: Clone, Option<AbsoluteLength>: Clone, Option<DefiniteLength>: Clone, Option<FontWeight>: Clone, Option<FontStyle>: Clone, Option<UnderlineStyle>: Clone,
Trait Implementations§
source§impl Clone for TextStyleRefinement
impl Clone for TextStyleRefinement
source§fn clone(&self) -> TextStyleRefinement
fn clone(&self) -> TextStyleRefinement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TextStyleRefinementwhere
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 Debug for TextStyleRefinementwhere 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§impl Default for TextStyleRefinementwhere
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 Default for TextStyleRefinementwhere 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§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 TextStyleRefinementwhere
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 TextStyleRefinementwhere 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 TextStyleRefinement
impl Send for TextStyleRefinement
impl Sync for TextStyleRefinement
impl Unpin for TextStyleRefinement
impl UnwindSafe for TextStyleRefinement
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