Gnome::Gtk4::GestureRotate
Table of Contents
Description§
Gnome::Gtk4::GestureRotate is a Gnome::Gtk4::Gesture for 2-finger rotations.
Whenever the angle between both handled sequences changes, the angle-changed signal is emitted.
Uml Diagram§
UNKNOWN image§
=for image :class<inline> :src<asset_files/images/plantuml/GestureRotate.png> :width<70\%>Class initialization§
new§
:native-object§
Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.
multi method new ( N-Object() :$native-object! )
Code
new-gesturerotate§
Returns a newly created Gnome::Gtk4::Gesture that recognizes 2-touch rotation gestures.
method new-gesturerotate ( --> Gnome::Gtk4::GestureRotate )
Code
Methods§
get-angle-delta§
Gets the angle delta in radians.
If $gesture is active, this function returns the angle difference in radians since the gesture was first recognized. If $gesture is not active, 0 is returned.
method get-angle-delta (--> Num )
Code
Return value; the angle delta in radians.
Signals§
angle-changed§
Emitted when the angle between both tracked points changes.
method handler ( gdouble $angle, gdouble $angle-delta, Int :$_handle_id, N-GObject :$_native-object, Gnome::Gtk4::GestureRotate :$_widget, *%user-options )
Code
- $angle; Current angle in radians.
- $angle-delta; Difference with the starting angle, in radians.
- $_handle_id; The registered event handler id.
- $_native-object; The native object provided by the Raku object which registered this event. This is a native Gnome::Gtk4::GestureRotate object.
- %user-options; A list of named arguments provided by .register-signal() in class Object.
About my projects, examples and tutorials