pub struct BaseShadowEffect {
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>>,
}
Expand description
BaseShadowEffect : Base properties shared by all shadow effects
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>>
Implementations§
Trait Implementations§
Source§impl Clone for BaseShadowEffect
impl Clone for BaseShadowEffect
Source§fn clone(&self) -> BaseShadowEffect
fn clone(&self) -> BaseShadowEffect
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 BaseShadowEffect
impl Debug for BaseShadowEffect
Source§impl Default for BaseShadowEffect
impl Default for BaseShadowEffect
Source§fn default() -> BaseShadowEffect
fn default() -> BaseShadowEffect
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BaseShadowEffect
impl<'de> Deserialize<'de> for BaseShadowEffect
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 BaseShadowEffect
impl PartialEq for BaseShadowEffect
Source§impl Serialize for BaseShadowEffect
impl Serialize for BaseShadowEffect
impl StructuralPartialEq for BaseShadowEffect
Auto Trait Implementations§
impl Freeze for BaseShadowEffect
impl RefUnwindSafe for BaseShadowEffect
impl Send for BaseShadowEffect
impl Sync for BaseShadowEffect
impl Unpin for BaseShadowEffect
impl UnwindSafe for BaseShadowEffect
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