FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SystemBackdropConfiguration

    struct · ferroui-base · v0.5.0

    struct SystemBackdropConfiguration
    

    The policy of a system backdrop (WinUI SystemBackdropConfiguration): whether its window is active, its theme and the high contrast state. The XAML SystemBackdrop keeps one per target up to date.

    View source

    Members

    new

    fn new() -> Rc<SystemBackdropConfiguration>
    

    A configuration: not active, the default theme, no high contrast.

    Source

    is_input_active

    fn is_input_active(self: &Self) -> bool
    

    IsInputActive: whether the window of the target has the input; an inactive window shows the fallback colour.

    Source

    set_is_input_active

    fn set_is_input_active(self: &Self, value: bool)
    

    Source

    theme

    fn theme(self: &Self) -> SystemBackdropTheme
    

    Theme.

    Source

    set_theme

    fn set_theme(self: &Self, value: SystemBackdropTheme)
    

    Source

    is_high_contrast

    fn is_high_contrast(self: &Self) -> bool
    

    IsHighContrast: the material shows the high contrast background colour.

    Source

    set_is_high_contrast

    fn set_is_high_contrast(self: &Self, value: bool)
    

    Source

    high_contrast_background_color

    fn high_contrast_background_color(self: &Self) -> Option<Color>
    

    HighContrastBackgroundColor: the colour shown in high contrast (None: the fallback colour).

    Source

    set_high_contrast_background_color

    fn set_high_contrast_background_color(self: &Self, value: Option<Color>)
    

    Source

    changed

    fn changed(self: &Self, handler: impl Fn() -> () + 'static) -> Subscription
    

    Raised when a member changes. Dropping the returned guard removes the handler; Subscription::detach keeps it for the life of the configuration.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither
    • Default

    Availability

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