DisposingTrigger
struct · ferroui-xaml-interactivity · v0.5.0
struct DisposingTrigger
A base class for triggers that require a disposable resource: the resource
on_attached_override creates is disposed when
the trigger is detached.
The class is abstract. The type argument T of the reference is the runtime type passed to
construct (see BehaviorOfT).
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<DisposingTrigger>
Returns a strong reference to this object.
on_attached_override
fn on_attached_override(self: &Self) -> Rc<dyn IDisposable>
Called after the trigger is attached to the associated object.
Returns a disposable resource to be disposed when the trigger is detached.
construct
fn construct(associated_type: &'static TypeInfo) -> Self
Creates the class data for triggers attached to objects of associated_type; see
ferroui_base::FerroObject::construct.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeStyledElementBehaviorImplExtDisposingTriggerImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<DisposingTrigger>StaticTypeObjectTypeSubclassable<T>FerroObjectImplStyledElementImplDisposingTriggerImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.