pub struct TextTheme {
pub font_size: u32,
pub font_weight: FontWeight,
pub colour: RGBA,
pub align: TextAlign,
}Expand description
Theme for a text with a font.
Fields§
§font_size: u32The height of the text.
font_weight: FontWeightThe weight of the letters.
colour: RGBAThe colour of the text.
align: TextAlignText alignment.
Trait Implementations§
impl StructuralPartialEq for TextTheme
Auto Trait Implementations§
impl Freeze for TextTheme
impl RefUnwindSafe for TextTheme
impl Send for TextTheme
impl Sync for TextTheme
impl Unpin for TextTheme
impl UnwindSafe for TextTheme
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