pub struct TextStyle { /* private fields */ }
Implementations§
source§impl TextStyle
impl TextStyle
pub fn color(self, val: &str) -> TextStyle
pub fn font(self, val: f32) -> TextStyle
pub fn custom_font(self, val: &str) -> TextStyle
pub fn stroke(self, val: &str) -> TextStyle
pub fn stroke_width(self, val: f32) -> TextStyle
pub fn background_color(self, val: &str) -> TextStyle
pub fn background_padding(self, val: f32) -> TextStyle
pub fn align(self, val: TextAlign) -> TextStyle
pub fn opacity(self, val: f32) -> TextStyle
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