pub struct Style {
pub background: Option<Background>,
pub text_color: Color,
pub border: Border,
pub shadow: Shadow,
pub snap: bool,
}Expand description
The style of a button.
If not specified with Button::style
the theme will provide the style.
Fields§
§background: Option<Background>The Background of the button.
text_color: ColorThe text Color of the button.
border: BorderThe Border of the button.
shadow: ShadowThe Shadow of the button.
snap: boolWhether the button should be snapped to the pixel grid.
Implementations§
Source§impl Style
impl Style
Sourcepub fn with_background(self, background: impl Into<Background>) -> Self
pub fn with_background(self, background: impl Into<Background>) -> Self
Updates the Style with the given Background.
Trait Implementations§
impl Copy for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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