animate::prelude

Trait TapActionExt

Source
pub trait TapActionExt: 'static {
    // Required method
    fn connect_tap<F: Fn(&Self, &Actor) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
}
Expand description

Trait containing all TapAction methods.

§Implementors

TapAction

Required Methods§

Source

fn connect_tap<F: Fn(&Self, &Actor) + 'static>(&self, f: F) -> SignalHandlerId

The ::tap signal is emitted when the tap gesture is complete.

§actor

the Actor attached to the action

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§