AttachedToVisualTreeTriggerBase
struct · ferroui-xaml-interactions-custom · v0.5.0
struct AttachedToVisualTreeTriggerBase
A trigger that executes when the associated object is attached to the visual tree.
The resource on_attached_to_visual_tree_override
creates each time the associated object is attached to the visual tree is disposed when it
leaves the visual tree or the trigger is detached.
The class is abstract. The type argument T of the reference (a visual) 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<AttachedToVisualTreeTriggerBase>
Returns a strong reference to this object.
on_attached_to_visual_tree_override
fn on_attached_to_visual_tree_override(self: &Self) -> Rc<dyn IDisposable>
Called after the associated object is attached to the visual tree.
Returns a resource disposed when the associated object leaves the visual tree or the trigger is detached.
construct
fn construct(associated_type: &'static TypeInfo) -> Self
Creates the class data for triggers attached to visuals of associated_type (the T of
the reference); see ferroui_base::FerroObject::construct.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAttachedToVisualTreeTriggerBaseImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDisposingTriggerImplExtDerefUpcast<T>Upcast<AttachedToVisualTreeTriggerBase>StaticTypeObjectTypeSubclassable<T>FerroObjectImplStyledElementImplAttachedToVisualTreeTriggerBaseImplDisposingTriggerImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.