pub struct Backdrop {
pub blur: f32,
pub dim: Color,
pub noise: f32,
pub radius: f32,
pub mask: Option<Mask>,
}Fields§
§blur: f32§dim: Color§noise: f32§radius: f32§mask: Option<Mask>Implementations§
Source§impl Backdrop
impl Backdrop
pub const NONE: Self
pub const XS: Self
pub const SM: Self
pub const MD: Self
pub const fn blur(radius: f32) -> Self
pub fn blur_radius(self, radius: f32) -> Self
pub const fn dim(self, color: Color) -> Self
pub const fn noise(self, amount: f32) -> Self
pub const fn radius(self, radius: f32) -> Self
pub fn mask(self, mask: Mask) -> Self
pub fn is_empty(self) -> bool
pub fn blur_px(self) -> f32
pub fn span_mask(&self) -> SpanMask
Trait Implementations§
impl Copy for Backdrop
impl StructuralPartialEq for Backdrop
Auto Trait Implementations§
impl Freeze for Backdrop
impl RefUnwindSafe for Backdrop
impl Send for Backdrop
impl Sync for Backdrop
impl Unpin for Backdrop
impl UnsafeUnpin for Backdrop
impl UnwindSafe for Backdrop
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