pub struct LayoutTextStyle {
pub font_family: Option<String>,
pub font_size: f32,
pub color: Rgba,
pub line_height: f32,
pub text_align: TextAlign,
pub outline: Option<TextOutline>,
}Expand description
A box’s text style once inherited: what its text draws with. Lengths are fractions of the picture’s shorter side.
Fields§
§font_family: Option<String>The family the text draws in, as a text style’s font_family.
font_size: f32Font size as a fraction of the picture’s shorter side.
color: RgbaText color.
line_height: f32Baseline-to-baseline distance in font sizes.
text_align: TextAlignHow lines align within the content width.
outline: Option<TextOutline>A band around the glyphs; its width a fraction of the font size.
Trait Implementations§
Source§impl Clone for LayoutTextStyle
impl Clone for LayoutTextStyle
Source§impl Debug for LayoutTextStyle
impl Debug for LayoutTextStyle
Source§impl PartialEq for LayoutTextStyle
impl PartialEq for LayoutTextStyle
impl StructuralPartialEq for LayoutTextStyle
Auto Trait Implementations§
impl Freeze for LayoutTextStyle
impl RefUnwindSafe for LayoutTextStyle
impl Send for LayoutTextStyle
impl Sync for LayoutTextStyle
impl Unpin for LayoutTextStyle
impl UnsafeUnpin for LayoutTextStyle
impl UnwindSafe for LayoutTextStyle
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