summaryrefslogtreecommitdiff
path: root/src/lib/evas/gesture/efl_canvas_gesture_momentum.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_momentum.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_momentum.c')
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture_momentum.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/lib/evas/gesture/efl_canvas_gesture_momentum.c b/src/lib/evas/gesture/efl_canvas_gesture_momentum.c
new file mode 100644
index 0000000..e7eb34a
--- /dev/null
+++ b/src/lib/evas/gesture/efl_canvas_gesture_momentum.c
@@ -0,0 +1,24 @@
1#include "efl_canvas_gesture_private.h"
2
3#define MY_CLASS EFL_CANVAS_GESTURE_MOMENTUM_CLASS
4
5EOLIAN static Efl_Object *
6_efl_canvas_gesture_momentum_efl_object_constructor(Eo *obj, Efl_Canvas_Gesture_Momentum_Data *pd EINA_UNUSED)
7{
8 Efl_Canvas_Gesture_Data *gd;
9
10 obj = efl_constructor(efl_super(obj, MY_CLASS));
11
12 gd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
13 gd->type = EFL_EVENT_GESTURE_MOMENTUM;
14
15 return obj;
16}
17
18EOLIAN static Eina_Vector2
19_efl_canvas_gesture_momentum_momentum_get(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Momentum_Data *pd)
20{
21 return pd->momentum;
22}
23
24#include "efl_canvas_gesture_momentum.eo.c"