FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

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

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<DisposingTrigger>
    

    Returns a strong reference to this object.

    Source

    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.

    Source

    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.

    Source

    Trait implementations

    Availability

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