davemds pushed a commit to branch master. http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=b82ed6f029a272183cbae24291dc9404709b0ab4
commit b82ed6f029a272183cbae24291dc9404709b0ab4 Author: Dave Andreoli <[email protected]> Date: Wed Oct 7 20:58:21 2015 +0200 New 1.16 API: Configuration.scroll_thumbscroll_smooth_* --- efl/elementary/configuration.pxi | 47 +++++++++++++++++++++++++++++++++++ efl/elementary/configuration_cdef.pxi | 6 +++++ 2 files changed, 53 insertions(+) diff --git a/efl/elementary/configuration.pxi b/efl/elementary/configuration.pxi index f3af9e2..76bda93 100644 --- a/efl/elementary/configuration.pxi +++ b/efl/elementary/configuration.pxi @@ -350,6 +350,53 @@ cdef class Configuration(object): def __set__(self, double weight): elm_config_scroll_thumbscroll_acceleration_weight_set(weight) + property scroll_thumbscroll_smooth_start: + """The smooth start mode for scrolling with your finger. + + :type: bool + + .. versionadded:: 1.16 + + """ + def __get__(self): + return elm_config_scroll_thumbscroll_smooth_start_get() + def __set__(self, bint enable): + elm_config_scroll_thumbscroll_smooth_start_set(enable) + + property scroll_thumbscroll_smooth_amount: + """The amount of smoothing to apply to scrolling. + + Scrolling with your finger can be smoothed out and the amount to smooth + is determined by this parameter. 0.0 means to not smooth at all and + 1.0 is to smoth as much as possible. + + :type: float + + .. versionadded:: 1.16 + + """ + def __get__(self): + return elm_config_scroll_thumbscroll_smooth_amount_get() + def __set__(self, double amount): + elm_config_scroll_thumbscroll_smooth_amount_set(amount) + + property scroll_thumbscroll_smooth_time_window: + """The time window to look back at for events for smoothing. + + Scrolling with your finger can be smoothed out and the window of time + to look at is determined by this config. The value is in seconds and + is from 0.0 to 1.0 + + :type: float + + .. versionadded:: 1.16 + + """ + def __get__(self): + return elm_config_scroll_thumbscroll_smooth_time_window_get() + def __set__(self, double amount): + elm_config_scroll_thumbscroll_smooth_time_window_set(amount) + property longpress_timeout: """The duration for occurring long press event. diff --git a/efl/elementary/configuration_cdef.pxi b/efl/elementary/configuration_cdef.pxi index a62f2da..79bb7b5 100644 --- a/efl/elementary/configuration_cdef.pxi +++ b/efl/elementary/configuration_cdef.pxi @@ -100,6 +100,12 @@ cdef extern from "Elementary.h": void elm_config_scroll_thumbscroll_acceleration_time_limit_set(double time_limit) double elm_config_scroll_thumbscroll_acceleration_weight_get() void elm_config_scroll_thumbscroll_acceleration_weight_set(double weight) + Eina_Bool elm_config_scroll_thumbscroll_smooth_start_get() + void elm_config_scroll_thumbscroll_smooth_start_set(Eina_Bool enable) + double elm_config_scroll_thumbscroll_smooth_amount_get() + void elm_config_scroll_thumbscroll_smooth_amount_set(double amount) + double elm_config_scroll_thumbscroll_smooth_time_window_get() + void elm_config_scroll_thumbscroll_smooth_time_window_set(double amount) double elm_config_longpress_timeout_get() void elm_config_longpress_timeout_set(double longpress_timeout) --
