pub struct BoxShadow {
pub offset_x: Points,
pub offset_y: Points,
pub blur: Points,
pub spread: Points,
pub color: Color,
pub inset: bool,
}Expand description
One layer of boxShadow (CSS box-shadow).
Fields§
§offset_x: PointsHorizontal offset.
offset_y: PointsVertical offset.
blur: PointsBlur radius (CSS: twice the Gaussian’s standard deviation).
spread: PointsHow far the shadow’s shape grows (negative: shrinks).
color: ColorColor.
inset: boolDrawn inside the box, over the background.
Implementations§
Trait Implementations§
impl Copy for BoxShadow
impl StructuralPartialEq for BoxShadow
Auto Trait Implementations§
impl Forget for BoxShadow
impl Freeze for BoxShadow
impl Move 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