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: Backdrop
pub const XS: Backdrop
pub const SM: Backdrop
pub const MD: Backdrop
pub const fn blur(radius: f32) -> Backdrop
pub fn blur_radius(self, radius: f32) -> Backdrop
pub const fn dim(self, color: Color) -> Backdrop
pub const fn noise(self, amount: f32) -> Backdrop
pub const fn radius(self, radius: f32) -> Backdrop
pub fn mask(self, mask: Mask) -> Backdrop
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