summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-08-09 20:40:02 +0200
committerDave Andreoli <dave@gurumeditation.it>2016-08-09 20:40:02 +0200
commitf59e7c0c1843d8c4e18ce885478860d5119e8cc2 (patch)
tree8a245b4913ed0ba286a74193294a242e4a7b4ab3
parente47f403a0bb668ce6a901ad1d3806a91e332df80 (diff)
New 1.18 API: edje.Edje.part_box_insert_after()
Diffstat (limited to '')
-rw-r--r--efl/edje/efl.edje_object.pxi16
-rw-r--r--include/efl.edje.pxd5
2 files changed, 19 insertions, 2 deletions
diff --git a/efl/edje/efl.edje_object.pxi b/efl/edje/efl.edje_object.pxi
index 1366761..6261568 100644
--- a/efl/edje/efl.edje_object.pxi
+++ b/efl/edje/efl.edje_object.pxi
@@ -975,6 +975,22 @@ cdef class Edje(Object):
975 <const char *>part if part is not None else NULL, 975 <const char *>part if part is not None else NULL,
976 obj.obj, reference.obj)) 976 obj.obj, reference.obj))
977 977
978 def part_box_insert_after(self, part, Object obj, Object reference):
979 """Inserts an item in a BOX part after the reference object.
980
981 :param part: the name of the BOX part
982 :param obj: the efl.evas.Object to append
983 :param reference: the efl.evas.Object used as reference
984 :rtype: bool
985
986 .. versionadded:: 1.18
987
988 """
989 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
990 return bool(edje_object_part_box_insert_after(self.obj,
991 <const char *>part if part is not None else NULL,
992 obj.obj, reference.obj))
993
978 def part_box_remove(self, part, Object obj): 994 def part_box_remove(self, part, Object obj):
979 """Removes the object given from a BOX part. 995 """Removes the object given from a BOX part.
980 996
diff --git a/include/efl.edje.pxd b/include/efl.edje.pxd
index c87de8b..0dacd48 100644
--- a/include/efl.edje.pxd
+++ b/include/efl.edje.pxd
@@ -417,7 +417,8 @@ cdef extern from "Edje.h":
417 Eina_Bool edje_object_part_box_append(Evas_Object *obj, char *part, Evas_Object *child) 417 Eina_Bool edje_object_part_box_append(Evas_Object *obj, char *part, Evas_Object *child)
418 Eina_Bool edje_object_part_box_prepend(Evas_Object *obj, char *part, Evas_Object *child) 418 Eina_Bool edje_object_part_box_prepend(Evas_Object *obj, char *part, Evas_Object *child)
419 Eina_Bool edje_object_part_box_insert_at(Evas_Object *obj, char *part, Evas_Object *child, unsigned int pos) 419 Eina_Bool edje_object_part_box_insert_at(Evas_Object *obj, char *part, Evas_Object *child, unsigned int pos)
420 Eina_Bool edje_object_part_box_insert_before(Evas_Object *obj, char *part, Evas_Object *child, Evas_Object *reference) 420 Eina_Bool edje_object_part_box_insert_before(Evas_Object *obj, char *part, Evas_Object *child, const Evas_Object *reference)
421 Eina_Bool edje_object_part_box_insert_after(Evas_Object *obj, char *part, Evas_Object *child, const Evas_Object *reference)
421 Evas_Object *edje_object_part_box_remove(Evas_Object *obj, char *part, Evas_Object *child) 422 Evas_Object *edje_object_part_box_remove(Evas_Object *obj, char *part, Evas_Object *child)
422 Evas_Object *edje_object_part_box_remove_at(Evas_Object *obj, char *part, unsigned int pos) 423 Evas_Object *edje_object_part_box_remove_at(Evas_Object *obj, char *part, unsigned int pos)
423 Eina_Bool edje_object_part_box_remove_all(Evas_Object *obj, char *part, int clear) 424 Eina_Bool edje_object_part_box_remove_all(Evas_Object *obj, char *part, int clear)
@@ -569,4 +570,4 @@ cdef class Edje(Object):
569 cdef message_send_set(self, int id, data) 570 cdef message_send_set(self, int id, data)
570 571
571 572
572cdef ExternalParam ExternalParam_from_ptr(Edje_External_Param *param) \ No newline at end of file 573cdef ExternalParam ExternalParam_from_ptr(Edje_External_Param *param)