About my projects, examples and tutorials
Gnome::Gdk4::TouchpadEvent

Gnome::Gdk4::TouchpadEvent

Description§

An event related to a gesture on a touchpad device.

Unlike touchscreens, where the windowing system sends basic sequences of begin, update, end events, and leaves gesture recognition to the clients, touchpad gestures are typically processed by the system, resulting in these events.

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

Methods§

get-deltas§

Extracts delta information from a touchpad event.

method get-deltas ( Num() $dx, Num() $dy )
Code
  • $dx; (transfer ownership: full) return location for x.
  • $dy; (transfer ownership: full) return location for y.

get-gesture-phase This function is not yet available§

Extracts the touchpad gesture phase from a touchpad event.

method get-gesture-phase (--> GdkTouchpadGesturePhase  )
Code

Return value; the gesture phase of $event.

get-n-fingers§

Extracts the number of fingers from a touchpad event.

method get-n-fingers (--> UInt )
Code

Return value; the number of fingers for $event.

get-pinch-angle-delta§

Extracts the angle delta from a touchpad pinch event.

method get-pinch-angle-delta (--> Num )
Code

Return value; the angle delta of $event.

get-pinch-scale§

Extracts the scale from a touchpad pinch event.

method get-pinch-scale (--> Num )
Code

Return value; the scale of $event.