pub struct TextStyle {
pub family: FontFamily<'static>,
pub size: f32,
pub weight: FontWeight,
pub line_height: f32,
pub color: ColorValue,
}Expand description
How a text widget lays out and paints its text.
Fields§
§family: FontFamily<'static>The font family to resolve, named or generic.
size: f32The font size in logical pixels.
weight: FontWeightThe weight the family is matched with.
line_height: f32The line height as a multiple of the font size.
color: ColorValueThe color the glyphs paint with, which may name a theme token and resolves when the widget paints.
Trait Implementations§
impl StructuralPartialEq for TextStyle
Auto Trait Implementations§
impl Forget for TextStyle
impl Freeze for TextStyle
impl Move for TextStyle
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnsafeUnpin 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