pub struct Effect {
pub type: EffectType,
pub visible: bool,
pub color: Option<Color>,
pub offset: Option<Vector>,
pub spread: Option<f64>,
}Expand description
A visual effect such as a shadow or blur
Fields§
§type: EffectTypeType of effect
visible: boolIs the effect active?
color: Option<Color>The color of the shadow
offset: Option<Vector>How far the shadow is projected in the x and y directions
spread: Option<f64>How far the shadow spreads
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Effect
impl<'de> Deserialize<'de> for Effect
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
Auto Trait Implementations§
impl Freeze for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnwindSafe for Effect
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