summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarry <larry.olj@gmail.com>2016-01-21 20:35:36 -0200
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-02-09 14:14:08 -0200
commit1c68ef9a7f985afe5eeca391516eb54dfee59201 (patch)
treefdeb6da081e13862b23978affaa6225071df534a
parent9381604c1922eaebc8d076df7b0dfe4be53d4321 (diff)
elm_gesture_layer: move enums to .eo
-rw-r--r--src/lib/elm_gesture_layer.eo43
-rw-r--r--src/lib/elm_gesture_layer_common.h35
-rw-r--r--src/lib/elm_gesture_layer_legacy.h4
3 files changed, 39 insertions, 43 deletions
diff --git a/src/lib/elm_gesture_layer.eo b/src/lib/elm_gesture_layer.eo
index ef6381a6a..8497fcf0f 100644
--- a/src/lib/elm_gesture_layer.eo
+++ b/src/lib/elm_gesture_layer.eo
@@ -1,3 +1,34 @@
1enum Elm.Gesture.Type
2{
3 [[
4 Enum of supported gesture types.
5 ]]
6 legacy: elm_gesture;
7 first = 0,
8 n_taps, [[N fingers single taps]]
9 n_long_taps, [[N fingers single long-taps]]
10 n_double_taps, [[N fingers double-single taps]]
11 n_triple_taps, [[N fingers triple-single taps]]
12 momentum, [[Reports momentum in the direction of move]]
13 n_lines, [[N fingers line gesture]]
14 n_flicks, [[N fingers flick gesture]]
15 zoom, [[Zoom]]
16 rotate, [[Rotate]]
17 last
18}
19
20enum Elm.Gesture.State
21{
22 [[
23 Enum of gesture states.
24 ]]
25 undefined = -1, [[Gesture not started]]
26 start, [[Gesture started]]
27 move, [[Gesture is ongoing]]
28 end, [[Gesture completed]]
29 abort [[Ongoing gesture was aborted]]
30}
31
1class Elm.Gesture_Layer (Elm.Widget) 32class Elm.Gesture_Layer (Elm.Widget)
2{ 33{
3 eo_prefix: elm_obj_gesture_layer; 34 eo_prefix: elm_obj_gesture_layer;
@@ -72,8 +103,8 @@ class Elm.Gesture_Layer (Elm.Widget)
72 ]] 103 ]]
73 } 104 }
74 values { 105 values {
75 idx: Elm_Gesture_Type; [[The gesture you want to track state of.]] 106 idx: Elm.Gesture.Type; [[The gesture you want to track state of.]]
76 cb_type: Elm_Gesture_State; [[The event the callback tracks (START, MOVE, END, ABORT).]] 107 cb_type: Elm.Gesture.State; [[The event the callback tracks (START, MOVE, END, ABORT).]]
77 cb: Elm_Gesture_Event_Cb; [[The callback itself.]] 108 cb: Elm_Gesture_Event_Cb; [[The callback itself.]]
78 data: void * @optional; [[Custom data to be passed.]] 109 data: void * @optional; [[Custom data to be passed.]]
79 } 110 }
@@ -93,8 +124,8 @@ class Elm.Gesture_Layer (Elm.Widget)
93 cb_del { 124 cb_del {
94 [[Remove a gesture callback.]] 125 [[Remove a gesture callback.]]
95 params { 126 params {
96 @in idx: Elm_Gesture_Type; [[The gesture you want to track state of.]] 127 @in idx: Elm.Gesture.Type; [[The gesture you want to track state of.]]
97 @in cb_type: Elm_Gesture_State; [[The event the callback tracks (START, MOVE, END, ABORT).]] 128 @in cb_type: Elm.Gesture.State; [[The event the callback tracks (START, MOVE, END, ABORT).]]
98 @in cb: Elm_Gesture_Event_Cb; [[The callback itself.]] 129 @in cb: Elm_Gesture_Event_Cb; [[The callback itself.]]
99 @in data: void * @nullable; [[Custom callback data.]] 130 @in data: void * @nullable; [[Custom callback data.]]
100 } 131 }
@@ -111,8 +142,8 @@ class Elm.Gesture_Layer (Elm.Widget)
111 use only one of these functions for a gesture object. 142 use only one of these functions for a gesture object.
112 ]] 143 ]]
113 params { 144 params {
114 @in idx: Elm_Gesture_Type; [[The gesture you want to track state of.]] 145 @in idx: Elm.Gesture.Type; [[The gesture you want to track state of.]]
115 @in cb_type: Elm_Gesture_State; [[The event the callback tracks (START, MOVE, END, ABORT).]] 146 @in cb_type: Elm.Gesture.State; [[The event the callback tracks (START, MOVE, END, ABORT).]]
116 @in cb: Elm_Gesture_Event_Cb; [[The callback itself.]] 147 @in cb: Elm_Gesture_Event_Cb; [[The callback itself.]]
117 @in data: void * @optional; [[Custom data to be passed.]] 148 @in data: void * @optional; [[Custom data to be passed.]]
118 } 149 }
diff --git a/src/lib/elm_gesture_layer_common.h b/src/lib/elm_gesture_layer_common.h
index fda0f6015..5a45635a4 100644
--- a/src/lib/elm_gesture_layer_common.h
+++ b/src/lib/elm_gesture_layer_common.h
@@ -5,41 +5,6 @@
5 */ 5 */
6 6
7/** 7/**
8 * Enum of supported gesture types.
9 */
10typedef enum
11{
12 ELM_GESTURE_FIRST = 0,
13
14 ELM_GESTURE_N_TAPS, /**< N fingers single taps */
15 ELM_GESTURE_N_LONG_TAPS, /**< N fingers single long-taps */
16 ELM_GESTURE_N_DOUBLE_TAPS, /**< N fingers double-single taps */
17 ELM_GESTURE_N_TRIPLE_TAPS, /**< N fingers triple-single taps */
18
19 ELM_GESTURE_MOMENTUM, /**< Reports momentum in the direction of move */
20
21 ELM_GESTURE_N_LINES, /**< N fingers line gesture */
22 ELM_GESTURE_N_FLICKS, /**< N fingers flick gesture */
23
24 ELM_GESTURE_ZOOM, /**< Zoom */
25 ELM_GESTURE_ROTATE, /**< Rotate */
26
27 ELM_GESTURE_LAST
28} Elm_Gesture_Type;
29
30/**
31 * Enum of gesture states.
32 */
33typedef enum
34{
35 ELM_GESTURE_STATE_UNDEFINED = -1, /**< Gesture not STARTed */
36 ELM_GESTURE_STATE_START, /**< Gesture STARTed */
37 ELM_GESTURE_STATE_MOVE, /**< Gesture is ongoing */
38 ELM_GESTURE_STATE_END, /**< Gesture completed */
39 ELM_GESTURE_STATE_ABORT /**< Ongoing gesture was ABORTed */
40} Elm_Gesture_State;
41
42/**
43 * Holds taps info for user 8 * Holds taps info for user
44 */ 9 */
45typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info; 10typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info;
diff --git a/src/lib/elm_gesture_layer_legacy.h b/src/lib/elm_gesture_layer_legacy.h
index 2a734c995..f6f76e9df 100644
--- a/src/lib/elm_gesture_layer_legacy.h
+++ b/src/lib/elm_gesture_layer_legacy.h
@@ -1,3 +1,5 @@
1#include "elm_gesture_layer.eo.legacy.h"
2
1/** 3/**
2 * Call this function to construct a new gesture-layer object. 4 * Call this function to construct a new gesture-layer object.
3 * 5 *
@@ -50,5 +52,3 @@ EAPI void elm_gesture_layer_tap_longpress_cb_add(Evas_Object *obj, Elm_Gesture_S
50 * @ingroup Elm_Gesture_Layer 52 * @ingroup Elm_Gesture_Layer
51 */ 53 */
52EAPI void elm_gesture_layer_tap_longpress_cb_del(Evas_Object *obj, Elm_Gesture_State state, Elm_Gesture_Event_Cb cb, void *data); 54EAPI void elm_gesture_layer_tap_longpress_cb_del(Evas_Object *obj, Elm_Gesture_State state, Elm_Gesture_Event_Cb cb, void *data);
53
54#include "elm_gesture_layer.eo.legacy.h"