summaryrefslogtreecommitdiff
path: root/efl
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-10-07 20:58:21 +0200
committerDave Andreoli <dave@gurumeditation.it>2015-10-07 20:58:21 +0200
commitb82ed6f029a272183cbae24291dc9404709b0ab4 (patch)
tree3108843c95865a15e954fe868b5a81e592cbd9fa /efl
parentdf1719d4c962ea08daa84ca0455526c54ab09bc9 (diff)
New 1.16 API: Configuration.scroll_thumbscroll_smooth_*
Diffstat (limited to 'efl')
-rw-r--r--efl/elementary/configuration.pxi47
-rw-r--r--efl/elementary/configuration_cdef.pxi6
2 files changed, 53 insertions, 0 deletions
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):
350 def __set__(self, double weight): 350 def __set__(self, double weight):
351 elm_config_scroll_thumbscroll_acceleration_weight_set(weight) 351 elm_config_scroll_thumbscroll_acceleration_weight_set(weight)
352 352
353 property scroll_thumbscroll_smooth_start:
354 """The smooth start mode for scrolling with your finger.
355
356 :type: bool
357
358 .. versionadded:: 1.16
359
360 """
361 def __get__(self):
362 return elm_config_scroll_thumbscroll_smooth_start_get()
363 def __set__(self, bint enable):
364 elm_config_scroll_thumbscroll_smooth_start_set(enable)
365
366 property scroll_thumbscroll_smooth_amount:
367 """The amount of smoothing to apply to scrolling.
368
369 Scrolling with your finger can be smoothed out and the amount to smooth
370 is determined by this parameter. 0.0 means to not smooth at all and
371 1.0 is to smoth as much as possible.
372
373 :type: float
374
375 .. versionadded:: 1.16
376
377 """
378 def __get__(self):
379 return elm_config_scroll_thumbscroll_smooth_amount_get()
380 def __set__(self, double amount):
381 elm_config_scroll_thumbscroll_smooth_amount_set(amount)
382
383 property scroll_thumbscroll_smooth_time_window:
384 """The time window to look back at for events for smoothing.
385
386 Scrolling with your finger can be smoothed out and the window of time
387 to look at is determined by this config. The value is in seconds and
388 is from 0.0 to 1.0
389
390 :type: float
391
392 .. versionadded:: 1.16
393
394 """
395 def __get__(self):
396 return elm_config_scroll_thumbscroll_smooth_time_window_get()
397 def __set__(self, double amount):
398 elm_config_scroll_thumbscroll_smooth_time_window_set(amount)
399
353 property longpress_timeout: 400 property longpress_timeout:
354 """The duration for occurring long press event. 401 """The duration for occurring long press event.
355 402
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":
100 void elm_config_scroll_thumbscroll_acceleration_time_limit_set(double time_limit) 100 void elm_config_scroll_thumbscroll_acceleration_time_limit_set(double time_limit)
101 double elm_config_scroll_thumbscroll_acceleration_weight_get() 101 double elm_config_scroll_thumbscroll_acceleration_weight_get()
102 void elm_config_scroll_thumbscroll_acceleration_weight_set(double weight) 102 void elm_config_scroll_thumbscroll_acceleration_weight_set(double weight)
103 Eina_Bool elm_config_scroll_thumbscroll_smooth_start_get()
104 void elm_config_scroll_thumbscroll_smooth_start_set(Eina_Bool enable)
105 double elm_config_scroll_thumbscroll_smooth_amount_get()
106 void elm_config_scroll_thumbscroll_smooth_amount_set(double amount)
107 double elm_config_scroll_thumbscroll_smooth_time_window_get()
108 void elm_config_scroll_thumbscroll_smooth_time_window_set(double amount)
103 109
104 double elm_config_longpress_timeout_get() 110 double elm_config_longpress_timeout_get()
105 void elm_config_longpress_timeout_set(double longpress_timeout) 111 void elm_config_longpress_timeout_set(double longpress_timeout)