GestureActions: Add per-action thresholds

Instead of relying on the dnd drag threshold, add per-action
horizontal and vertical thresholds. Use them in the swipe action
as well.

https://bugzilla.gnome.org/show_bug.cgi?id=724242
This commit is contained in:
Bastien Nocera
2014-02-12 17:41:03 +01:00
parent 54e2657cb0
commit 32b3d27bb9
3 changed files with 172 additions and 25 deletions

View File

@ -155,6 +155,16 @@ void clutter_gesture_action_set_threshold_trigger_edg
CLUTTER_AVAILABLE_IN_1_18
ClutterGestureTriggerEdge clutter_gesture_action_get_threshold_trigger_egde (ClutterGestureAction *action);
CLUTTER_AVAILABLE_IN_1_18
void clutter_gesture_action_set_threshold_trigger_distance (ClutterGestureAction *action,
float x,
float y);
CLUTTER_AVAILABLE_IN_1_18
void clutter_gesture_action_get_threshold_trigger_distance (ClutterGestureAction *action,
float *x,
float *y);
G_END_DECLS
#endif /* __CLUTTER_GESTURE_ACTION_H__ */