FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SystemBackdropController

    struct · ferroui-base · v0.5.0

    struct SystemBackdropController
    

    A system backdrop controller: the shared implementation of MicaController and DesktopAcrylicController.

    View source

    Members

    colors

    fn colors(self: &Self) -> SystemBackdropColors
    

    The colours in effect: the ones set, else the defaults.

    Source

    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.

    Source

    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.

    Source

    remove_all_system_backdrop_targets

    fn remove_all_system_backdrop_targets(self: &Self)
    

    RemoveAllSystemBackdropTargets.

    Source

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

    Source

    state

    fn state(self: &Self) -> SystemBackdropState
    

    The state of the controller (State, Windows App SDK 1.3).

    Source

    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.

    Source

    target_state

    fn target_state(self: &Self, target: &Rc<dyn ICompositionSupportsSystemBackdrop>) -> SystemBackdropState
    

    The state the controller is in for target.

    Source

    tint_color

    fn tint_color(self: &Self) -> Color
    

    TintColor.

    Source

    set_tint_color

    fn set_tint_color(self: &Self, value: Color)
    

    Source

    tint_opacity

    fn tint_opacity(self: &Self) -> f32
    

    TintOpacity.

    Source

    set_tint_opacity

    fn set_tint_opacity(self: &Self, value: f32)
    

    Source

    luminosity_opacity

    fn luminosity_opacity(self: &Self) -> f32
    

    LuminosityOpacity.

    Source

    set_luminosity_opacity

    fn set_luminosity_opacity(self: &Self, value: f32)
    

    Source

    fallback_color

    fn fallback_color(self: &Self) -> Color
    

    FallbackColor.

    Source

    set_fallback_color

    fn set_fallback_color(self: &Self, value: Color)
    

    Source

    reset_properties

    fn reset_properties(self: &Self)
    

    ResetProperties: the colours go back to the defaults of the kind and theme.

    Source

    close

    fn close(self: &Self)
    

    Close: the targets are released and the controller does nothing more.

    Source

    is_closed

    fn is_closed(self: &Self) -> bool
    

    Whether the controller is closed.

    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

    Availability

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