pub struct BoxShadow {
pub offset_x: f32,
pub offset_y: f32,
pub blur: f32,
pub spread: f32,
pub color: (u8, u8, u8, u8),
pub inset: bool,
}Expand description
Box shadow effect
Fields§
§offset_x: f32Horizontal offset
offset_y: f32Vertical offset
blur: f32Blur radius
spread: f32Spread radius (optional)
color: (u8, u8, u8, u8)Shadow color (rgba)
inset: boolInset shadow?
Implementations§
Trait Implementations§
impl Copy for BoxShadow
impl StructuralPartialEq for BoxShadow
Auto Trait Implementations§
impl Freeze for BoxShadow
impl RefUnwindSafe for BoxShadow
impl Send for BoxShadow
impl Sync for BoxShadow
impl Unpin for BoxShadow
impl UnsafeUnpin for BoxShadow
impl UnwindSafe for BoxShadow
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