GestureZoom
-
class GestureZoom(**properties: Any)
Superclasses: Gesture
, EventController
, Object
GtkGestureZoom
is a GtkGesture
for 2-finger pinch/zoom gestures.
Whenever the distance between both tracked sequences changes, the
scale_changed
signal is emitted to report
the scale factor.
Constructors
-
class GestureZoom
-
classmethod new() → Gesture
Returns a newly created GtkGesture
that recognizes
pinch/zoom gestures.
Methods
-
class GestureZoom
-
get_scale_delta() → float
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.
Signals
-
class GestureZoom.signals
-
scale_changed(scale: float) → None
The type of the None singleton.
- Parameters:
scale – Scale delta, taking the initial state as 1:1