Class: Gdk::TouchpadEvent

Inherits:
Event
  • Object
show all
Defined in:
(unknown)

Overview

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.

Constant Summary

Constants inherited from Event

Event::PROPAGATE, Event::STOP

Instance Method Summary collapse

Methods inherited from Event

#_get_angle, #_get_center, #_get_distance, #device, #device_tool, #display, #event_sequence, #event_type, #get_axes, #get_axis, #get_history, #get_position, #modifier_state, #pointer_emulated, #ref, #seat, #send_event?, #surface, #time, #triggers_context_menu, #unref

Instance Method Details

#gesture_phaseGdk::TouchpadGesturePhase

Extracts the touchpad gesture phase from a touchpad event.

Returns:

#get_deltas(dx, dy) ⇒ nil

Extracts delta information from a touchpad event.

Parameters:

  • dx (Float)

    return location for x

  • dy (Float)

    return location for y

Returns:

  • (nil)

#n_fingersInteger

Extracts the number of fingers from a touchpad event.

Returns:

  • (Integer)

    the number of fingers for event

#pinch_angle_deltaFloat

Extracts the angle delta from a touchpad pinch event.

Returns:

  • (Float)

    the angle delta of event

#pinch_scaleFloat

Extracts the scale from a touchpad pinch event.

Returns:

  • (Float)

    the scale of event