pub struct CompositionBackdropBrush(/* private fields */);Expand description
A brush that shows what is behind the visual that paints it (WinUI
Microsoft.UI.Composition.CompositionBackdropBrush), made by
Compositor::create_backdrop_brush; usually the source of an effect
brush (a blurred backdrop).
The compositor draws again what was drawn under the visual: the tree of the window from its root up to the visual, cut to the area of the brush (winui-materials.md, the backdrop).
Implementations§
Source§impl CompositionBackdropBrush
impl CompositionBackdropBrush
Sourcepub fn from_brush(
brush: &Rc<CompositionBrush>,
) -> Option<CompositionBackdropBrush>
pub fn from_brush( brush: &Rc<CompositionBrush>, ) -> Option<CompositionBackdropBrush>
The handle of brush as a backdrop brush, if it is one.
Trait Implementations§
Source§impl Clone for CompositionBackdropBrush
impl Clone for CompositionBackdropBrush
Source§impl Deref for CompositionBackdropBrush
impl Deref for CompositionBackdropBrush
Source§type Target = Rc<CompositionBrush>
type Target = Rc<CompositionBrush>
The resulting type after dereferencing.
Source§fn deref(&self) -> &Rc<CompositionBrush>
fn deref(&self) -> &Rc<CompositionBrush>
Dereferences the value.
Auto Trait Implementations§
impl !RefUnwindSafe for CompositionBackdropBrush
impl !Send for CompositionBackdropBrush
impl !Sync for CompositionBackdropBrush
impl !UnwindSafe for CompositionBackdropBrush
impl Freeze for CompositionBackdropBrush
impl Unpin for CompositionBackdropBrush
impl UnsafeUnpin for CompositionBackdropBrush
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more