pub struct TextStyle {
pub font_name: String,
pub font_size: f64,
pub color: Color,
pub weight: FontWeight,
pub alignment: TextAlignment,
}Expand description
Text style for rendering
Fields§
§font_name: StringFont name
font_size: f64Font size in points
color: ColorText color
weight: FontWeightFont weight
alignment: TextAlignmentText alignment
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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