SystemBackdrop
struct · ferroui-controls · v0.5.0
struct SystemBackdrop
The base of the system backdrops of the object model (WinUI
Microsoft.UI.Xaml.Media.SystemBackdrop): set on a window
(TopLevel::system_backdrop), it
is connected to the window as its target
(on_target_connected) and
keeps a default configuration of the target up to date: the theme of
the window, the high contrast setting of the platform and whether the
window is active.
Members
TYPEto_refon_target_connectedon_target_disconnectedon_default_system_backdrop_configuration_changedconstructget_default_system_backdrop_configuration
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<SystemBackdrop>
Returns a strong reference to this object.
on_target_connected
fn on_target_connected(self: &Self, connected_target: &Rc<dyn ICompositionSupportsSystemBackdrop>, xaml_root: &TopLevel)
OnTargetConnected: the backdrop was set on xaml_root, whose
target is connected_target.
on_target_disconnected
fn on_target_disconnected(self: &Self, disconnected_target: &Rc<dyn ICompositionSupportsSystemBackdrop>)
OnTargetDisconnected.
on_default_system_backdrop_configuration_changed
fn on_default_system_backdrop_configuration_changed(self: &Self, target: &Rc<dyn ICompositionSupportsSystemBackdrop>, xaml_root: &TopLevel)
OnDefaultSystemBackdropConfigurationChanged: the theme, the
high contrast or the activation of the target changed.
construct
fn construct() -> Self
get_default_system_backdrop_configuration
fn get_default_system_backdrop_configuration(self: &Self, target: &Rc<dyn ICompositionSupportsSystemBackdrop>, _xaml_root: Option<&TopLevel>) -> Option<Rc<SystemBackdropConfiguration>>
GetDefaultSystemBackdropConfiguration: the configuration the
backdrop keeps for target (None for a target it is not
connected to).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeSystemBackdropImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<SystemBackdrop>StaticTypeObjectTypeSubclassable<T>FerroObjectImplSystemBackdropImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.