pub struct Shadow {
pub offset_x: f32,
pub offset_y: f32,
pub blur: f32,
pub spread: f32,
pub color: Color,
}Expand description
A drop shadow: an offset box, blurred, spread outwards and drawn behind.
Fields§
§offset_x: f32§offset_y: f32§blur: f32Edge softness in pixels. Zero is a hard shadow, which is only correct for an offset of zero.
spread: f32Grows the shadow shape before blurring, so a positive spread makes the shadow larger than the box rather than blurrier.
color: ColorImplementations§
Trait Implementations§
impl Copy for Shadow
Source§impl<'de> Deserialize<'de> for Shadow
impl<'de> Deserialize<'de> for Shadow
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
impl StructuralPartialEq for Shadow
Auto Trait Implementations§
impl Freeze for Shadow
impl RefUnwindSafe for Shadow
impl Send for Shadow
impl Sync for Shadow
impl Unpin for Shadow
impl UnsafeUnpin for Shadow
impl UnwindSafe for Shadow
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