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.
Members
new
fn new() -> Rc<Self>
Creates a lifetime base without handlers.
on_activated_kind
fn on_activated_kind(self: &Self, kind: ActivationKind)
Raises the activated event with arguments of the given kind.
on_activated
fn on_activated(self: &Self, event_args: ActivatedEventArgs)
Raises the activated event.
on_deactivated_kind
fn on_deactivated_kind(self: &Self, kind: ActivationKind)
Raises the deactivated event with arguments of the given kind.
on_deactivated
fn on_deactivated(self: &Self, event_args: ActivatedEventArgs)
Raises the deactivated event.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherIActivatableLifetime
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.