#define MY_CLASS EFL_CANVAS_GESTURE_CLASS
-const Efl_Event_Description *
-_efl_gesture_type_get(const Eo *obj)
-{
- Efl_Canvas_Gesture_Data *pd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
-
- return pd->type;
-}
-
EOLIAN static Efl_Canvas_Gesture_State
_efl_canvas_gesture_state_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd)
{
obj = efl_constructor(efl_super(obj, MY_CLASS));
gd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
- gd->type = EFL_EVENT_GESTURE_CUSTOM;
return obj;
}
obj = efl_constructor(efl_super(obj, MY_CLASS));
gd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
- gd->type = EFL_EVENT_GESTURE_DOUBLE_TAP;
return obj;
}
obj = efl_constructor(efl_super(obj, MY_CLASS));
gd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
- gd->type = EFL_EVENT_GESTURE_FLICK;
return obj;
}
obj = efl_constructor(efl_super(obj, MY_CLASS));
gd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
- gd->type = EFL_EVENT_GESTURE_LONG_TAP;
return obj;
}
obj = efl_constructor(efl_super(obj, MY_CLASS));
gd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
- gd->type = EFL_EVENT_GESTURE_MOMENTUM;
return obj;
}
/* milliseconds */
#define TAP_TOUCH_TIME_THRESHOLD (0.1 * 1000)
-const Efl_Event_Description * _efl_gesture_type_get(const Eo *obj);
int _direction_get(Evas_Coord xx1, Evas_Coord xx2);
Eina_Value *_recognizer_config_get(const Eo *obj, const char *name);
Eina_Bool _event_multi_touch_get(const Efl_Canvas_Gesture_Touch *event);
struct _Efl_Canvas_Gesture_Data
{
Efl_Canvas_Gesture_State state;
- const Efl_Event_Description *type;
Eina_Position2D hotspot;
unsigned int timestamp;
unsigned int touch_count;
obj = efl_constructor(efl_super(obj, MY_CLASS));
gd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
- gd->type = EFL_EVENT_GESTURE_TAP;
return obj;
}
obj = efl_constructor(efl_super(obj, MY_CLASS));
gd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
- gd->type = EFL_EVENT_GESTURE_TRIPLE_TAP;
return obj;
}
obj = efl_constructor(efl_super(obj, MY_CLASS));
gd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
- gd->type = EFL_EVENT_GESTURE_ZOOM;
return obj;
}