summaryrefslogtreecommitdiff
path: root/src/lib/evas/gesture/efl_canvas_gesture.c
diff options
context:
space:
mode:
authorWoochanlee <wc0917.lee@samsung.com>2019-05-14 16:37:20 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2019-05-14 16:37:20 +0900
commit54175998d538e0b2173fc023bb822f1e6536e58f (patch)
tree5c240f08eff5dddd9a2c6d7b4d1cdfaf948a86a1 /src/lib/evas/gesture/efl_canvas_gesture.c
parentf93eb3fc043fcc945fb2e65a27a05447ac8ce603 (diff)
Gesture Manager: Add gestures and fix gesture managing, recognizer logic.
Summary: https://phab.enlightenment.org/T7544 Provides a way for a user to get a gesture manager, recognizer instance. Supports different recognizer properties for each target(Eo). Gesture, Touch Class Life-cycle re-implementation. for supporting multiple touches. Add below gestures. efl_canvas_gesture_tap efl_canvas_gesture_double_tap efl_canvas_gesture_triple_tap efl_canvas_gesture_long_tap efl_canvas_gesture_momentum efl_canvas_gesture_zoom efl_canvas_gesture_flick Test Plan: Simple test -> test_gesture_framework.c More test cases will upload. Reviewers: woohyun, smohanty, segfaultxavi, Jaehyun_Cho Reviewed By: Jaehyun_Cho Subscribers: Jaehyun_Cho, segfaultxavi, cedric Tags: #efl, #do_not_merge Differential Revision: https://phab.enlightenment.org/D7579
Diffstat (limited to 'src/lib/evas/gesture/efl_canvas_gesture.c')
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/lib/evas/gesture/efl_canvas_gesture.c b/src/lib/evas/gesture/efl_canvas_gesture.c
index 7386a90..9017f82 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture.c
+++ b/src/lib/evas/gesture/efl_canvas_gesture.c
@@ -21,16 +21,29 @@ _efl_canvas_gesture_state_set(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd,
21} 21}
22 22
23EOLIAN static void 23EOLIAN static void
24_efl_canvas_gesture_hotspot_set(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd, Eina_Vector2 hotspot) 24_efl_canvas_gesture_hotspot_set(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd, Eina_Position2D hotspot)
25{ 25{
26 pd->hotspot = hotspot; 26 pd->hotspot = hotspot;
27} 27}
28 28
29 29
30EOLIAN static Eina_Vector2 30EOLIAN static Eina_Position2D
31_efl_canvas_gesture_hotspot_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd) 31_efl_canvas_gesture_hotspot_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd)
32{ 32{
33 return pd->hotspot; 33 return pd->hotspot;
34} 34}
35 35
36#include "efl_canvas_gesture.eo.c" \ No newline at end of file 36EOLIAN static void
37_efl_canvas_gesture_timestamp_set(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd, unsigned int timestamp)
38{
39 pd->timestamp = timestamp;
40}
41
42
43EOLIAN static unsigned int
44_efl_canvas_gesture_timestamp_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd)
45{
46 return pd->timestamp;
47}
48
49#include "efl_canvas_gesture.eo.c"