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.
Members
system_backdrop
fn system_backdrop(self: &Self) -> Option<Rc<CompositionBrush>>
SystemBackdrop: the brush the target draws under its content.
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).
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).
compositor
fn compositor(self: &Self) -> Option<Rc<Compositor>>
The compositor the target draws with.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.