pub struct TextStyle {
pub size_fx: Option<u16>,
pub line: Option<u16>,
pub weight: Option<u16>,
}Expand description
a text style of a theme: size in DIP (24.8), line height in DIP, weight 100..900; None = the style’s (a size alone scales the style’s line height with it)
Fields§
§size_fx: Option<u16>§line: Option<u16>§weight: Option<u16>Trait Implementations§
impl Copy for TextStyle
impl Eq for TextStyle
impl StructuralPartialEq for TextStyle
Auto Trait Implementations§
impl Forget for TextStyle
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