pub struct Shadow {
pub x: f32,
pub y: f32,
pub blur: f32,
pub spread: f32,
pub color: Color,
pub at: Origin,
}Expand description
A box’s drop shadow, as CSS’s box-shadow draws one: an offset, a blur and a
spread, in pixels, and a color.
Fields§
§x: f32How far right of the box the shadow is, in pixels.
y: f32How far down from the box the shadow is, in pixels.
blur: f32How far the shadow blurs, in pixels: twice the Gaussian’s standard deviation.
spread: f32How far the shadow grows past the box on every side before it blurs, in pixels; a negative spread shrinks it.
color: ColorThe shadow’s color.
at: OriginWhere shadow was written.
Trait Implementations§
impl StructuralPartialEq for Shadow
Auto Trait Implementations§
impl Freeze for Shadow
impl RefUnwindSafe for Shadow
impl Send for Shadow
impl Sync for Shadow
impl Unpin for Shadow
impl UnsafeUnpin for Shadow
impl UnwindSafe for Shadow
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