pub struct DefaultStyles { /* private fields */ }Expand description
Default widget styles.
Implementations§
Source§impl DefaultStyles
impl DefaultStyles
Sourcepub fn new(
text: DefaultTextStyles,
container: DefaultContainerStyles,
interactive: DefaultInteractiveStyles,
) -> Self
pub fn new( text: DefaultTextStyles, container: DefaultContainerStyles, interactive: DefaultInteractiveStyles, ) -> Self
Create new default styles with given styles.
Sourcepub fn text(&self) -> &DefaultTextStyles
pub fn text(&self) -> &DefaultTextStyles
Get the default styles for text widgets.
Sourcepub fn container(&self) -> &DefaultContainerStyles
pub fn container(&self) -> &DefaultContainerStyles
Get the default styles for container widgets.
Sourcepub fn interactive(&self) -> &DefaultInteractiveStyles
pub fn interactive(&self) -> &DefaultInteractiveStyles
Get the default styles for interactive widgets.
Trait Implementations§
Source§impl Clone for DefaultStyles
impl Clone for DefaultStyles
Source§fn clone(&self) -> DefaultStyles
fn clone(&self) -> DefaultStyles
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 DefaultStyles
impl Debug for DefaultStyles
Source§impl PartialEq for DefaultStyles
impl PartialEq for DefaultStyles
impl StructuralPartialEq for DefaultStyles
Auto Trait Implementations§
impl Freeze for DefaultStyles
impl RefUnwindSafe for DefaultStyles
impl Send for DefaultStyles
impl Sync for DefaultStyles
impl Unpin for DefaultStyles
impl UnwindSafe for DefaultStyles
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