summaryrefslogtreecommitdiff
path: root/src/lib/evas
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-01-28 12:56:41 -0500
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-02-05 10:10:43 +0100
commitf9dacb581176cf594d1fd838650b33dee4664be6 (patch)
tree3ff4ea8be307b50b22005d7fb75d41f2b6b8011a /src/lib/evas
parentcd9b56b71446caa88c8faa4661e110e2836eaaad (diff)
efl/gesture: remove manager's recognizer_get method
this exposes internal objects that we shouldn't be exposing Reviewed-by: woochan lee <wc0917.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D11221
Diffstat (limited to 'src/lib/evas')
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture_manager.c68
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture_manager.eo7
2 files changed, 0 insertions, 75 deletions
diff --git a/src/lib/evas/gesture/efl_canvas_gesture_manager.c b/src/lib/evas/gesture/efl_canvas_gesture_manager.c
index d05e593cd4..9bed20e62f 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture_manager.c
+++ b/src/lib/evas/gesture/efl_canvas_gesture_manager.c
@@ -369,74 +369,6 @@ _efl_canvas_gesture_manager_recognizer_unregister(Eo *obj EINA_UNUSED, Efl_Canva
369 eina_hash_del(pd->m_recognizers, &type, NULL); 369 eina_hash_del(pd->m_recognizers, &type, NULL);
370} 370}
371 371
372static Efl_Canvas_Gesture_Recognizer *
373_find_match_recognizer(Efl_Canvas_Gesture_Manager_Data *pd, Efl_Canvas_Gesture_Recognizer_Type type)
374{
375 const Efl_Event_Description *event_type;
376
377 switch (type)
378 {
379 case EFL_GESTURE_RECOGNIZER_TYPE_TAP:
380 {
381 event_type = EFL_EVENT_GESTURE_TAP;
382 break;
383 }
384
385 case EFL_GESTURE_RECOGNIZER_TYPE_DOUBLETAP:
386 {
387 event_type = EFL_EVENT_GESTURE_DOUBLE_TAP;
388 break;
389 }
390
391 case EFL_GESTURE_RECOGNIZER_TYPE_TRIPLETAP:
392 {
393 event_type = EFL_EVENT_GESTURE_TRIPLE_TAP;
394 break;
395 }
396
397 case EFL_GESTURE_RECOGNIZER_TYPE_LONGTAP:
398 {
399 event_type = EFL_EVENT_GESTURE_LONG_TAP;
400 break;
401 }
402
403 case EFL_GESTURE_RECOGNIZER_TYPE_MOMENTUM:
404 {
405 event_type = EFL_EVENT_GESTURE_MOMENTUM;
406 break;
407 }
408
409 case EFL_GESTURE_RECOGNIZER_TYPE_FLICK:
410 {
411 event_type = EFL_EVENT_GESTURE_FLICK;
412 break;
413 }
414
415 case EFL_GESTURE_RECOGNIZER_TYPE_ZOOM:
416 {
417 event_type = EFL_EVENT_GESTURE_ZOOM;
418 break;
419 }
420
421 default:
422 return NULL;
423 }
424
425 return eina_hash_find(pd->m_recognizers, &event_type);
426}
427
428EOLIAN static const Efl_Canvas_Gesture_Recognizer *
429_efl_canvas_gesture_manager_recognizer_get(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Manager_Data *pd,
430 Efl_Canvas_Gesture_Recognizer_Type type)
431{
432 Efl_Canvas_Gesture_Recognizer *recognizer = _find_match_recognizer(pd, type);
433
434 if (recognizer)
435 return recognizer;
436 else
437 return NULL;
438}
439
440// EOLIAN static void 372// EOLIAN static void
441// _efl_canvas_gesture_manager_ungrab_all(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Manager_Data *pd, 373// _efl_canvas_gesture_manager_ungrab_all(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Manager_Data *pd,
442// Eo *target) 374// Eo *target)
diff --git a/src/lib/evas/gesture/efl_canvas_gesture_manager.eo b/src/lib/evas/gesture/efl_canvas_gesture_manager.eo
index 1c7f8d2062..8d8d43b4df 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture_manager.eo
+++ b/src/lib/evas/gesture/efl_canvas_gesture_manager.eo
@@ -22,13 +22,6 @@ class @beta Efl.Canvas.Gesture_Manager extends Efl.Object
22 @in recognizer: Efl.Canvas.Gesture_Recognizer; [[The gesture recognizer object.]] 22 @in recognizer: Efl.Canvas.Gesture_Recognizer; [[The gesture recognizer object.]]
23 } 23 }
24 } 24 }
25 recognizer_get {
26 [[Returns the event recognizer object associated with the given $gesture_type.]]
27 params {
28 @in gesture_type: Efl.Canvas.Gesture_Recognizer_Type; [[The gesture event type.]]
29 }
30 return: const(Efl.Canvas.Gesture_Recognizer); [[The gesture recognizer.]]
31 }
32 @property config { 25 @property config {
33 [[This property holds configuration values for the recognizer.]] 26 [[This property holds configuration values for the recognizer.]]
34 set { 27 set {