pub struct BoxShadow {
pub offset_x: Length,
pub offset_y: Length,
pub blur: Length,
pub spread: Length,
pub color: Option<Color>,
pub inset: bool,
}Expand description
A box-shadow CSS value.
Fields§
§offset_x: LengthHorizontal offset of the shadow.
offset_y: LengthVertical offset of the shadow.
blur: LengthBlur radius of the shadow.
spread: LengthSpread radius of the shadow (positive grows, negative shrinks).
color: Option<Color>Shadow color. None is equivalent to currentcolor.
inset: boolInset shadows are currently unsupported.
Trait Implementations§
impl Copy for BoxShadow
impl Eq for BoxShadow
impl StructuralPartialEq 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
impl<T> Brush for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.