Gtk.GestureZoom¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Gesture (19), Gtk.EventController (5), GObject.Object (37)
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
This signal is emitted whenever the distance between both tracked sequences changes. |
Fields¶
- Inherited:
Class Details¶
- class Gtk.GestureZoom(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Gtk.GestureZoom
is aGtk.Gesture
implementation able to recognize pinch/zoom gestures, whenever the distance between both tracked sequences changes, theGtk.GestureZoom
::scale-changed
signal is emitted to report the scale factor.- classmethod new(widget)[source]¶
- Parameters:
widget (
Gtk.Widget
) – aGtk.Widget
- Returns:
a newly created
Gtk.GestureZoom
- Return type:
Returns a newly created
Gtk.Gesture
that recognizes zoom in/out gestures (usually known as pinch/zoom).New in version 3.14.
Signal Details¶
- Gtk.GestureZoom.signals.scale_changed(gesture_zoom, scale)¶
- Signal Name:
scale-changed
- Flags:
- Parameters:
gesture_zoom (
Gtk.GestureZoom
) – The object which received the signalscale (
float
) – Scale delta, taking the initial state as 1:1
This signal is emitted whenever the distance between both tracked sequences changes.
New in version 3.14.