References
Libraries
Superclasses: Gesture, EventController, Object
Gesture
EventController
Object
GestureZoom(**properties) new() -> Gtk.Gesture
Returns a newly created GtkGesture that recognizes pinch/zoom gestures.
GtkGesture
Gets the 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.
gesture
Emitted whenever the distance between both tracked sequences changes.
scale – Scale delta, taking the initial state as 1:1
GestureZoom.new()
GestureZoom.get_scale_delta()
GestureZoom.signals.scale_changed()