swipe_gesture_alloc()

Allocate and initialize the swipe gesture structure.

Synopsis:

#include "gestures/types.h"
 
gesture_swipe_t* swipe_gesture_alloc(swipe_params_t *params, gesture_callback_f callback, struct gestures_set *set)

Arguments:

params
The swipe gesture parameters.
callback
The function to invoke when the swipe gesture changes state.
set
The gesture set to add this swipe gesture to.

Library:

libgestures

Description:

This function allocates a new swipe gesture data structure and initializes it with the specified parameters and callback function, and adds it to the specified gesture set.

Returns:

An initialized swipe gesture.