FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompositionHostBackdropBrush

    struct · ferroui-base · v0.5.0

    struct CompositionHostBackdropBrush
    

    A brush that shows what is behind the window (WinUI Microsoft.UI.Composition.CompositionHostBackdropBrush), made by Compositor::create_host_backdrop_brush.

    In a window the platform composes over the desktop (a transparency level other than none) the area of the brush is made transparent, so what is behind the window shows; the platform blurs it when the window has the blur or acrylic level. In an opaque window the brush paints nothing (winui-materials.md).

    View source

    Members

    from_brush

    fn from_brush(brush: &Rc<CompositionBrush>) -> Option<CompositionHostBackdropBrush>
    

    The handle of brush as a host backdrop brush, if it is one.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Deref

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.