pub struct DefaultTextStyles { /* private fields */ }Expand description
The default text widget styles.
Implementations§
Source§impl DefaultTextStyles
impl DefaultTextStyles
Sourcepub const fn new(foreground: Color, background: Color) -> Self
pub const fn new(foreground: Color, background: Color) -> Self
Create new default text styles with given colors.
Sourcepub const fn foreground(&self) -> Color
pub const fn foreground(&self) -> Color
Get the default foreground color.
Sourcepub const fn background(&self) -> Color
pub const fn background(&self) -> Color
Get the default background color.
Trait Implementations§
Source§impl Clone for DefaultTextStyles
impl Clone for DefaultTextStyles
Source§fn clone(&self) -> DefaultTextStyles
fn clone(&self) -> DefaultTextStyles
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultTextStyles
impl Debug for DefaultTextStyles
Source§impl PartialEq for DefaultTextStyles
impl PartialEq for DefaultTextStyles
impl StructuralPartialEq for DefaultTextStyles
Auto Trait Implementations§
impl Freeze for DefaultTextStyles
impl RefUnwindSafe for DefaultTextStyles
impl Send for DefaultTextStyles
impl Sync for DefaultTextStyles
impl Unpin for DefaultTextStyles
impl UnwindSafe for DefaultTextStyles
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