summaryrefslogtreecommitdiff
path: root/efl
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-10-06 20:39:51 +0200
committerDave Andreoli <dave@gurumeditation.it>2015-10-06 20:39:51 +0200
commit3c20338884f40eca42bf45070d3694fd1583c180 (patch)
tree0d4ba865fd62fb41c60861ac53a50f85b5f426b4 /efl
parent95846a8eaaf46a304723bcca4315f8e58adc2022 (diff)
new 1.16 API: Index.standard_priority and IndexItem.priority
Diffstat (limited to 'efl')
-rw-r--r--efl/elementary/index.pxi40
-rw-r--r--efl/elementary/index_cdef.pxi3
2 files changed, 43 insertions, 0 deletions
diff --git a/efl/elementary/index.pxi b/efl/elementary/index.pxi
index fdcdb4e..d9aebd7 100644
--- a/efl/elementary/index.pxi
+++ b/efl/elementary/index.pxi
@@ -281,6 +281,26 @@ cdef class IndexItem(ObjectItem):
281 def letter_get(self): 281 def letter_get(self):
282 return _ctouni(elm_index_item_letter_get(self.item)) 282 return _ctouni(elm_index_item_letter_get(self.item))
283 283
284 property priority:
285 """The priority of an item.
286
287 The priority is -1 by default, which means that the item doesn't belong
288 to a group. The value of the priority starts from 0.
289 In elm_index_level_go, the items are sorted in ascending order according
290 to priority. Items of the same priority make a group and the primary
291 group is shown by default.
292
293 :type: int
294
295 ..versionadded:: 1.16
296
297 """
298 def __set__(self, int value):
299 elm_index_item_priority_set(self.item, value)
300
301 def priority_set(self, int value):
302 elm_index_item_priority_set(self.item, value)
303
284 304
285cdef class Index(LayoutClass): 305cdef class Index(LayoutClass):
286 """ 306 """
@@ -466,6 +486,26 @@ cdef class Index(LayoutClass):
466 def horizontal_get(self): 486 def horizontal_get(self):
467 return bool(elm_index_horizontal_get(self.obj)) 487 return bool(elm_index_horizontal_get(self.obj))
468 488
489 property standard_priority:
490 """Control standard_priority group of index.
491
492 Priority group will be shown as many items as it can, and other group
493 will be shown one character only.
494
495 :type: int
496
497 ..versionadded:: 1.16
498
499 """
500 def __get__(self):
501 return elm_index_standard_priority_get(self.obj)
502 def __set__(self, int value):
503 elm_index_standard_priority_set(self.obj, value)
504
505 def standard_priority_set(self, int value):
506 elm_index_standard_priority_set(self.obj, value)
507 def standard_priority_get(self):
508 return elm_index_standard_priority_get(self.obj)
469 509
470 property delay_change_time: 510 property delay_change_time:
471 """Delay change time for index object. 511 """Delay change time for index object.
diff --git a/efl/elementary/index_cdef.pxi b/efl/elementary/index_cdef.pxi
index f525ea2..07c5caa 100644
--- a/efl/elementary/index_cdef.pxi
+++ b/efl/elementary/index_cdef.pxi
@@ -23,3 +23,6 @@ cdef extern from "Elementary.h":
23 double elm_index_delay_change_time_get(const Evas_Object *obj) 23 double elm_index_delay_change_time_get(const Evas_Object *obj)
24 void elm_index_omit_enabled_set(Evas_Object *obj, Eina_Bool enabled) 24 void elm_index_omit_enabled_set(Evas_Object *obj, Eina_Bool enabled)
25 Eina_Bool elm_index_omit_enabled_get(const Evas_Object *obj) 25 Eina_Bool elm_index_omit_enabled_get(const Evas_Object *obj)
26 void elm_index_standard_priority_set(Evas_Object *obj, int priority)
27 int elm_index_standard_priority_get(Evas_Object *obj)
28 void elm_index_item_priority_set(Elm_Object_Item *item, int priority)