pub struct DropShadow {
pub input: Input,
pub dx: f32,
pub dy: f32,
pub std_dev_x: PositiveF32,
pub std_dev_y: PositiveF32,
pub color: Color,
pub 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: InputIdentifies input for the given filter primitive.
in in the SVG.
dx: f32The amount to offset the input graphic along the X-axis.
dy: f32The amount to offset the input graphic along the Y-axis.
std_dev_x: PositiveF32A standard deviation along the X-axis.
stdDeviation in the SVG.
std_dev_y: PositiveF32A standard deviation along the Y-axis.
stdDeviation in the SVG.
color: ColorA flood color.
flood-color in the SVG.
opacity: OpacityA flood opacity.
flood-opacity 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