forked from enlightenment/efl
efl/gesture: expose 'continues' as a public property for recognizers
we still access this using private data in the in-tree recognizers, but now it's also accessible normally to custom recognizers ref T8503 Reviewed-by: woochan lee <wc0917.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D11175
This commit is contained in:
parent
54cb6e04d2
commit
159b73c0d8
|
@ -1,6 +1,8 @@
|
||||||
|
#define EFL_CANVAS_GESTURE_RECOGNIZER_PROTECTED
|
||||||
#include "efl_canvas_gesture_private.h"
|
#include "efl_canvas_gesture_private.h"
|
||||||
|
|
||||||
#define MY_CLASS EFL_CANVAS_GESTURE_RECOGNIZER_CLASS
|
#define MY_CLASS EFL_CANVAS_GESTURE_RECOGNIZER_CLASS
|
||||||
|
#include "efl_canvas_gesture_recognizer.eo.h"
|
||||||
|
|
||||||
EOLIAN static Eina_Value *
|
EOLIAN static Eina_Value *
|
||||||
_efl_canvas_gesture_recognizer_config_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Recognizer_Data *pd, const char *name)
|
_efl_canvas_gesture_recognizer_config_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Recognizer_Data *pd, const char *name)
|
||||||
|
@ -14,6 +16,19 @@ _efl_canvas_gesture_recognizer_reset(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Rec
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
EOLIAN static Eina_Bool
|
||||||
|
_efl_canvas_gesture_recognizer_continues_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Recognizer_Data *pd)
|
||||||
|
{
|
||||||
|
return pd->continues;
|
||||||
|
}
|
||||||
|
|
||||||
|
EOLIAN static void
|
||||||
|
_efl_canvas_gesture_recognizer_continues_set(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Recognizer_Data *pd, Eina_Bool value)
|
||||||
|
{
|
||||||
|
pd->continues = !!value;
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
_direction_get(Evas_Coord xx1, Evas_Coord xx2)
|
_direction_get(Evas_Coord xx1, Evas_Coord xx2)
|
||||||
{
|
{
|
||||||
|
|
|
@ -51,5 +51,17 @@ abstract @beta Efl.Canvas.Gesture_Recognizer extends Efl.Object
|
||||||
value: any_value_ref; [[Value of the property.]]
|
value: any_value_ref; [[Value of the property.]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@property continues {
|
||||||
|
[[This property determines whether a gesture recognizer should continue
|
||||||
|
to try processing events after returning @Efl.Canvas.Gesture_Recognizer_Result.finish
|
||||||
|
or @Efl.Canvas.Gesture_Recognizer_Result.cancel.]]
|
||||||
|
get @protected {
|
||||||
|
}
|
||||||
|
set @protected {
|
||||||
|
}
|
||||||
|
values {
|
||||||
|
value: bool; [[Value of the property.]]
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue