Struct charming::element::text_style::TextStyle
source · pub struct TextStyle { /* private fields */ }
Implementations§
source§impl TextStyle
impl TextStyle
pub fn new() -> Self
pub fn color<C: Into<Color>>(self, color: C) -> Self
pub fn font_style<S: Into<String>>(self, font_style: S) -> Self
pub fn font_weight<S: Into<String>>(self, font_weight: S) -> Self
pub fn font_family<S: Into<String>>(self, font_family: S) -> Self
pub fn font_size<F: Into<f64>>(self, font_size: F) -> Self
pub fn line_height<F: Into<f64>>(self, line_height: F) -> Self
pub fn align<S: Into<String>>(self, align: S) -> Self
pub fn padding<F: Into<f64> + Copy>(self, padding: [F; 4]) -> Self
pub fn padding_all<F: Into<f64> + Copy>(self, padding: F) -> Self
pub fn padding_pair<F: Into<f64> + Copy>(self, padding: [F; 2]) -> Self
Trait Implementations§
Auto Trait Implementations§
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