Functions | Variables
Elput gesture accessors

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...
 

Detailed Description

Functions for accessing details of gesture events.

The structure pointers can only be accessed within the events that emit them.

Function Documentation

◆ elput_swipe_dx_get()

EAPI double elput_swipe_dx_get ( Elput_Swipe_Gesture *  gesture)

Get the difference of x position from the last event to this event.

Parameters
gestureThe event, if NULL 0 is returned
Since
1.26

◆ elput_swipe_dy_get()

EAPI double elput_swipe_dy_get ( Elput_Swipe_Gesture *  gesture)

Get the difference of y position from the last event to this event.

Parameters
gestureThe event, if NULL 0 is returned
Since
1.26

◆ elput_swipe_finger_count_get()

EAPI int elput_swipe_finger_count_get ( Elput_Swipe_Gesture *  gesture)

Get the finger_count for this gesture.

Parameters
gestureThe event, if NULL 0 is returned
Since
1.26

◆ elput_swipe_window_get()

EAPI int elput_swipe_window_get ( Elput_Swipe_Gesture *  gesture)

Get the window in which this event is emitted.

Parameters
gestureThe event, if NULL 0 is returned
Since
1.26

◆ elput_swipe_device_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

Parameters
gestureThe event, if NULL, NULL is returned
Since
1.26

Variable Documentation

◆ ELPUT_EVENT_SWIPE_BEGIN

EAPI int ELPUT_EVENT_SWIPE_BEGIN
extern

A swipe gesture has began.

ELPUT_EVENT_SWIPE_UPDATE and finally a single ELPUT_EVENT_SWIPE_END event will be emitted.

Since
1.26

◆ ELPUT_EVENT_SWIPE_UPDATE

EAPI int ELPUT_EVENT_SWIPE_UPDATE
extern

There is a change to a ongoing swipe gesture.

Since
1.26

◆ ELPUT_EVENT_SWIPE_END

EAPI int ELPUT_EVENT_SWIPE_END
extern

A ongoing swipe gesture has ended.

This ends the lifetime of this gesture.

Since
1.26