Trait components::RotateActionExt[][src]

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

Trait containing all RotateAction methods.

Implementors

RotateAction

Required methods

pub fn connect_rotate<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self, &Actor, f64) -> bool
[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> RotateActionExt for O where
    O: IsA<RotateAction>, 
[src]

Loading content...