Class

PhocGestureSwipe

[]

Description [src]

class Phoc.GestureSwipe : Phoc.GestureSingle
{
  /* No available fields */
}

PhocGestureSwipe is a PhocGesture for swipe gestures.

After a press/move/…/move/release sequence happens, the PhocGestureSwipe::swipe signal will be emitted, providing the velocity and directionality of the sequence at the time it was lifted.

If the velocity is desired in intermediate points, phoc_gesture_swipe_get_velocity() can be called in a PhocGesture::update handler.

All velocities are reported in pixels/sec units.

[]

Constructors

phoc_gesture_swipe_new
No description available.

[]

Instance methods

phoc_gesture_swipe_get_velocity

If the gesture is recognized, this function returns TRUE and fill in velocity_x and velocity_y with the recorded velocity, as per the last event(s) processed.

Methods inherited from PhocGestureSingle (1)
Methods inherited from PhocGesture (15)
Methods inherited from GObject (43)
[]

Properties

Properties inherited from PhocGestureSingle (1)
Properties inherited from PhocGesture (1)
[]

Signals

Phoc.GestureSwipe::swipe

This signal is emitted when the recognized gesture is finished, velocity and direction are a product of previously recorded events.

Signals inherited from PhocGesture (5)
Signals inherited from GObject (1)

Class structure

[]

Virtual methods

Phoc.GestureSwipeClass.swipe
No description available.