|
Tizen Native API
5.0
|
Handling global gesture events.
#include <efl_util.h>
The EFL UTIL API provides functions to grab / select / activate global gestures and propagate these events to Ecore_Event.
Functions | |
| efl_util_gesture_h | efl_util_gesture_initialize (void) |
| Initializes system and check if global gestures are supported. | |
| int | efl_util_gesture_deinitialize (efl_util_gesture_h gesture_h) |
| Deinitializes system. | |
| efl_util_gesture_data | efl_util_gesture_edge_swipe_new (efl_util_gesture_h gesture_h, unsigned int fingers, efl_util_gesture_edge_e edge) |
| Generates a edge swipe gesture's grab info handle. | |
| int | efl_util_gesture_edge_swipe_free (efl_util_gesture_h gesture_h, efl_util_gesture_data data) |
| Frees a memory of edge swipe gesture's grab info handle. | |
| int | efl_util_gesture_edge_swipe_size_set (efl_util_gesture_data data, efl_util_gesture_edge_size_e edge_size, unsigned int start_point, unsigned int end_point) |
| Sets a specific size of edge for edge swipe gesture. | |
| efl_util_gesture_data | efl_util_gesture_edge_drag_new (efl_util_gesture_h gesture_h, unsigned int fingers, efl_util_gesture_edge_e edge) |
| Generates a edge drag gesture's grab info handle. | |
| int | efl_util_gesture_edge_drag_free (efl_util_gesture_h gesture_h, efl_util_gesture_data data) |
| Frees a memory of edge drag gesture's grab info handle. | |
| int | efl_util_gesture_edge_drag_size_set (efl_util_gesture_data data, efl_util_gesture_edge_size_e edge_size, unsigned int start_point, unsigned int end_point) |
| Sets a specific size of edge for edge drag gesture. | |
| efl_util_gesture_data | efl_util_gesture_tap_new (efl_util_gesture_h gesture_h, unsigned int fingers, unsigned int repeats) |
| Generates a tap gesture's grab info handle. | |
| int | efl_util_gesture_tap_free (efl_util_gesture_h gesture_h, efl_util_gesture_data data) |
| Frees a memory of tap gesture's grab info handle. | |
| efl_util_gesture_data | efl_util_gesture_palm_cover_new (efl_util_gesture_h gesture_h) |
| Generates a palm cover gesture's grab info handle. | |
| int | efl_util_gesture_palm_cover_free (efl_util_gesture_h gesture_h, efl_util_gesture_data data) |
| Frees a memory of palm cover gesture's grab info handle. | |
| int | efl_util_gesture_grab (efl_util_gesture_h gesture_h, efl_util_gesture_data data) |
| Grabs a global gesture. | |
| int | efl_util_gesture_ungrab (efl_util_gesture_h gesture_h, efl_util_gesture_data data) |
| Ungrabs a global gesture. | |
| int | efl_util_gesture_select (efl_util_gesture_h gesture_h, Evas_Object *window, efl_util_gesture_data data) |
| Selects a global gesture on given window. | |
| int | efl_util_gesture_deselect (efl_util_gesture_h gesture_h, Evas_Object *window, efl_util_gesture_data data) |
| Deselects a global gesture on given window. | |
| int | efl_util_gesture_activate_set (efl_util_gesture_h gesture_h, unsigned int type, Eina_Bool active) |
| Activates or deactivates a global gesture. | |
| int | efl_util_gesture_activate_set_on_window (efl_util_gesture_h gesture_h, Evas_Object *window, unsigned int type, Eina_Bool active) |
| Activates or deactivates a global gesture on given window. | |
Typedefs | |
| typedef struct _efl_util_gesture_h * | efl_util_gesture_h |
| Definition for the gesture handle. | |
| typedef enum _efl_util_gesture_type_e | efl_util_gesture_type_e |
| Enumeration of gesture type. | |
| typedef enum _efl_util_gesture_mode_e | efl_util_gesture_mode_e |
| Enumeration of gesture mode. | |
| typedef enum _efl_util_gesture_edge_e | efl_util_gesture_edge_e |
| Enumeration of gesture edge. | |
| typedef enum _efl_util_gesture_edge_size_e | efl_util_gesture_edge_size_e |
| Enumeration of gesture edge size. | |
| typedef void * | efl_util_gesture_data |
| Definition for the gesture data handle. | |
| typedef struct _efl_util_event_gesture_edge_swipe_s | efl_util_event_gesture_edge_swipe_s |
| Definition for the edge swipe gesture's event data structure. | |
| typedef struct efl_util_event_gesture_edge_drag_s | efl_util_event_gesture_edge_drag_s |
| Definition for the edge drag gesture's event data structure. | |
| typedef struct _efl_util_event_gesture_tap_s | efl_util_event_gesture_tap_s |
| Definition for the tap gesture's event data structure. | |
| typedef struct _efl_util_event_gesture_palm_cover_s | efl_util_event_gesture_palm_cover_s |
| Definition for the palm cover gesture's event data structure. | |
Definition for the edge drag gesture's event data structure.
Definition for the edge swipe gesture's event data structure.
Definition for the palm cover gesture's event data structure.
| typedef struct _efl_util_event_gesture_tap_s efl_util_event_gesture_tap_s |
Definition for the tap gesture's event data structure.
| typedef void* efl_util_gesture_data |
Definition for the gesture data handle.
| typedef enum _efl_util_gesture_edge_e efl_util_gesture_edge_e |
Enumeration of gesture edge.
Enumeration of gesture edge size.
| typedef struct _efl_util_gesture_h* efl_util_gesture_h |
Definition for the gesture handle.
| typedef enum _efl_util_gesture_mode_e efl_util_gesture_mode_e |
Enumeration of gesture mode.
| typedef enum _efl_util_gesture_type_e efl_util_gesture_type_e |
Enumeration of gesture type.
Enumeration of gesture edge.
Enumeration of gesture mode.
Enumeration of gesture type.
| int efl_util_gesture_activate_set | ( | efl_util_gesture_h | gesture_h, |
| unsigned int | type, | ||
| Eina_Bool | active | ||
| ) |
Activates or deactivates a global gesture.
| [in] | gesture_h | The efl_util_gesture_h handle |
| [in] | type | The gesture type to activate /deactivate combined by efl_util_gesture_type_e to bitwise operation |
| [in] | active | The activated boolean value |
0 on success, otherwise a negative error value | EFL_UTIL_ERROR_NONE | Successful |
| EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
| EFL_UTIL_ERROR_PERMISSION_DENIED | Permission denied |
| EFL_UTIL_ERROR_OUT_OF_MEMORY | Memory allocation failure |
| EFL_UTIL_ERROR_NO_RESOURCE_AVAILABLE | Resource is not available |
| int efl_util_gesture_activate_set_on_window | ( | efl_util_gesture_h | gesture_h, |
| Evas_Object * | window, | ||
| unsigned int | type, | ||
| Eina_Bool | active | ||
| ) |
Activates or deactivates a global gesture on given window.
| [in] | gesture_h | The efl_util_gesture_h handle |
| [in] | window | The efl window |
| [in] | type | The gesture type to activate /deactivate combined by efl_util_gesture_type_e to bitwise operation |
| [in] | active | The activated boolean value |
0 on success, otherwise a negative error value | EFL_UTIL_ERROR_NONE | Successful |
| EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
| EFL_UTIL_ERROR_OUT_OF_MEMORY | Memory allocation failure |
| EFL_UTIL_ERROR_NO_RESOURCE_AVAILABLE | Resource is not available |
| int efl_util_gesture_deinitialize | ( | efl_util_gesture_h | gesture_h | ) |
Deinitializes system.
| [in] | gesture_h | The efl_util_gesture_h handle |
0 on success, otherwise a negative error value | EFL_UTIL_ERROR_NONE | Successful |
| EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
| int efl_util_gesture_deselect | ( | efl_util_gesture_h | gesture_h, |
| Evas_Object * | window, | ||
| efl_util_gesture_data | data | ||
| ) |
Deselects a global gesture on given window.
| [in] | gesture_h | The efl_util_gesture_h handle |
| [in] | window | The efl window |
| [in] | data | The efl_util_gesture_data handle |
0 on success, otherwise a negative error value | EFL_UTIL_ERROR_NONE | Successful |
| EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
| EFL_UTIL_ERROR_OUT_OF_MEMORY | Memory allocation failure |
| EFL_UTIL_ERROR_NO_RESOURCE_AVAILABLE | Resource is not available |
| int efl_util_gesture_edge_drag_free | ( | efl_util_gesture_h | gesture_h, |
| efl_util_gesture_data | data | ||
| ) |
Frees a memory of edge drag gesture's grab info handle.
| [in] | gesture_h | The efl_util_gesture_h handle |
| [in] | data | The efl_util_gesture_data handle |
0 on success, otherwise a negative error value | EFL_UTIL_ERROR_NONE | Successful |
| EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
| efl_util_gesture_data efl_util_gesture_edge_drag_new | ( | efl_util_gesture_h | gesture_h, |
| unsigned int | fingers, | ||
| efl_util_gesture_edge_e | edge | ||
| ) |
Generates a edge drag gesture's grab info handle.
| [in] | gesture_h | The efl_util_gesture_h handle |
| [in] | fingers | The number of fingers |
| [in] | edge | The position of edge |
NULL | efl_util_gesture_data | The specific gesture data handle |
| EFL_UTIL_ERROR_NONE | Successful |
| EFL_UTIL_ERROR_OUT_OF_MEMORY | Memory allocation failure |
| EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
| EFL_UTIL_ERROR_NO_RESOURCE_AVAILABLE | Resource is not available |
| int efl_util_gesture_edge_drag_size_set | ( | efl_util_gesture_data | data, |
| efl_util_gesture_edge_size_e | edge_size, | ||
| unsigned int | start_point, | ||
| unsigned int | end_point | ||
| ) |
Sets a specific size of edge for edge drag gesture.
| [in] | data | The efl_util_gesture_data handle |
| [in] | edge_size | The efl_util_gesture_edge_size_e enum |
| [in] | start_point | The start point of edge area |
| [in] | end_point | The end point of edge area |
0 on success, otherwise a negative error value | EFL_UTIL_ERROR_NONE | Successful |
| EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
| EFL_UTIL_ERROR_NO_RESOURCE_AVAILABLE | Resource is not available |
| int efl_util_gesture_edge_swipe_free | ( | efl_util_gesture_h | gesture_h, |
| efl_util_gesture_data | data | ||
| ) |
Frees a memory of edge swipe gesture's grab info handle.
| [in] | gesture_h | The efl_util_gesture_h handle |
| [in] | data | The efl_util_gesture_data handle |
0 on success, otherwise a negative error value | EFL_UTIL_ERROR_NONE | Successful |
| EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
| efl_util_gesture_data efl_util_gesture_edge_swipe_new | ( | efl_util_gesture_h | gesture_h, |
| unsigned int | fingers, | ||
| efl_util_gesture_edge_e | edge | ||
| ) |
Generates a edge swipe gesture's grab info handle.
| [in] | gesture_h | The efl_util_gesture_h handle |
| [in] | fingers | The number of fingers |
| [in] | edge | The position of edge |
NULL | efl_util_gesture_data | The specific gesture data handle |
| EFL_UTIL_ERROR_NONE | Successful |
| EFL_UTIL_ERROR_OUT_OF_MEMORY | Memory allocation failure |
| EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
| EFL_UTIL_ERROR_NO_RESOURCE_AVAILABLE | Resource is not available |
| int efl_util_gesture_edge_swipe_size_set | ( | efl_util_gesture_data | data, |
| efl_util_gesture_edge_size_e | edge_size, | ||
| unsigned int | start_point, | ||
| unsigned int | end_point | ||
| ) |
Sets a specific size of edge for edge swipe gesture.
| [in] | data | The efl_util_gesture_data handle |
| [in] | edge_size | The efl_util_gesture_edge_size_e enum |
| [in] | start_point | The start point of edge area |
| [in] | end_point | The end point of edge area |
0 on success, otherwise a negative error value | EFL_UTIL_ERROR_NONE | Successful |
| EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
| EFL_UTIL_ERROR_NO_RESOURCE_AVAILABLE | Resource is not available |
| int efl_util_gesture_grab | ( | efl_util_gesture_h | gesture_h, |
| efl_util_gesture_data | data | ||
| ) |
Grabs a global gesture.
| [in] | gesture_h | The efl_util_gesture_h handle |
| [in] | data | The efl_util_gesture_data handle. |
0 on success, otherwise a negative error value | EFL_UTIL_ERROR_NONE | Successful |
| EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
| EFL_UTIL_ERROR_PERMISSION_DENIED | Permission denied |
| EFL_UTIL_ERROR_OUT_OF_MEMORY | Memory allocation failure |
| EFL_UTIL_ERROR_NOT_SUPPORTED | Not supported |
| EFL_UTIL_ERROR_NO_RESOURCE_AVAILABLE | Resource is not available |
Initializes system and check if global gestures are supported.
NULL | efl_util_gesture_h | The global gesture handle |
| EFL_UTIL_ERROR_NONE | Successful |
| EFL_UTIL_ERROR_OUT_OF_MEMORY | Memory allocation failure |
| EFL_UTIL_ERROR_NOT_SUPPORTED | Not supported |
| EFL_UTIL_ERROR_NO_RESOURCE_AVAILABLE | Resource is not available |
| int efl_util_gesture_palm_cover_free | ( | efl_util_gesture_h | gesture_h, |
| efl_util_gesture_data | data | ||
| ) |
Frees a memory of palm cover gesture's grab info handle.
| [in] | gesture_h | The efl_util_gesture_h handle |
| [in] | data | The efl_util_gesture_data handle |
0 on success, otherwise a negative error value | EFL_UTIL_ERROR_NONE | Successful |
| EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
Generates a palm cover gesture's grab info handle.
| [in] | gesture_h | The efl_util_gesture_h handle |
NULL | efl_util_gesture_data | The specific gesture data handle |
| EFL_UTIL_ERROR_NONE | Successful |
| EFL_UTIL_ERROR_OUT_OF_MEMORY | Memory allocation failure |
| EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
| EFL_UTIL_ERROR_NO_RESOURCE_AVAILABLE | Resource is not available |
| int efl_util_gesture_select | ( | efl_util_gesture_h | gesture_h, |
| Evas_Object * | window, | ||
| efl_util_gesture_data | data | ||
| ) |
Selects a global gesture on given window.
| [in] | gesture_h | The efl_util_gesture_h handle |
| [in] | window | The efl window |
| [in] | data | The efl_util_gesture_data handle. |
0 on success, otherwise a negative error value | EFL_UTIL_ERROR_NONE | Successful |
| EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
| EFL_UTIL_ERROR_OUT_OF_MEMORY | Memory allocation failure |
| EFL_UTIL_ERROR_NO_RESOURCE_AVAILABLE | Resource is not available |
| int efl_util_gesture_tap_free | ( | efl_util_gesture_h | gesture_h, |
| efl_util_gesture_data | data | ||
| ) |
Frees a memory of tap gesture's grab info handle.
| [in] | gesture_h | The efl_util_gesture_h handle |
| [in] | data | The efl_util_gesture_data handle |
0 on success, otherwise a negative error value | EFL_UTIL_ERROR_NONE | Successful |
| EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
| efl_util_gesture_data efl_util_gesture_tap_new | ( | efl_util_gesture_h | gesture_h, |
| unsigned int | fingers, | ||
| unsigned int | repeats | ||
| ) |
Generates a tap gesture's grab info handle.
| [in] | gesture_h | The efl_util_gesture_h handle |
| [in] | fingers | The number of fingers |
| [in] | repeats | The number of repeats |
NULL | efl_util_gesture_data | The specific gesture data handle |
| EFL_UTIL_ERROR_NONE | Successful |
| EFL_UTIL_ERROR_OUT_OF_MEMORY | Memory allocation failure |
| EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
| EFL_UTIL_ERROR_NO_RESOURCE_AVAILABLE | Resource is not available |
| int efl_util_gesture_ungrab | ( | efl_util_gesture_h | gesture_h, |
| efl_util_gesture_data | data | ||
| ) |
Ungrabs a global gesture.
| [in] | gesture_h | The efl_util_gesture_h handle |
| [in] | data | The efl_util_gesture_data handle. |
0 on success, otherwise a negative error value | EFL_UTIL_ERROR_NONE | Successful |
| EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
| EFL_UTIL_ERROR_PERMISSION_DENIED | Permission denied |
| EFL_UTIL_ERROR_OUT_OF_MEMORY | Memory allocation failure |
| EFL_UTIL_ERROR_NOT_SUPPORTED | Not supported |
| EFL_UTIL_ERROR_NO_RESOURCE_AVAILABLE | Resource is not available |
Definition for the edge swipe gesture event.
Definition for the edge swipe gesture event.
Definition for the palm cover gesture event.
Definition for the tap gesture event.