FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BehaviorImpl

    trait · ferroui-xaml-interactivity · v0.5.0

    trait BehaviorImpl: FerroObjectImpl + $crate::Upcast<Behavior>
    

    The overridable members introduced by the class.

    View source

    Members

    on_attached

    fn on_attached(this: &Self)
    

    Called after the behavior is attached to the associated object.

    Override this to hook up functionality to the associated object.

    Source

    on_detaching

    fn on_detaching(this: &Self)
    

    Called when the behavior is being detached from its associated object.

    Override this to unhook functionality from the associated object.

    Source

    on_attached_to_visual_tree

    fn on_attached_to_visual_tree(this: &Self)
    

    Called after the associated object is attached to the visual tree.

    Invoked only when the associated object is a visual.

    Source

    on_detached_from_visual_tree

    fn on_detached_from_visual_tree(this: &Self)
    

    Called when the associated object is being detached from the visual tree.

    Invoked only when the associated object is a visual.

    Source

    on_attached_to_logical_tree_event

    fn on_attached_to_logical_tree_event(this: &Self)
    

    Called after the associated object is attached to the logical tree (OnAttachedToLogicalTree).

    Invoked only when the associated object is a styled element.

    Source

    on_detached_from_logical_tree_event

    fn on_detached_from_logical_tree_event(this: &Self)
    

    Called when the associated object is being detached from the logical tree (OnDetachedFromLogicalTree).

    Invoked only when the associated object is a styled element.

    Source

    on_loaded

    fn on_loaded(this: &Self)
    

    Called after the associated object is loaded.

    Invoked only when the associated object is a control.

    Source

    on_unloaded

    fn on_unloaded(this: &Self)
    

    Called when the associated object is unloaded.

    Invoked only when the associated object is a control.

    Source

    on_initialized_event

    fn on_initialized_event(this: &Self)
    

    Called when the associated object is initialized.

    Invoked only when the associated object is a styled element.

    Source

    on_data_context_changed_event

    fn on_data_context_changed_event(this: &Self)
    

    Called when the data context of the associated object changed.

    Invoked only when the associated object is a styled element.

    Source

    on_resources_changed_event

    fn on_resources_changed_event(this: &Self)
    

    Called when the resources of the associated object changed.

    Invoked only when the associated object is a styled element.

    Source

    on_actual_theme_variant_changed_event

    fn on_actual_theme_variant_changed_event(this: &Self)
    

    Called when the actual theme variant of the associated object changed.

    Invoked only when the associated object is a styled element.

    Source

    Trait implementations

    Availability

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