forked from enlightenment/efl
efl/gesture: remove 'type' member from Efl_Canvas_Gesture_Data
this is no longer used Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D11353
This commit is contained in:
parent
d481cbe83c
commit
25d96317c0
|
@ -3,14 +3,6 @@
|
|||
|
||||
#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)
|
||||
{
|
||||
|
|
|
@ -19,7 +19,6 @@ _efl_canvas_gesture_custom_efl_object_constructor(Eo *obj, Efl_Canvas_Gesture_Cu
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -10,7 +10,6 @@ _efl_canvas_gesture_double_tap_efl_object_constructor(Eo *obj, void *pd EINA_UNU
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -10,7 +10,6 @@ _efl_canvas_gesture_flick_efl_object_constructor(Eo *obj, Efl_Canvas_Gesture_Fli
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -9,7 +9,6 @@ _efl_canvas_gesture_long_tap_efl_object_constructor(Eo *obj, void *pd EINA_UNUSE
|
|||
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -10,7 +10,6 @@ _efl_canvas_gesture_momentum_efl_object_constructor(Eo *obj, Efl_Canvas_Gesture_
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
/* 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);
|
||||
|
@ -139,7 +138,6 @@ struct _Efl_Canvas_Gesture_Recognizer_Custom_Data
|
|||
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;
|
||||
|
|
|
@ -10,7 +10,6 @@ _efl_canvas_gesture_tap_efl_object_constructor(Eo *obj, void *pd EINA_UNUSED)
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -10,7 +10,6 @@ _efl_canvas_gesture_triple_tap_efl_object_constructor(Eo *obj, void *pd EINA_UNU
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -9,7 +9,6 @@ _efl_canvas_gesture_zoom_efl_object_constructor(Eo *obj, Efl_Canvas_Gesture_Zoom
|
|||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue