pub struct TextStyle { /* private fields */ }Expand description
Typography properties controlling deterministic text layout and glyph rendering.
Implementations§
Source§impl TextStyle
impl TextStyle
pub fn get_family(&self) -> FontFamily
pub fn get_mut_family(&mut self) -> &mut FontFamily
pub fn set_family(&mut self, val: FontFamily) -> &mut Self
pub fn get_font_size(&self) -> f32
pub fn get_mut_font_size(&mut self) -> &mut f32
pub fn set_font_size(&mut self, val: f32) -> &mut Self
pub fn get_weight(&self) -> FontWeight
pub fn get_mut_weight(&mut self) -> &mut FontWeight
pub fn set_weight(&mut self, val: FontWeight) -> &mut Self
pub fn get_line_height(&self) -> f32
pub fn get_mut_line_height(&mut self) -> &mut f32
pub fn set_line_height(&mut self, val: f32) -> &mut Self
pub fn get_letter_spacing(&self) -> f32
pub fn get_mut_letter_spacing(&mut self) -> &mut f32
pub fn set_letter_spacing(&mut self, val: f32) -> &mut Self
pub fn get_align(&self) -> TextAlign
pub fn get_mut_align(&mut self) -> &mut TextAlign
pub fn set_align(&mut self, val: TextAlign) -> &mut Self
pub fn get_overflow(&self) -> TextOverflow
pub fn get_mut_overflow(&mut self) -> &mut TextOverflow
pub fn set_overflow(&mut self, val: TextOverflow) -> &mut Self
pub fn get_color(&self) -> Color
pub fn get_mut_color(&mut self) -> &mut Color
pub fn set_color(&mut self, val: Color) -> &mut Self
pub fn get_italic(&self) -> bool
pub fn get_mut_italic(&mut self) -> &mut bool
pub fn set_italic(&mut self, val: bool) -> &mut Self
pub fn get_underline(&self) -> bool
pub fn get_mut_underline(&mut self) -> &mut bool
pub fn set_underline(&mut self, val: bool) -> &mut Self
pub fn get_strikethrough(&self) -> bool
pub fn get_mut_strikethrough(&mut self) -> &mut bool
pub fn set_strikethrough(&mut self, val: bool) -> &mut Self
Trait Implementations§
impl Copy for TextStyle
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