pub struct BoxShadow {
pub offset_x: f64,
pub offset_y: f64,
pub blur: f64,
pub color: Color,
}Expand description
CSS-style drop shadow. v1 paints a filled rectangle offset behind the
element with the given color; the blur field is parsed for forward
compatibility but ignored. Honors border_radius for rounded shadows.
Fields§
§offset_x: f64§offset_y: f64§blur: f64Currently ignored (no blur in v1).
color: ColorTrait Implementations§
Source§impl<'de> Deserialize<'de> for BoxShadow
impl<'de> Deserialize<'de> for BoxShadow
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 Copy for BoxShadow
Auto Trait Implementations§
impl Freeze for BoxShadow
impl RefUnwindSafe for BoxShadow
impl Send for BoxShadow
impl Sync for BoxShadow
impl Unpin for BoxShadow
impl UnsafeUnpin for BoxShadow
impl UnwindSafe for BoxShadow
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