summaryrefslogtreecommitdiff
path: root/src/lib/evas/gesture/efl_gesture_long_tap.c
blob: 64f39a4975d1fb0498a00fce0d8c109a21fb7147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "efl_gesture_private.h"

#define MY_CLASS EFL_GESTURE_LONG_TAP_CLASS


EOLIAN static void
_efl_gesture_long_tap_position_set(Eo *obj EINA_UNUSED, Efl_Gesture_Long_Tap_Data *pd,
                                   Eina_Vector2 pos)
{
   pd->pos = pos;
}

EOLIAN static Eina_Vector2
_efl_gesture_long_tap_position_get(Eo *obj EINA_UNUSED, Efl_Gesture_Long_Tap_Data *pd)
{
   return pd->pos;
}

EOLIAN static Efl_Object *
_efl_gesture_long_tap_efl_object_constructor(Eo *obj, Efl_Gesture_Long_Tap_Data *pd EINA_UNUSED)
{
   Efl_Gesture_Data *gd;

   obj = efl_constructor(efl_super(obj, MY_CLASS));
   gd = efl_data_scope_get(obj, EFL_GESTURE_CLASS);
   gd->type = EFL_EVENT_GESTURE_LONG_TAP;

   return obj;
}

EOLIAN static void
_efl_gesture_long_tap_efl_object_destructor(Eo *obj, Efl_Gesture_Long_Tap_Data *pd)
{
   if (pd->timeout)
     ecore_timer_del(pd->timeout);

   efl_destructor(efl_super(obj, MY_CLASS));
}

#include "efl_gesture_long_tap.eo.c"