pub struct BoxStyle {
pub fill: Option<Color>,
pub radius: f64,
pub border: Option<(Color, f64)>,
}Expand description
The painted decoration of an element’s box: fill, corner radius, border. Applies to any element — a leaf bar, a button, or a container panel.
Fields§
§fill: Option<Color>§radius: f64§border: Option<(Color, f64)>Border as (color, width).
Trait Implementations§
impl Copy for BoxStyle
impl StructuralPartialEq for BoxStyle
Auto Trait Implementations§
impl Freeze for BoxStyle
impl RefUnwindSafe for BoxStyle
impl Send for BoxStyle
impl Sync for BoxStyle
impl Unpin for BoxStyle
impl UnsafeUnpin for BoxStyle
impl UnwindSafe for BoxStyle
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