Class

GtkGestureZoom

[]

Description [src]

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

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

[]

Hierarchy

hierarchy this GtkGestureZoom ancestor_0 GtkGesture ancestor_0--this ancestor_1 GtkEventController ancestor_1--ancestor_0 ancestor_2 GObject ancestor_2--ancestor_1
[]

Constructors

gtk_gesture_zoom_new

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

since: 3.14

[]

Instance methods

gtk_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.

since: 3.14

Methods inherited from GtkGesture (19)
Methods inherited from GtkEventController (5)
Methods inherited from GObject (43)
[]

Properties

Properties inherited from GtkGesture (2)
Properties inherited from GtkEventController (2)
[]

Signals

Gtk.GestureZoom::scale-changed

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

since: 3.14

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

Class structure