pub struct DropShadow {
    pub(crate) input: Input,
    pub(crate) dx: f32,
    pub(crate) dy: f32,
    pub(crate) std_dev_x: PositiveF32,
    pub(crate) std_dev_y: PositiveF32,
    pub(crate) color: Color,
    pub(crate) opacity: Opacity,
}Expand description
A drop shadow filter primitive.
This is essentially feGaussianBlur, feOffset and feFlood joined together.
feDropShadow element in the SVG.
Fields§
§input: Input§dx: f32§dy: f32§std_dev_x: PositiveF32§std_dev_y: PositiveF32§color: Color§opacity: OpacityImplementations§
Source§impl DropShadow
 
impl DropShadow
Sourcepub fn std_dev_x(&self) -> PositiveF32
 
pub fn std_dev_x(&self) -> PositiveF32
A standard deviation along the X-axis.
stdDeviation in the SVG.
Sourcepub fn std_dev_y(&self) -> PositiveF32
 
pub fn std_dev_y(&self) -> PositiveF32
A standard deviation along the Y-axis.
stdDeviation in the SVG.
Trait Implementations§
Source§impl Clone for DropShadow
 
impl Clone for DropShadow
Source§fn clone(&self) -> DropShadow
 
fn clone(&self) -> DropShadow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreAuto Trait Implementations§
impl Freeze for DropShadow
impl RefUnwindSafe for DropShadow
impl Send for DropShadow
impl Sync for DropShadow
impl Unpin for DropShadow
impl UnwindSafe for DropShadow
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