pub struct GlassMaterial {
pub blur_radius: Dp,
pub tint: Color,
pub shape: RoundedCornerShape,
}Expand description
Visual parameters for Modifier::glass_material.
Fields§
§blur_radius: DpRadius of the blur applied to what is behind the node.
tint: ColorColor drawn over the blurred backdrop as the node’s background.
shape: RoundedCornerShapeRounded corners that clip the blur and the tint.
Implementations§
Source§impl GlassMaterial
impl GlassMaterial
Sourcepub fn new(blur_radius: Dp, tint: Color, shape: RoundedCornerShape) -> Self
pub fn new(blur_radius: Dp, tint: Color, shape: RoundedCornerShape) -> Self
Creates a material from its blur radius, tint and shape.
Trait Implementations§
Source§impl Clone for GlassMaterial
impl Clone for GlassMaterial
impl Copy for GlassMaterial
Source§impl Debug for GlassMaterial
impl Debug for GlassMaterial
Source§impl PartialEq for GlassMaterial
impl PartialEq for GlassMaterial
impl StructuralPartialEq for GlassMaterial
Auto Trait Implementations§
impl Freeze for GlassMaterial
impl RefUnwindSafe for GlassMaterial
impl Send for GlassMaterial
impl Sync for GlassMaterial
impl Unpin for GlassMaterial
impl UnsafeUnpin for GlassMaterial
impl UnwindSafe for GlassMaterial
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