Functions for accessing details of gesture events. More...
Functions | |
| EAPI double | elput_swipe_dx_get (Elput_Swipe_Gesture *gesture) |
| Get the difference of x position from the last event to this event. | |
| EAPI double | elput_swipe_dy_get (Elput_Swipe_Gesture *gesture) |
| Get the difference of y position from the last event to this event. | |
| EAPI int | elput_swipe_finger_count_get (Elput_Swipe_Gesture *gesture) |
| Get the finger_count for this gesture. | |
| EAPI int | elput_swipe_window_get (Elput_Swipe_Gesture *gesture) |
| Get the window in which this event is emitted. | |
| EAPI Elput_Device * | elput_swipe_device_get (Elput_Swipe_Gesture *gesture) |
| Get the device from which the gesture event is coming. | |
Variables | |
| EAPI int | ELPUT_EVENT_SWIPE_BEGIN |
| A swipe gesture has began. | |
| EAPI int | ELPUT_EVENT_SWIPE_UPDATE |
| There is a change to a ongoing swipe gesture. | |
| EAPI int | ELPUT_EVENT_SWIPE_END |
| A ongoing swipe gesture has ended. | |
Functions for accessing details of gesture events.
The structure pointers can only be accessed within the events that emit them.
| EAPI double elput_swipe_dx_get | ( | Elput_Swipe_Gesture * | gesture | ) |
Get the difference of x position from the last event to this event.
| gesture | The event, if NULL 0 is returned |
References elput_swipe_dx_get().
Referenced by elput_swipe_dx_get().
| EAPI double elput_swipe_dy_get | ( | Elput_Swipe_Gesture * | gesture | ) |
Get the difference of y position from the last event to this event.
| gesture | The event, if NULL 0 is returned |
References elput_swipe_dy_get().
Referenced by elput_swipe_dy_get().
| EAPI int elput_swipe_finger_count_get | ( | Elput_Swipe_Gesture * | gesture | ) |
Get the finger_count for this gesture.
| gesture | The event, if NULL 0 is returned |
References elput_swipe_finger_count_get().
Referenced by elput_swipe_finger_count_get().
| EAPI int elput_swipe_window_get | ( | Elput_Swipe_Gesture * | gesture | ) |
Get the window in which this event is emitted.
| gesture | The event, if NULL 0 is returned |
References elput_swipe_window_get().
Referenced by elput_swipe_window_get().
| EAPI Elput_Device * elput_swipe_device_get | ( | Elput_Swipe_Gesture * | gesture | ) |
Get the device from which the gesture event is coming.
This value is the same for the lifetime of a gesture
| gesture | The event, if NULL, NULL is returned |
References elput_swipe_device_get().
Referenced by elput_swipe_device_get().
|
extern |
A swipe gesture has began.
ELPUT_EVENT_SWIPE_UPDATE and finally a single ELPUT_EVENT_SWIPE_END event will be emitted.
Referenced by elput_init().
|
extern |
|
extern |
A ongoing swipe gesture has ended.
This ends the lifetime of this gesture.
Referenced by elput_init().