pub struct ShadowLayerRef {
pub dx: f64,
pub dy: f64,
pub blur: f64,
pub color_token: String,
}Expand description
A single shadow layer: x/y offsets and blur radius (pixels) plus a reference to a color token. A layer with nonzero dx/dy is a drop shadow; a layer with dx=dy=0 and a blur is an outer glow.
Fields§
§dx: f64Horizontal offset in pixels.
dy: f64Vertical offset in pixels.
blur: f64Blur radius in pixels.
color_token: StringThe id of the color token this layer renders with.
Trait Implementations§
Source§impl Clone for ShadowLayerRef
impl Clone for ShadowLayerRef
Source§fn clone(&self) -> ShadowLayerRef
fn clone(&self) -> ShadowLayerRef
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 ShadowLayerRef
impl Debug for ShadowLayerRef
Source§impl PartialEq for ShadowLayerRef
impl PartialEq for ShadowLayerRef
Source§fn eq(&self, other: &ShadowLayerRef) -> bool
fn eq(&self, other: &ShadowLayerRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShadowLayerRef
Auto Trait Implementations§
impl Freeze for ShadowLayerRef
impl RefUnwindSafe for ShadowLayerRef
impl Send for ShadowLayerRef
impl Sync for ShadowLayerRef
impl Unpin for ShadowLayerRef
impl UnsafeUnpin for ShadowLayerRef
impl UnwindSafe for ShadowLayerRef
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