pub struct Shadow {
pub offset: Point,
pub blur: f32,
pub color: Color,
}Expand description
A soft drop shadow. blur is the Gaussian standard deviation times two,
matching what CSS box-shadow calls the blur radius.
Fields§
§offset: PointShadow offset from the shape, in logical pixels.
blur: f32Blur radius in logical pixels (CSS box-shadow semantics).
color: ColorShadow color, usually translucent black.
Implementations§
Trait Implementations§
impl Copy for Shadow
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§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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