WPEPlatform.GestureController
Description: Reference for WPEPlatform.GestureController

### Interface

# WPEPlatformGestureController

#### Description [src]

    interface WPEPlatform.GestureController : GObject.Object

A gesture controller.

This interface enables implementing custom gesture detection algorithms. Objects of classes implementing this interface can be supplied to `WPEView` so that they are being used instead of the default gesture detector.

#### Prerequisite

In order to implement GestureController, your type must inherit from`GObject`.

#### Instance methods

###### wpe_gesture_controller_cancel

Cancels ongoing gesture detection if any.

###### wpe_gesture_controller_get_gesture

Get currently detected gesture.

###### wpe_gesture_controller_get_gesture_delta

Get the delta of currently detected gesture such as “drag” gesture. If it doesn’t have a delta, `FALSE` is returned.

###### wpe_gesture_controller_get_gesture_position

Get the position of currently detected gesture. If it doesn’t have a position, `FALSE` is returned.

###### wpe_gesture_controller_handle_event

Get the gesture detected by `controller` if any was detected during processing of `event`.

###### wpe_gesture_controller_is_drag_begin

Check if the current drag gesture is a beginning of the sequence being detected.

#### Interface structure

    struct WPEPlatformGestureControllerInterface {
      GTypeInterface parent_interface;
      gboolean (* handle_event) (
        WPEGestureController* controller,
        WPEEvent* event
      );
      void (* cancel) (
        WPEGestureController* controller
      );
      WPEGesture (* get_gesture) (
        WPEGestureController* controller
      );
      gboolean (* get_gesture_position) (
        WPEGestureController* controller,
        double* x,
        double* y
      );
      gboolean (* get_gesture_delta) (
        WPEGestureController* controller,
        double* x,
        double* y
      );
      gboolean (* is_drag_begin) (
        WPEGestureController* controller
      );

    }

No description available.

###### Interface members

`parent_interface` |
    GTypeInterface
| No description available.
`handle_event` |
    gboolean (* handle_event) (
        WPEGestureController* controller,
        WPEEvent* event
      )
| No description available.
`cancel` |
    void (* cancel) (
        WPEGestureController* controller
      )
| No description available.
`get_gesture` |
    WPEGesture (* get_gesture) (
        WPEGestureController* controller
      )
| No description available.
`get_gesture_position` |
    gboolean (* get_gesture_position) (
        WPEGestureController* controller,
        double* x,
        double* y
      )
| No description available.
`get_gesture_delta` |
    gboolean (* get_gesture_delta) (
        WPEGestureController* controller,
        double* x,
        double* y
      )
| No description available.
`is_drag_begin` |
    gboolean (* is_drag_begin) (
        WPEGestureController* controller
      )
| No description available.

#### Virtual methods

###### WPEPlatform.GestureController.cancel

Cancels ongoing gesture detection if any.

###### WPEPlatform.GestureController.get_gesture

Get currently detected gesture.

###### WPEPlatform.GestureController.get_gesture_delta

Get the delta of currently detected gesture such as “drag” gesture. If it doesn’t have a delta, `FALSE` is returned.

###### WPEPlatform.GestureController.get_gesture_position

Get the position of currently detected gesture. If it doesn’t have a position, `FALSE` is returned.

###### WPEPlatform.GestureController.handle_event

Get the gesture detected by `controller` if any was detected during processing of `event`.

###### WPEPlatform.GestureController.is_drag_begin

Check if the current drag gesture is a beginning of the sequence being detected.