summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-05-19 19:57:29 +0200
committerdavemds <dave@gurumeditation.it>2014-05-19 19:57:29 +0200
commitecd70f7d81a940e3504c1024de799c80ffaa7cdb (patch)
treeb3b2e41f2531251452943b0a024d2d98412ef6d2
parent7b6732f2ab36e2c57aa142cabd847f81067e9a30 (diff)
Add new Object.scroll_item_loop_enabled property
-rw-r--r--efl/elementary/object.pxd2
-rw-r--r--efl/elementary/object.pyx24
2 files changed, 26 insertions, 0 deletions
diff --git a/efl/elementary/object.pxd b/efl/elementary/object.pxd
index b54e7dd..4c68e2d 100644
--- a/efl/elementary/object.pxd
+++ b/efl/elementary/object.pxd
@@ -128,6 +128,8 @@ cdef extern from "Elementary.h":
128 void elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock) 128 void elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock)
129 Eina_Bool elm_object_scroll_lock_x_get(const Evas_Object *obj) 129 Eina_Bool elm_object_scroll_lock_x_get(const Evas_Object *obj)
130 Eina_Bool elm_object_scroll_lock_y_get(const Evas_Object *obj) 130 Eina_Bool elm_object_scroll_lock_y_get(const Evas_Object *obj)
131 void elm_object_scroll_item_loop_enabled_set(Evas_Object *obj, Eina_Bool enable)
132 Eina_Bool elm_object_scroll_item_loop_enabled_get(const Evas_Object *obj)
131 133
132 # Object - Theme (elm_theme.h) 134 # Object - Theme (elm_theme.h)
133 void elm_object_theme_set(Evas_Object *obj, Elm_Theme *th) 135 void elm_object_theme_set(Evas_Object *obj, Elm_Theme *th)
diff --git a/efl/elementary/object.pyx b/efl/elementary/object.pyx
index 6604b09..922c30d 100644
--- a/efl/elementary/object.pyx
+++ b/efl/elementary/object.pyx
@@ -1360,6 +1360,30 @@ cdef class Object(evasObject):
1360 def scroll_lock_y_get(self): 1360 def scroll_lock_y_get(self):
1361 return bool(elm_object_scroll_lock_y_get(self.obj)) 1361 return bool(elm_object_scroll_lock_y_get(self.obj))
1362 1362
1363 property scroll_item_loop_enabled:
1364 """Enable item loop feature of the given widget
1365
1366 If this is True, item selection/focus will loop internally.
1367 This means if arrow keys are pressed at end of scroller's item,
1368 screen is moved to opposite side.
1369
1370 :type: bool
1371
1372 .. versionadded:: 1.10
1373
1374 """
1375 def __get__(self):
1376 return bool(elm_object_scroll_item_loop_enabled_get(self.obj))
1377
1378 def __set__(self, enable):
1379 elm_object_scroll_item_loop_enabled_set(self.obj, enable)
1380
1381 def scroll_item_loop_enabled_set(self, enable):
1382 elm_object_scroll_item_loop_enabled_set(self.obj, enable)
1383 def scroll_item_loop_enabled_get(self):
1384 return bool(elm_object_scroll_item_loop_enabled_get(self.obj))
1385
1386
1363 # 1387 #
1364 # Theme 1388 # Theme
1365 # ===== 1389 # =====