pub struct DefaultContainerStyles { /* private fields */ }Expand description
The default container widget styles.
Implementations§
Source§impl DefaultContainerStyles
impl DefaultContainerStyles
Sourcepub fn new(foreground: Color, background: Color) -> Self
pub fn new(foreground: Color, background: Color) -> Self
Create new default container 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 DefaultContainerStyles
impl Clone for DefaultContainerStyles
Source§fn clone(&self) -> DefaultContainerStyles
fn clone(&self) -> DefaultContainerStyles
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 DefaultContainerStyles
impl Debug for DefaultContainerStyles
Source§impl PartialEq for DefaultContainerStyles
impl PartialEq for DefaultContainerStyles
impl StructuralPartialEq for DefaultContainerStyles
Auto Trait Implementations§
impl Freeze for DefaultContainerStyles
impl RefUnwindSafe for DefaultContainerStyles
impl Send for DefaultContainerStyles
impl Sync for DefaultContainerStyles
impl Unpin for DefaultContainerStyles
impl UnwindSafe for DefaultContainerStyles
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