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.

[]

Hierarchy

hierarchy this ClutterZoomAction ancestor_0 ClutterGestureAction ancestor_0--this ancestor_1 ClutterAction ancestor_1--ancestor_0 ancestor_2 ClutterActorMeta ancestor_2--ancestor_1 ancestor_3 GInitiallyUnowned ancestor_3--ancestor_2 ancestor_4 GObject ancestor_4--ancestor_3
[]

Constructors

clutter_zoom_action_new

Creates a new ClutterZoomAction instance.

[]

Instance methods

clutter_zoom_action_get_focal_point

Retrieves the focal point of the current zoom.

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)
Methods inherited from GObject (43)
[]

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)
Signals inherited from GObject (1)

Class structure