+#define EFL_CANVAS_GESTURE_PROTECTED
#include "efl_canvas_gesture_private.h"
#define MY_CLASS EFL_CANVAS_GESTURE_CLASS
return pd->timestamp;
}
+EOLIAN static void
+_efl_canvas_gesture_touch_count_set(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd, unsigned int touch_count)
+{
+ pd->touch_count = touch_count;
+}
+
+EOLIAN static unsigned int
+_efl_canvas_gesture_touch_count_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd)
+{
+ return pd->touch_count;
+}
+
#include "efl_canvas_gesture.eo.c"
#include "efl_canvas_gesture_events.eo.c"
timestamp: uint;[[The time-stamp.]]
}
}
+ @property touch_count {
+ [[The current number of touch points recorded in the gesture.]]
+ get {
+ }
+ set @protected {
+ }
+ values {
+ touch_count: uint;[[The count of the touch points.]]
+ }
+ }
}
}
+#define EFL_CANVAS_GESTURE_PROTECTED
#include "efl_canvas_gesture_private.h"
#define MY_CLASS EFL_CANVAS_GESTURE_MANAGER_CLASS
if (!gesture)
continue;
+ /* this is the "default" value for the event, recognizers may modify it if necessary */
+ efl_gesture_touch_count_set(gesture, efl_gesture_touch_points_count_get(touch_event));
+
//Gesture detecting.
recog_result = efl_gesture_recognizer_recognize(recognizer, gesture, target, touch_event);
recog_state = recog_result & EFL_GESTURE_RECOGNIZER_RESULT_RESULT_MASK;
Efl_Canvas_Gesture_State state;
Eina_Position2D hotspot;
unsigned int timestamp;
+ unsigned int touch_count;
};
struct _Efl_Canvas_Gesture_Momentum_Data
return pd->multi_touch;
}
+EOLIAN static unsigned int
+_efl_canvas_gesture_touch_touch_points_count_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Touch_Data *pd)
+{
+ return pd->touch_down;
+}
+
EOLIAN static const Efl_Gesture_Touch_Point_Data *
_efl_canvas_gesture_touch_cur_data_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Touch_Data *pd)
{
return: bool; [[returns $true if its a multi touch]]
}
}
+ @property touch_points_count {
+ [[This provides the number of touch points active.]]
+ get {
+ }
+ values {
+ touch_count: uint; [[The number of active touch points.]]
+ }
+ }
@property state {
[[This property holds the state of the touch event.]]
get {