pub struct GlassShadow {
pub color: Color,
pub radius: f32,
pub offset_y: f32,
pub spread: f32,
}Expand description
Shadow owned by a glass surface. Morphing glass evaluates the same live SDF for this shadow; clipped static glass forwards the values to the layer shadow primitive.
Fields§
§color: ColorThe color of the shadow. Its alpha sets the opacity.
radius: f32The blur radius of the shadow, in dp.
offset_y: f32The vertical offset of the shadow, in dp. A positive value moves it down.
spread: f32How far the shadow shape grows past the surface outline, in dp.
Implementations§
Trait Implementations§
Source§impl Clone for GlassShadow
impl Clone for GlassShadow
impl Copy for GlassShadow
Source§impl Debug for GlassShadow
impl Debug for GlassShadow
Source§impl PartialEq for GlassShadow
impl PartialEq for GlassShadow
impl StructuralPartialEq for GlassShadow
Auto Trait Implementations§
impl Freeze for GlassShadow
impl RefUnwindSafe for GlassShadow
impl Send for GlassShadow
impl Sync for GlassShadow
impl Unpin for GlassShadow
impl UnsafeUnpin for GlassShadow
impl UnwindSafe for GlassShadow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more