Struct usvg_tree::filter::DropShadow
source · pub struct DropShadow {
pub input: Input,
pub dx: f64,
pub dy: f64,
pub std_dev_x: PositiveF64,
pub std_dev_y: PositiveF64,
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: Input
Identifies input for the given filter primitive.
in
in the SVG.
dx: f64
The amount to offset the input graphic along the X-axis.
dy: f64
The amount to offset the input graphic along the Y-axis.
std_dev_x: PositiveF64
A standard deviation along the X-axis.
stdDeviation
in the SVG.
std_dev_y: PositiveF64
A standard deviation along the Y-axis.
stdDeviation
in the SVG.
color: Color
A flood color.
flood-color
in the SVG.
opacity: Opacity
A 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 copy 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 more