Benjamin Otte
703d5340f1
rotategesture: Port to new API model
2018-04-26 17:59:41 +02:00
Matthias Clasen
4c150d8eb5
The big versioning cleanup
...
Remove all the old 2.x and 3.x version annotations.
GTK+ 4 is a new start, and from the perspective of a
GTK+ 4 developer all these APIs have been around since
the beginning.
2018-02-06 01:16:32 -05:00
Matthias Clasen
17832f9617
gesture rotate: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Matthias Clasen
7cbd35dd86
gesture rotate: Partially convert to GdkEvent API
2017-09-19 18:39:02 +02:00
Carlos Garnacho
7545b908de
gesture: Update to using GdkEvent API
...
To some extent, pad and touchpad gesture events need extra API.
2017-09-19 18:39:02 +02:00
Matthias Clasen
66f0bdee0a
Intern all signal names beforehand
...
This avoids pointless allocations
2015-09-12 12:50:39 -04:00
Carlos Garnacho
5f68a2877d
gtkgesturerotate: Handle touchpad pinch events
...
We let these through in GtkEventController::filter, and handle
these especially on GtkGesture::update.
2015-08-12 23:20:25 +02:00
Matthias Clasen
3bb404f40c
Don't assert in gtk_event_controller_constructed
...
This prevents some of our generic object implementation tests
from working with gesture objects. Instead, add g_return_if_fail
checks in all the gesture constructors.
2014-05-27 14:33:32 -04:00
Matthias Clasen
4ce2f3e769
Silence gtk-doc warnings
2014-05-27 13:17:34 -04:00
Carlos Garnacho
8f7d5fb2c0
gesturerotate: Just return a double in get_angle_delta()
...
Whether the gesture is active or recognized should be checked before in
callers, or just not used naively.
2014-05-27 17:47:12 +02:00
Carlos Garnacho
4589f0e0c8
rotate: Ensure delta is between [0..2π]
2014-05-23 19:54:29 +02:00
Matthias Clasen
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
Carlos Garnacho
1f8cf3c322
rotate: doc fixes
2014-05-23 19:54:27 +02:00
Carlos Garnacho
dc1e8454a7
rotate: Add missing documentation
2014-05-23 19:54:27 +02:00
Carlos Garnacho
2495b518c1
Add GtkGestureRotate
...
This gesture implementation recognizes rotations when fed with
events from two different GdkEventSequences
2014-05-23 19:54:21 +02:00