pub struct ShadowSpec {
pub dx: f64,
pub dy: f64,
pub blur: f64,
pub color: Color,
}Expand description
A single drop-shadow / outer-glow layer.
dx/dy are the offset (pixels) of the shadow relative to the ink; blur
is the Gaussian blur sigma (pixels, >= 0); color is the shadow color
(straight / un-pre-multiplied alpha). A node may carry several layers, all
painted behind the ink.
Fields§
§dx: f64Horizontal offset in pixels (positive = rightward).
dy: f64Vertical offset in pixels (positive = downward).
blur: f64Gaussian blur sigma in pixels (>= 0).
color: ColorShadow color (straight / un-pre-multiplied alpha).
Trait Implementations§
Source§impl Clone for ShadowSpec
impl Clone for ShadowSpec
Source§fn clone(&self) -> ShadowSpec
fn clone(&self) -> ShadowSpec
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 ShadowSpec
impl Debug for ShadowSpec
Source§impl PartialEq for ShadowSpec
impl PartialEq for ShadowSpec
Source§fn eq(&self, other: &ShadowSpec) -> bool
fn eq(&self, other: &ShadowSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ShadowSpec
impl Serialize for ShadowSpec
impl StructuralPartialEq for ShadowSpec
Auto Trait Implementations§
impl Freeze for ShadowSpec
impl RefUnwindSafe for ShadowSpec
impl Send for ShadowSpec
impl Sync for ShadowSpec
impl Unpin for ShadowSpec
impl UnsafeUnpin for ShadowSpec
impl UnwindSafe for ShadowSpec
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