Returns a newly created #GtkGesture that recognizes zoom in/out gestures (usually known as pinch/zoom).
Connect to ScaleChanged signal.
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.
Returns this, for use in with statements.
Get builder for gtk.gesture_zoom.GestureZoom
Returns this, for use in with statements.
Get builder for gtk.gesture.Gesture
Get nPoints property.
Get window property.
Set window property.
If there are touch sequences being currently handled by gesture, this function returns true and fills in rect with the bounding box containing all active touches. Otherwise, false will be returned.
If there are touch sequences being currently handled by gesture, this function returns true and fills in x and y with the center of the bounding box containing all active touches. Otherwise, false will be returned.
Returns the master #GdkDevice that is currently operating on gesture, or null if the gesture is not being interacted.
Returns all gestures in the group of gesture
Returns the last event that was processed for sequence.
Returns the #GdkEventSequence that was last updated on gesture.
If sequence is currently being interpreted by gesture, this function returns true and fills in x and y with the last coordinates stored for that event sequence. The coordinates are always relative to the widget allocation.
Returns the sequence state, as seen by gesture.
Returns the list of #GdkEventSequences currently being interpreted by gesture.
Returns the user-defined window that receives the events handled by gesture. See gtk.gesture.Gesture.setWindow for more information.
Adds gesture to the same group than group_gesture. Gestures are by default isolated in their own groups.
Returns true if gesture is currently handling events corresponding to sequence.
Returns true if the gesture is currently active. A gesture is active meanwhile there are touch sequences interacting with it.
Returns true if both gestures pertain to the same group.
Returns true if the gesture is currently recognized. A gesture is recognized if there are as many interacting touch sequences as required by gesture, and #GtkGesture::check returned true for the sequences being currently interpreted.
Sets the state of sequence in gesture. Sequences start in state #GTK_EVENT_SEQUENCE_NONE, and whenever they change state, they can never go back to that state. Likewise, sequences in state #GTK_EVENT_SEQUENCE_DENIED cannot turn back to a not denied state. With these rules, the lifetime of an event sequence is constrained to the next four:
Sets the state of all sequences that gesture is currently interacting with. See gtk.gesture.Gesture.setSequenceState for more details on sequence states.
Sets a specific window to receive events about, so gesture will effectively handle only events targeting window, or a child of it. window must pertain to gtk.event_controller.EventController.getWidget.
Separates gesture into an isolated group.
Connect to Begin signal.
Connect to Cancel signal.
Connect to End signal.
Connect to SequenceStateChanged signal.
Connect to Update signal.
#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.