pub struct BackdropBlurEffect {
pub radius: Pixels,
pub tint: Hsla,
}Expand description
Options for Window::paint_backdrop_blur_rect.
Fields§
§radius: PixelsApproximate uniform backdrop blur radius in logical pixels, matching the
CSS backdrop-filter: blur(<length>) radius.
Non-positive values are treated as zero. Renderers may clamp large radii to a fixed implementation limit.
tint: HslaTint color composited over the blurred backdrop.
CSS models the element’s own background-color as a separate paint over
the filtered backdrop, so callers implementing backdrop-filter should
leave this transparent and paint a normal quad instead.
Implementations§
Trait Implementations§
Source§impl Clone for BackdropBlurEffect
impl Clone for BackdropBlurEffect
impl Copy for BackdropBlurEffect
Source§impl Debug for BackdropBlurEffect
impl Debug for BackdropBlurEffect
Auto Trait Implementations§
impl Forget for BackdropBlurEffect
impl Freeze for BackdropBlurEffect
impl Move for BackdropBlurEffect
impl RefUnwindSafe for BackdropBlurEffect
impl Send for BackdropBlurEffect
impl Sync for BackdropBlurEffect
impl Unpin for BackdropBlurEffect
impl UnsafeUnpin for BackdropBlurEffect
impl UnwindSafe for BackdropBlurEffect
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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