pub struct DropShadowEffect {
pub color: Box<Rgba>,
pub blend_mode: BlendMode,
pub offset: Box<Vector>,
pub radius: f64,
pub spread: Option<f64>,
pub visible: bool,
pub bound_variables: Option<Box<BaseShadowEffectBoundVariables>>,
pub show_shadow_behind_node: bool,
}
Fields§
§color: Box<Rgba>
The color of the shadow
blend_mode: BlendMode
Blend mode of the shadow
offset: Box<Vector>
How far the shadow is projected in the x and y directions
radius: f64
Radius of the blur effect (applies to shadows as well)
spread: Option<f64>
The distance by which to expand (or contract) the shadow. For drop shadows, a positive spread
value creates a shadow larger than the node, whereas a negative value creates a shadow smaller than the node. For inner shadows, a positive spread
value contracts the shadow. Spread values are only accepted on rectangles and ellipses, or on frames, components, and instances with visible fill paints and clipsContent
enabled. When left unspecified, the default value is 0.
visible: bool
Whether this shadow is visible.
bound_variables: Option<Box<BaseShadowEffectBoundVariables>>
§show_shadow_behind_node: bool
Whether to show the shadow behind translucent or transparent pixels
Implementations§
Trait Implementations§
Source§impl Clone for DropShadowEffect
impl Clone for DropShadowEffect
Source§fn clone(&self) -> DropShadowEffect
fn clone(&self) -> DropShadowEffect
Returns a duplicate 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 moreSource§impl Debug for DropShadowEffect
impl Debug for DropShadowEffect
Source§impl Default for DropShadowEffect
impl Default for DropShadowEffect
Source§fn default() -> DropShadowEffect
fn default() -> DropShadowEffect
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DropShadowEffect
impl<'de> Deserialize<'de> for DropShadowEffect
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DropShadowEffect
impl PartialEq for DropShadowEffect
Source§impl Serialize for DropShadowEffect
impl Serialize for DropShadowEffect
impl StructuralPartialEq for DropShadowEffect
Auto Trait Implementations§
impl Freeze for DropShadowEffect
impl RefUnwindSafe for DropShadowEffect
impl Send for DropShadowEffect
impl Sync for DropShadowEffect
impl Unpin for DropShadowEffect
impl UnwindSafe for DropShadowEffect
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