FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<SystemBackdrop>
    

    Returns a strong reference to this object.

    Source

    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.

    Source

    on_target_disconnected

    fn on_target_disconnected(self: &Self, disconnected_target: &Rc<dyn ICompositionSupportsSystemBackdrop>)
    

    OnTargetDisconnected.

    Source

    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.

    Source

    construct

    fn construct() -> Self
    

    Source

    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).

    Source

    Trait implementations

    Availability

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