Trait animate::RotateActionExt[][src]

pub trait RotateActionExt: 'static {
    fn connect_rotate<F: Fn(&Self, &Actor, f64) -> bool + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all RotateAction methods.

Implementors

RotateAction

Required methods

fn connect_rotate<F: Fn(&Self, &Actor, f64) -> bool + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

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.

Loading content...

Implementors

impl<O: IsA<RotateAction>> RotateActionExt for O[src]

Loading content...