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: InputIdentifies input for the given filter primitive.
in in the SVG.
dx: f64The amount to offset the input graphic along the X-axis.
dy: f64The amount to offset the input graphic along the Y-axis.
std_dev_x: PositiveF64A standard deviation along the X-axis.
stdDeviation in the SVG.
std_dev_y: PositiveF64A 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 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