pub struct BoxShadow {
pub color: Color,
pub offset: (f32, f32),
pub blur: f32,
pub spread: f32,
}Expand description
A soft drop shadow.
Fields§
§color: ColorColour; its alpha sets the intensity.
offset: (f32, f32)Offset (dx, dy), in logical pixels.
blur: f32Blur radius.
spread: f32How far the shadow grows beyond the box, before blurring.
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