GtkGestures : gtk_gesture_get_point() and gtk_gesture_get_bounding_box_center ()

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

GtkGestures : gtk_gesture_get_point() and gtk_gesture_get_bounding_box_center ()

Prashant Kumar-2
Hi,
What is the difference between these two functions ( gtk_gesture_get_point() and gtk_gesture_get_bounding_box_center () ) ? and which one of them would be best to obtain "zoom" and "rotate" gesture points i.e. the points around which zooming and rotation will happen.
Thank you!!

_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GtkGestures : gtk_gesture_get_point() and gtk_gesture_get_bounding_box_center ()

Timm Bäder
On 05.07, Prashant Kumar wrote:
> Hi,
> What is the difference between these two functions (
> gtk_gesture_get_point() and gtk_gesture_get_bounding_box_center () ) ? and
> which one of them would be best to obtain "zoom" and "rotate" gesture
> points i.e. the points around which zooming and rotation will happen.
> Thank you!!

get_point:

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.


get_bounding_box_center:

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.


What's unclear?

Both zoom and rotate are multitouch gestures and you usually want the
center between the touches.
_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GtkGestures : gtk_gesture_get_point() and gtk_gesture_get_bounding_box_center ()

Prashant Kumar-2
What is the difference between the "sequence is currently being interpreted by gesture"
and "sequences being currently handled by gesture".?

get_point:
There is a term "sequence" for it. Does it imply that it for GtkGestureSingle only ?


_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list
Loading...