Class

PhocGestureZoom

[]

Description [src]

class Phoc.GestureZoom : Phoc.Gesture
{
  /* No available fields */
}

A zoom gesture

PhocGestureZoom is a PhocGesture implementation able to recognize pinch/zoom gestures, whenever the distance between both tracked sequences changes, the PhocGestureZoom::scale-changed signal is emitted to report the scale factor.

[]

Constructors

phoc_gesture_zoom_new

Returns a newly created PhocGesture that recognizes zoom in/out gestures (usually known as pinch/zoom).

[]

Instance methods

phoc_gesture_zoom_get_scale_delta

If gesture is active, this function returns the zooming difference since the gesture was recognized (hence the starting point is considered 1:1). If gesture is not active, 1 is returned.

Methods inherited from PhocGesture (15)
Methods inherited from GObject (43)
[]

Properties

Properties inherited from PhocGesture (1)
[]

Signals

Phoc.GestureZoom::scale-changed

This signal is emitted whenever the distance between both tracked sequences changes.

Signals inherited from PhocGesture (5)
Signals inherited from GObject (1)

Class structure

[]

Virtual methods

Phoc.GestureZoomClass.scale_changed
No description available.