summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWoochanlee <wc0917.lee@samsung.com>2019-06-11 16:17:47 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2019-06-11 16:17:48 +0900
commite67c1f28d12dc0f1a150994835ea1d409e9fe17e (patch)
tree21e6ce21d23866a70bbafaa2673143783ba6a7ec
parent6e048a4069e0d938f8e678126385b40331e84f2e (diff)
efl_ui_win: Added more gesture config values for gesture manager.
Summary: https://phab.enlightenment.org/T7544 This is for set config values for gesture manager. C# will use gesture manager instead of elm_gesture_layer. Those config values should import to gesture manager to recognize and handle gestures. Reviewers: segfaultxavi, stefan_schmidt, bu5hm4n, zmike, Jaehyun_Cho Reviewed By: Jaehyun_Cho Subscribers: Jaehyun_Cho, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7962
-rw-r--r--src/lib/elementary/efl_ui_win.c34
1 files changed, 31 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 9091e56e73..2e24a00b99 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -5118,9 +5118,37 @@ _gesture_manager_config_load(Eo *obj)
5118 eina_value_set(&val, _elm_config->glayer_double_tap_timeout); 5118 eina_value_set(&val, _elm_config->glayer_double_tap_timeout);
5119 efl_gesture_manager_config_set(gm, "glayer_double_tap_timeout", &val); 5119 efl_gesture_manager_config_set(gm, "glayer_double_tap_timeout", &val);
5120 5120
5121 eina_value_setup(&val, EINA_VALUE_TYPE_INT); 5121 eina_value_set(&val, _elm_config->thumbscroll_friction);
5122 eina_value_set(&val, _elm_config->glayer_tap_finger_size); 5122 efl_gesture_manager_config_set(gm, "thumbscroll_friction", &val);
5123 efl_gesture_manager_config_set(gm, "glayer_tap_finger_size", &val); 5123
5124 eina_value_set(&val, _elm_config->thumbscroll_momentum_threshold);
5125 efl_gesture_manager_config_set(gm, "thumbscroll_momentum_threshold", &val);
5126
5127 eina_value_set(&val, _elm_config->glayer_line_min_length);
5128 efl_gesture_manager_config_set(gm, "glayer_line_min_length", &val);
5129
5130 eina_value_set(&val, _elm_config->glayer_line_distance_tolerance);
5131 efl_gesture_manager_config_set(gm, "glayer_line_distance_tolerance", &val);
5132
5133 eina_value_set(&val, _elm_config->glayer_line_angular_tolerance);
5134 efl_gesture_manager_config_set(gm, "glayer_line_angular_tolerance", &val);
5135
5136 eina_value_set(&val, _elm_config->glayer_zoom_finger_factor);
5137 efl_gesture_manager_config_set(gm, "glayer_zoom_finger_factor", &val);
5138
5139 eina_value_set(&val, _elm_config->glayer_zoom_distance_tolerance);
5140 efl_gesture_manager_config_set(gm, "glayer_zoom_distance_tolerance", &val);
5141
5142 eina_value_setup(&val, EINA_VALUE_TYPE_UINT);
5143 eina_value_set(&val, _elm_config->glayer_flick_time_limit_ms);
5144 efl_gesture_manager_config_set(gm, "glayer_flick_time_limit_ms", &val);
5145
5146 eina_value_setup(&val, EINA_VALUE_TYPE_UCHAR);
5147 eina_value_set(&val, _elm_config->glayer_continues_enable);
5148 efl_gesture_manager_config_set(gm, "glayer_continues_enable", &val);
5149
5150 eina_value_set(&val, _elm_config->glayer_zoom_finger_enable);
5151 efl_gesture_manager_config_set(gm, "glayer_zoom_finger_enable", &val);
5124} 5152}
5125 5153
5126static Eo * 5154static Eo *