pub struct SpanStyle {Show 18 fields
pub color: Option<Color>,
pub font_size: Option<f32>,
pub font_weight: Option<u16>,
pub font_family: Option<&'static str>,
pub font_style: Option<u8>,
pub text_align: Option<TextAlign>,
pub letter_spacing: Option<f32>,
pub line_height: Option<f32>,
pub background: Option<Color>,
pub text_decoration: Option<TextDecoration>,
pub text_direction: Option<TextDirection>,
pub font_synthesis: Option<FontSynthesis>,
pub baseline_shift: Option<BaselineShift>,
pub hyphens: Option<Hyphens>,
pub line_break: Option<LineBreak>,
pub text_indent: Option<TextIndent>,
pub draw_style: Option<DrawStyle>,
pub alpha: f32,
}Fields§
§color: Option<Color>§font_size: Option<f32>§font_weight: Option<u16>§font_family: Option<&'static str>§font_style: Option<u8>§text_align: Option<TextAlign>§letter_spacing: Option<f32>§line_height: Option<f32>§background: Option<Color>§text_decoration: Option<TextDecoration>§text_direction: Option<TextDirection>§font_synthesis: Option<FontSynthesis>§baseline_shift: Option<BaselineShift>§hyphens: Option<Hyphens>§line_break: Option<LineBreak>§text_indent: Option<TextIndent>§draw_style: Option<DrawStyle>§alpha: f32Implementations§
Source§impl SpanStyle
impl SpanStyle
pub const fn default() -> Self
pub fn color(self, c: Color) -> Self
pub fn font_size(self, px: f32) -> Self
pub fn text_decoration(self, d: TextDecoration) -> Self
pub fn font_weight(self, w: u16) -> Self
pub fn font_style(self, s: u8) -> Self
pub fn draw_style(self, s: DrawStyle) -> Self
pub fn background(self, c: Color) -> Self
pub fn baseline_shift(self, s: BaselineShift) -> Self
Trait Implementations§
impl StructuralPartialEq for SpanStyle
Auto Trait Implementations§
impl Freeze for SpanStyle
impl RefUnwindSafe for SpanStyle
impl Send for SpanStyle
impl Sync for SpanStyle
impl Unpin for SpanStyle
impl UnsafeUnpin for SpanStyle
impl UnwindSafe for SpanStyle
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