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. More... | |
EAPI double | elput_swipe_dy_get (Elput_Swipe_Gesture *gesture) |
Get the difference of y position from the last event to this event. More... | |
EAPI int | elput_swipe_finger_count_get (Elput_Swipe_Gesture *gesture) |
Get the finger_count for this gesture. More... | |
EAPI int | elput_swipe_window_get (Elput_Swipe_Gesture *gesture) |
Get the window in which this event is emitted. More... | |
EAPI Elput_Device * | elput_swipe_device_get (Elput_Swipe_Gesture *gesture) |
Get the device from which the gesture event is coming. More... | |
Variables | |
EAPI int | ELPUT_EVENT_SWIPE_BEGIN |
A swipe gesture has began. More... | |
EAPI int | ELPUT_EVENT_SWIPE_UPDATE |
There is a change to a ongoing swipe gesture. More... | |
EAPI int | ELPUT_EVENT_SWIPE_END |
A ongoing swipe gesture has ended. More... | |
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 |
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 |
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 |
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 |
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 |
EAPI int ELPUT_EVENT_SWIPE_BEGIN |
A swipe gesture has began.
ELPUT_EVENT_SWIPE_UPDATE and finally a single ELPUT_EVENT_SWIPE_END event will be emitted.
Referenced by elput_manager_connect_gestures().
EAPI int ELPUT_EVENT_SWIPE_UPDATE |
There is a change to a ongoing swipe gesture.
Referenced by elput_manager_connect_gestures().
EAPI int ELPUT_EVENT_SWIPE_END |
A ongoing swipe gesture has ended.
This ends the lifetime of this gesture.
Referenced by elput_manager_connect_gestures().