rotate_gesture_alloc()

Updated: October 26, 2022

Allocate and initialize the rotate gesture structure

Synopsis:

#include <gestures/rotate.h>
gesture_rotate_t* rotate_gesture_alloc(rotate_params_t *params,
                                       gesture_callback_f callback,
                                       struct gestures_set *set)

Arguments:

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

Library:

libgestures

Description:

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

Returns:

A pointer to an initialized rotate gesture.