pub struct DropShadow {
pub dx: f32,
pub dy: f32,
pub std_deviation: f32,
pub color: AlphaColor<Srgb>,
pub edge_mode: EdgeMode,
}Expand description
Drop shadow effect (compound primitive).
Creates a drop shadow by blurring the input’s alpha channel, offsetting it, and compositing it with the original. This is a compound operation that combines multiple primitive operations into one.
See: https://drafts.fxtf.org/filter-effects-2/#feDropShadowElement
Fields§
§dx: f32§dy: f32§std_deviation: f32§color: AlphaColor<Srgb>§edge_mode: EdgeModeTrait 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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DropShadow
impl Debug for DropShadow
Source§impl PartialEq for DropShadow
impl PartialEq for DropShadow
impl StructuralPartialEq for DropShadow
Auto Trait Implementations§
impl Freeze for DropShadow
impl RefUnwindSafe for DropShadow
impl Send for DropShadow
impl Sync for DropShadow
impl Unpin for DropShadow
impl UnsafeUnpin 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