pinch_gesture_alloc()

Allocate and initialize the pinch gesture structure.

Synopsis:

#include "gestures/pinch.h"
 
gesture_pinch_t* pinch_gesture_alloc(pinch_params_t *params,
                                     gesture_callback_f callback,
                                     struct gestures_set *set)

Arguments:

params

A pointer to the pinch gesture parameters.

callback

The function to invoke when the pinch gesture changes state.

set

A pointer to the gesture set to add this pinch gesture to.

Library:

libgestures

Description:

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

Returns:

A pointer to an initialized pinch gesture.