pub struct ButtonStyle {
pub padding: Padding,
pub fancy: f32,
pub transition: Transition,
pub color: Color,
pub border_radius: BorderRadius,
pub border_width: BorderWidth,
pub border_color: Color,
}Expand description
The style of a button.
Fields§
§padding: PaddingThe padding.
fancy: f32The distance of the fancy effect.
transition: TransitionThe transition of the button.
color: ColorThe color of the button.
border_radius: BorderRadiusThe border radius.
border_width: BorderWidthThe border width.
border_color: ColorThe border color.
Trait Implementations§
Source§impl Clone for ButtonStyle
impl Clone for ButtonStyle
Source§fn clone(&self) -> ButtonStyle
fn clone(&self) -> ButtonStyle
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 Default for ButtonStyle
impl Default for ButtonStyle
Source§fn default() -> ButtonStyle
fn default() -> ButtonStyle
Returns the “default value” for a type. Read more
Source§impl Rebuild for ButtonStyle
impl Rebuild for ButtonStyle
Source§fn rebuild(&self, cx: &mut RebuildCx<'_, '_>, old: &ButtonStyle)
fn rebuild(&self, cx: &mut RebuildCx<'_, '_>, old: &ButtonStyle)
Rebuild the view.
Source§impl Style for ButtonStyle
impl Style for ButtonStyle
Source§fn default_style() -> StyleBuilder<ButtonStyle>
fn default_style() -> StyleBuilder<ButtonStyle>
The default style of the object.
Auto Trait Implementations§
impl Freeze for ButtonStyle
impl RefUnwindSafe for ButtonStyle
impl Send for ButtonStyle
impl Sync for ButtonStyle
impl Unpin for ButtonStyle
impl UnwindSafe for ButtonStyle
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