SystemBackdropController
struct · ferroui-base · v0.5.0
struct SystemBackdropController
A system backdrop controller: the shared implementation of
MicaController and DesktopAcrylicController.
Members
colorsadd_system_backdrop_targetremove_system_backdrop_targetremove_all_system_backdrop_targetsset_system_backdrop_configurationstatestate_changedtarget_statetint_colorset_tint_colortint_opacityset_tint_opacityluminosity_opacityset_luminosity_opacityfallback_colorset_fallback_colorreset_propertiescloseis_closed
colors
fn colors(self: &Self) -> SystemBackdropColors
The colours in effect: the ones set, else the defaults.
add_system_backdrop_target
fn add_system_backdrop_target(self: &Self, target: Rc<dyn ICompositionSupportsSystemBackdrop>) -> bool
AddSystemBackdropTarget: returns false when the target is already
one or the controller is closed.
remove_system_backdrop_target
fn remove_system_backdrop_target(self: &Self, target: &Rc<dyn ICompositionSupportsSystemBackdrop>) -> bool
RemoveSystemBackdropTarget: the target shows nothing of the
controller any more.
remove_all_system_backdrop_targets
fn remove_all_system_backdrop_targets(self: &Self)
RemoveAllSystemBackdropTargets.
set_system_backdrop_configuration
fn set_system_backdrop_configuration(self: &Self, configuration: Option<Rc<SystemBackdropConfiguration>>)
SetSystemBackdropConfiguration: the policy the controller follows
(None: active, the theme of the platform).
state
fn state(self: &Self) -> SystemBackdropState
The state of the controller (State, Windows App SDK 1.3).
state_changed
fn state_changed(self: &Self, handler: impl Fn(SystemBackdropState) -> () + 'static) -> Subscription
StateChanged. Dropping the returned guard removes the handler;
Subscription::detach keeps it for the life of the controller.
target_state
fn target_state(self: &Self, target: &Rc<dyn ICompositionSupportsSystemBackdrop>) -> SystemBackdropState
The state the controller is in for target.
tint_color
fn tint_color(self: &Self) -> Color
TintColor.
set_tint_color
fn set_tint_color(self: &Self, value: Color)
tint_opacity
fn tint_opacity(self: &Self) -> f32
TintOpacity.
set_tint_opacity
fn set_tint_opacity(self: &Self, value: f32)
luminosity_opacity
fn luminosity_opacity(self: &Self) -> f32
LuminosityOpacity.
set_luminosity_opacity
fn set_luminosity_opacity(self: &Self, value: f32)
fallback_color
fn fallback_color(self: &Self) -> Color
FallbackColor.
set_fallback_color
fn set_fallback_color(self: &Self, value: Color)
reset_properties
fn reset_properties(self: &Self)
ResetProperties: the colours go back to the defaults of the kind
and theme.
close
fn close(self: &Self)
Close: the targets are released and the controller does nothing
more.
is_closed
fn is_closed(self: &Self) -> bool
Whether the controller is closed.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.