cbe47c02a1
swipe: Don't emit ::swipe if there are still active touches
...
Avoids sending spurious signals when an extra touch happens.
2014-05-23 19:54:28 +02:00
42df9eda2d
Prevent subclassing of gestures
...
For now, at least. We do this by hiding the instance and
class structures in private headers.
2014-05-23 19:54:28 +02:00
ad2346f762
swipe: doc fixes
2014-05-23 19:54:28 +02:00
2df48ba886
swipe: Add missing documentation
2014-05-23 19:54:27 +02:00
2166be96d2
swipe: Add function to retrieve the current velocity
...
This can be used to fetch the current velocity on update(), as opposed
to swipe() which happens after the sequence is finished.
2014-05-23 19:54:26 +02:00
c49ac32393
swipe: Dont emit swipe() if the gesture was denied rather than finished
2014-05-23 19:54:24 +02:00
dca169d9f1
swipe: Make a subclass of GtkGestureSingle
2014-05-23 19:54:23 +02:00
8733e2a918
Add GtkGestureSwipe
...
This gesture implementation recognices swipes on any direction.
The "swipe" signal has the X/Y velocity vector components, so
those can be used for direction guessing and velocity thresholds.
2014-05-23 19:54:21 +02:00