pub struct TextStyle {
pub font_size: f32,
pub font_family: FontFamily,
pub font_weight: FontWeight,
pub font_stretch: FontStretch,
pub font_style: FontStyle,
pub color: Color,
pub align: TextAlign,
pub line_height: f32,
pub wrap: TextWrap,
}Expand description
The style of a Text.
Fields§
§font_size: f32The font size of the text.
font_family: FontFamilyThe font family of the text.
font_weight: FontWeightThe font weight of the text.
font_stretch: FontStretchThe font stretch of the text.
font_style: FontStyleThe font style of the text.
color: ColorThe color of the text.
align: TextAlignThe horizontal alignment of the text.
line_height: f32The line height of the text.
wrap: TextWrapThe text wrap of the text.
Trait Implementations§
Source§impl Style for TextStyle
impl Style for TextStyle
Source§fn default_style() -> StyleBuilder<TextStyle>
fn default_style() -> StyleBuilder<TextStyle>
The default style of the object.
Auto Trait Implementations§
impl Freeze for TextStyle
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