pub struct TextStyle<'a> {
pub font: FontId,
pub size: f32,
pub line_height: LineHeight,
pub weight: u16,
pub stretch: u16,
pub style: FontStyle,
pub color: Color,
pub settings: FontSettings<'a>,
}Fields§
§font: FontId§size: f32§line_height: LineHeight§weight: u16§stretch: u16§style: FontStyle§color: Color§settings: FontSettings<'a>Implementations§
Source§impl<'a> TextStyle<'a>
impl<'a> TextStyle<'a>
Sourcepub fn font(self, value: FontId) -> Self
pub fn font(self, value: FontId) -> Self
sets Self::font
Sourcepub fn size(self, value: f32) -> Self
pub fn size(self, value: f32) -> Self
sets Self::size
Sourcepub fn line_height(self, value: LineHeight) -> Self
pub fn line_height(self, value: LineHeight) -> Self
sets Self::line_height
Sourcepub fn weight(self, value: u16) -> Self
pub fn weight(self, value: u16) -> Self
sets Self::weight
Sourcepub fn stretch(self, value: u16) -> Self
pub fn stretch(self, value: u16) -> Self
sets Self::stretch
Sourcepub fn style(self, value: FontStyle) -> Self
pub fn style(self, value: FontStyle) -> Self
sets Self::style
Sourcepub fn color(self, value: Color) -> Self
pub fn color(self, value: Color) -> Self
sets Self::color
Sourcepub fn settings(self, value: FontSettings<'a>) -> Self
pub fn settings(self, value: FontSettings<'a>) -> Self
sets Self::settings
Trait Implementations§
impl<'a> Copy for TextStyle<'a>
impl<'a> StructuralPartialEq for TextStyle<'a>
Auto Trait Implementations§
impl<'a> Forget for TextStyle<'a>
impl<'a> Freeze for TextStyle<'a>
impl<'a> Move for TextStyle<'a>
impl<'a> RefUnwindSafe for TextStyle<'a>
impl<'a> Send for TextStyle<'a>
impl<'a> Sync for TextStyle<'a>
impl<'a> Unpin for TextStyle<'a>
impl<'a> UnsafeUnpin for TextStyle<'a>
impl<'a> UnwindSafe for TextStyle<'a>
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