pub struct ShadowLayerStyle {
pub color: Color,
pub offset_x: Px,
pub offset_y: Px,
pub blur: Px,
pub spread: Px,
}Expand description
One box-shadow layer (CSS-style) for component-level elevation recipes.
This is renderer-friendly: runtimes can approximate blur by drawing multiple expanded quads with alpha falloff (ADR 0060) until we have a true blur pipeline.
Fields§
§color: Color§offset_x: Px§offset_y: Px§blur: PxBlur radius in pixels.
spread: PxSpread radius in pixels (can be negative).
Trait Implementations§
Source§impl Clone for ShadowLayerStyle
impl Clone for ShadowLayerStyle
Source§fn clone(&self) -> ShadowLayerStyle
fn clone(&self) -> ShadowLayerStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShadowLayerStyle
impl Debug for ShadowLayerStyle
Source§impl PartialEq for ShadowLayerStyle
impl PartialEq for ShadowLayerStyle
impl Copy for ShadowLayerStyle
impl StructuralPartialEq for ShadowLayerStyle
Auto Trait Implementations§
impl Freeze for ShadowLayerStyle
impl RefUnwindSafe for ShadowLayerStyle
impl Send for ShadowLayerStyle
impl Sync for ShadowLayerStyle
impl Unpin for ShadowLayerStyle
impl UnsafeUnpin for ShadowLayerStyle
impl UnwindSafe for ShadowLayerStyle
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