FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ICompositionSupportsSystemBackdrop

    trait · ferroui-base · v0.5.0

    trait ICompositionSupportsSystemBackdrop
    

    A target of a system backdrop (WinUI Microsoft.UI.Composition.ICompositionSupportsSystemBackdrop): a window, or a popup window. FerroUI's windows implement it.

    View source

    Members

    system_backdrop

    fn system_backdrop(self: &Self) -> Option<Rc<CompositionBrush>>
    

    SystemBackdrop: the brush the target draws under its content.

    Source

    set_system_backdrop

    fn set_system_backdrop(self: &Self, brush: Option<Rc<CompositionBrush>>)
    

    Sets the brush the target draws under its content (None draws nothing, so what the platform draws behind the window shows).

    Source

    try_set_platform_system_backdrop

    fn try_set_platform_system_backdrop(self: &Self, _backdrop: Option<&PlatformSystemBackdrop>) -> SystemBackdropSupport
    

    Asks the platform to draw backdrop behind the target (None removes it) and says how the target can show it (a FerroUI addition).

    Source

    compositor

    fn compositor(self: &Self) -> Option<Rc<Compositor>>
    

    The compositor the target draws with.

    Source

    Availability

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