summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-01-24 13:58:40 -0500
committerMike Blumenkrantz <zmike@samsung.com>2020-01-24 14:22:14 -0500
commit30668b44a244132a2ca7872f5a867f245e0e2e0d (patch)
tree241f88a948125e8ff1bc3bb7212be1704a6fa4f2
parented228d2495a038a9279f2cee3a57d7a82105e3ac (diff)
downloadefl-30668b44a244132a2ca7872f5a867f245e0e2e0d.tar.gz
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 Differential Revision: https://phab.enlightenment.org/D11175
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture_recognizer.c15
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture_recognizer.eo12
2 files changed, 27 insertions, 0 deletions
diff --git a/src/lib/evas/gesture/efl_canvas_gesture_recognizer.c b/src/lib/evas/gesture/efl_canvas_gesture_recognizer.c
index 790f9eafdd..3094e73b8d 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture_recognizer.c
+++ b/src/lib/evas/gesture/efl_canvas_gesture_recognizer.c
@@ -1,6 +1,8 @@
+#define EFL_CANVAS_GESTURE_RECOGNIZER_PROTECTED
#include "efl_canvas_gesture_private.h"
#define MY_CLASS EFL_CANVAS_GESTURE_RECOGNIZER_CLASS
+#include "efl_canvas_gesture_recognizer.eo.h"
EOLIAN static Eina_Value *
_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
_direction_get(Evas_Coord xx1, Evas_Coord xx2)
{
diff --git a/src/lib/evas/gesture/efl_canvas_gesture_recognizer.eo b/src/lib/evas/gesture/efl_canvas_gesture_recognizer.eo
index 0307aa22a1..a025d04066 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture_recognizer.eo
+++ b/src/lib/evas/gesture/efl_canvas_gesture_recognizer.eo
@@ -51,5 +51,17 @@ abstract @beta Efl.Canvas.Gesture_Recognizer extends Efl.Object
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.]]
+ }
+ }
}
}