Class
ClutterZoomAction
[−]
Description [src]
class Clutter.ZoomAction : Clutter.GestureAction
{
/* No available fields */
}
Action enabling zooming on actors
ClutterZoomAction
is a sub-class of ClutterGestureAction
that
implements all the necessary logic for zooming actors using a “pinch”
gesture between two touch points.
The simplest usage of ClutterZoomAction
consists in adding it to
a ClutterActor
and setting it as reactive; for instance, the following code:
clutter_actor_add_action (actor, clutter_zoom_action_new ());
clutter_actor_set_reactive (actor, TRUE);
will automatically result in the actor to be scale according to the distance between two touch points.
[−]
Instance methods
clutter_zoom_action_get_transformed_focal_point
Retrieves the focal point relative to the actor’s coordinates of the current zoom.
[+]
Methods inherited from ClutterGestureAction (16)
[+]
Methods inherited from ClutterAction (1)
[+]
Methods inherited from ClutterActorMeta (5)
[−]
Properties
[+]
Properties inherited from ClutterGestureAction (4)
[+]
Properties inherited from ClutterActorMeta (3)
[−]
Signals
Clutter.ZoomAction::zoom
The signal is emitted for each series of touch events that change the distance and focal point between the touch points.
[+]
Signals inherited from ClutterGestureAction (4)
[+]