davemds pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=105743d304abbfcb2c15457e0284ec3c1d9dbe38

commit 105743d304abbfcb2c15457e0284ec3c1d9dbe38
Author: Dave Andreoli <[email protected]>
Date:   Tue Aug 9 15:56:25 2016 +0200

    New 1.18 API: elm.Configuration.scroll_accel_factor
---
 efl/elementary/configuration.pxi      | 19 +++++++++++++++++++
 efl/elementary/configuration_cdef.pxi |  2 ++
 2 files changed, 21 insertions(+)

diff --git a/efl/elementary/configuration.pxi b/efl/elementary/configuration.pxi
index 421e148..cac82f2 100644
--- a/efl/elementary/configuration.pxi
+++ b/efl/elementary/configuration.pxi
@@ -253,6 +253,25 @@ cdef class Configuration(object):
         def __set__(self, double friction):
             elm_config_scroll_zoom_friction_set(friction)
 
+    property scroll_accel_factor:
+        """Scroll acceleration factor.
+        
+        Using a mouse wheel or touchpad to scroll will result in events
+        being processed. If events occur quickly, the scroll amount will
+        be multiplied by this value to accelerate the scrolling.
+        Accepted value range from 0 to 10, where 0 means no accelleration
+        and 10 means maximum acceleration.
+
+        :type: float
+
+        .. versionadded:: 1.18
+
+        """
+        def __get__(self):
+            return elm_config_scroll_accel_factor_get()
+        def __set__(self, double accel):
+            elm_config_scroll_accel_factor_set(accel)
+
     property scroll_thumbscroll_enabled:
         """Whether scrollers should be draggable from any point in their views.
 
diff --git a/efl/elementary/configuration_cdef.pxi 
b/efl/elementary/configuration_cdef.pxi
index 48ec70c..339e02a 100644
--- a/efl/elementary/configuration_cdef.pxi
+++ b/efl/elementary/configuration_cdef.pxi
@@ -78,6 +78,8 @@ cdef extern from "Elementary.h":
     void                    
elm_config_scroll_bring_in_scroll_friction_set(double friction)
     double                  elm_config_scroll_zoom_friction_get()
     void                    elm_config_scroll_zoom_friction_set(double 
friction)
+    double                  elm_config_scroll_accel_factor_get()
+    void                    elm_config_scroll_accel_factor_set(double factor)
 
     Eina_Bool               elm_config_scroll_thumbscroll_enabled_get()
     void                    
elm_config_scroll_thumbscroll_enabled_set(Eina_Bool enabled)

-- 


Reply via email to