FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ActivatableLifetimeBase

    struct · ferroui-controls · v0.5.0

    struct ActivatableLifetimeBase
    

    The base of the activatable lifetimes of the platforms: it owns the activated and deactivated events and raises them on the UI thread.

    A platform lifetime holds one of these, forwards its IActivatableLifetime events to it and provides its own try_leave_background / try_enter_background; used on its own, both requests are refused.

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Creates a lifetime base without handlers.

    Source

    on_activated_kind

    fn on_activated_kind(self: &Self, kind: ActivationKind)
    

    Raises the activated event with arguments of the given kind.

    Source

    on_activated

    fn on_activated(self: &Self, event_args: ActivatedEventArgs)
    

    Raises the activated event.

    Source

    on_deactivated_kind

    fn on_deactivated_kind(self: &Self, kind: ActivationKind)
    

    Raises the deactivated event with arguments of the given kind.

    Source

    on_deactivated

    fn on_deactivated(self: &Self, event_args: ActivatedEventArgs)
    

    Raises the deactivated event.

    Source

    Trait implementations

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

    Availability

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