Gtk.GestureZoom
Gtk.GestureZoom — Zoom gesture
Object Hierarchy:
GObject
╰── Gtk.EventController
╰── Gtk.Gesture
╰── Gtk.GestureZoom
Functions:
- new
(widget:Gtk.Widget) -> Gtk.Gesture
- get_scale_delta
(self) -> float
Description:
Gtk.GestureZoom
is a GtkGesture implementation able to recognize pinch/zoom gestures, whenever the distance between both tracked sequences changes, the Gtk.GestureZoom::scale
-changed signal is emitted to report the scale factor.
Function Details:
new()
new (widget:Gtk.Widget) -> Gtk.Gesture
Returns a newly created Gtk.Gesture
that recognizes zoomin/out gestures (usually known as pinch/zoom).
Returns: a newly created Gtk.GestureZoom
Since: 3.14
get_scale_delta()
get_scale_delta (self) -> float
If gesture
is active, this function returns the zooming differencesince the gesture was recognized (hence the starting point isconsidered 1:1). If gesture
is not active, 1 is returned.
Returns: the scale delta
Since: 3.14