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.
Members
newis_input_activeset_is_input_activethemeset_themeis_high_contrastset_is_high_contrasthigh_contrast_background_colorset_high_contrast_background_colorchanged
new
fn new() -> Rc<SystemBackdropConfiguration>
A configuration: not active, the default theme, no high contrast.
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.
set_is_input_active
fn set_is_input_active(self: &Self, value: bool)
theme
fn theme(self: &Self) -> SystemBackdropTheme
Theme.
set_theme
fn set_theme(self: &Self, value: SystemBackdropTheme)
is_high_contrast
fn is_high_contrast(self: &Self) -> bool
IsHighContrast: the material shows the high contrast background
colour.
set_is_high_contrast
fn set_is_high_contrast(self: &Self, value: bool)
high_contrast_background_color
fn high_contrast_background_color(self: &Self) -> Option<Color>
HighContrastBackgroundColor: the colour shown in high contrast
(None: the fallback colour).
set_high_contrast_background_color
fn set_high_contrast_background_color(self: &Self, value: Option<Color>)
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.