pub struct DefaultTextStyles { /* private fields */ }Expand description
The default text widget styles.
Implementations§
source§impl DefaultTextStyles
impl DefaultTextStyles
sourcepub fn new(foreground: Color, background: Color) -> Self
pub fn new(foreground: Color, background: Color) -> Self
Create new default text styles with given colors.
sourcepub fn foreground(&self) -> Color
pub fn foreground(&self) -> Color
Get the default foreground color.
sourcepub fn background(&self) -> Color
pub 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 copy 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 Default for DefaultTextStyles
impl Default for DefaultTextStyles
source§fn default() -> DefaultTextStyles
fn default() -> DefaultTextStyles
Returns the “default value” for a type. Read more
source§impl Hash for DefaultTextStyles
impl Hash for DefaultTextStyles
source§impl Ord for DefaultTextStyles
impl Ord for DefaultTextStyles
source§fn cmp(&self, other: &DefaultTextStyles) -> Ordering
fn cmp(&self, other: &DefaultTextStyles) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DefaultTextStyles
impl PartialEq for DefaultTextStyles
source§impl PartialOrd for DefaultTextStyles
impl PartialOrd for DefaultTextStyles
impl Eq 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more