### Class

# Gdk TouchpadEvent

#### Description [src]

    final class Gdk.TouchpadEvent : GObject.TypeInstance
    {
      /* No available fields */
    }

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.

#### Hierarchy

#### Ancestors

- GdkEvent

#### Instance methods

###### gdk_touchpad_event_get_deltas

Extracts delta information from a touchpad event.

###### gdk_touchpad_event_get_gesture_phase

Extracts the touchpad gesture phase from a touchpad event.

###### gdk_touchpad_event_get_n_fingers

Extracts the number of fingers from a touchpad event.

###### gdk_touchpad_event_get_pinch_angle_delta

Extracts the angle delta from a touchpad pinch event.

###### gdk_touchpad_event_get_pinch_scale

Extracts the scale from a touchpad pinch event.

##### Methods inherited from GdkEvent (20)

###### gdk_events_get_angle

Returns the relative angle from `event1` to `event2`.

###### gdk_events_get_center

Returns the point halfway between the events’ positions.

###### gdk_events_get_distance

Returns the distance between the event locations.

###### gdk_event_get_axes

Extracts all axis values from an event.

###### gdk_event_get_axis

Extract the axis value for a particular axis use from an event structure.

###### gdk_event_get_device

Returns the device of an event.

###### gdk_event_get_device_tool

Returns a `GdkDeviceTool` representing the tool that caused the event.

###### gdk_event_get_display

Retrieves the display associated to the `event`.

###### gdk_event_get_event_sequence

Returns the event sequence to which the event belongs.

###### gdk_event_get_event_type

Retrieves the type of the event.

###### gdk_event_get_history

Retrieves the history of the device that `event` is for, as a list of time and coordinates.

###### gdk_event_get_modifier_state

Returns the modifier state field of an event.

###### gdk_event_get_pointer_emulated

Returns whether this event is an ‘emulated’ pointer event.

###### gdk_event_get_position

Extract the event surface relative x/y coordinates from an event.

###### gdk_event_get_seat

Returns the seat that originated the event.

###### gdk_event_get_surface

Extracts the surface associated with an event.

###### gdk_event_get_time

Returns the timestamp of `event`.

###### gdk_event_ref

Increase the ref count of `event`.

###### gdk_event_triggers_context_menu

Returns whether a `GdkEvent` should trigger a context menu, according to platform conventions.

###### gdk_event_unref

Decrease the ref count of `event`.