Gdk.TouchpadEvent

g Gdk.Event Gdk.Event Gdk.TouchpadEvent Gdk.TouchpadEvent Gdk.Event->Gdk.TouchpadEvent

Subclasses:

None

Methods

Inherited:

Gdk.Event (17)

get_deltas ()

get_gesture_phase ()

get_n_fingers ()

get_pinch_angle_delta ()

get_pinch_scale ()

Virtual Methods

None

Fields

None

Class Details

class Gdk.TouchpadEvent
Bases:

Gdk.Event

Abstract:

No

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.

get_deltas()[source]
Returns:

dx:

return location for x

dy:

return location for y

Return type:

(dx: float, dy: float)

Extracts delta information from a touchpad event.

get_gesture_phase()[source]
Returns:

the gesture phase of self

Return type:

Gdk.TouchpadGesturePhase

Extracts the touchpad gesture phase from a touchpad event.

get_n_fingers()[source]
Returns:

the number of fingers for self

Return type:

int

Extracts the number of fingers from a touchpad event.

get_pinch_angle_delta()[source]
Returns:

the angle delta of self

Return type:

float

Extracts the angle delta from a touchpad pinch event.

get_pinch_scale()[source]
Returns:

the scale of self

Return type:

float

Extracts the scale from a touchpad pinch event.