pub trait RotateActionExt: 'static {
// Required method
fn connect_rotate<F: Fn(&Self, &Actor, f64) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId;
}
Expand description
Required Methods§
Sourcefn connect_rotate<F: Fn(&Self, &Actor, f64) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_rotate<F: Fn(&Self, &Actor, f64) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
The ::rotate signal is emitted when a rotate gesture is recognized on the attached actor and when the gesture is cancelled (in this case with an angle value of 0).
§actor
the Actor
attached to the action
§angle
the difference of angle of rotation between the initial rotation and the current rotation
§Returns
true
if the rotation should continue, and false
if
the rotation should be cancelled.
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.