pub struct ShadowSpec {
pub blur_radius: f32,
pub offset_y: f32,
pub color: Color,
}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_y is the vertical offset of the shadow in dp
(positive = below the layer). color is the shadow color (premultiplied
alpha controls shadow darkness).
Fields§
§blur_radius: f32§offset_y: f32§color: ColorTrait Implementations§
Source§impl Clone for ShadowSpec
impl Clone for ShadowSpec
Source§fn clone(&self) -> ShadowSpec
fn clone(&self) -> ShadowSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShadowSpec
Auto Trait Implementations§
impl Freeze 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