pub struct ShadowSpec {
pub blur_radius: Dp,
pub offset_x: Dp,
pub offset_y: Dp,
pub color: Color,
pub spread: Dp,
pub inset: bool,
}Expand description
Drop-shadow parameters applied to a graphics layer.
blur_radius is the Gaussian blur radius in Dp (1.0 = subtle, 8.0 = soft,
16.0 = very diffuse). offset_x/offset_y are the shadow offsets in Dp.
spread grows (or, when negative, shrinks) the silhouette before blurring.
inset draws the shadow inside the silhouette (Compose inner shadow).
color is the shadow color (alpha controls shadow darkness).
Fields§
§blur_radius: Dp§offset_x: Dp§offset_y: Dp§color: Color§spread: Dp§inset: boolTrait Implementations§
Auto Trait Implementations§
impl Forget for ShadowSpec
impl Freeze for ShadowSpec
impl Move for ShadowSpec
impl RefUnwindSafe for ShadowSpec
impl Send for ShadowSpec
impl Sync for ShadowSpec
impl Unpin for ShadowSpec
impl UnsafeUnpin for ShadowSpec
impl UnwindSafe for ShadowSpec
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