New 1.18 API: edje.Edje.part_box_insert_after()
This commit is contained in:
parent
e47f403a0b
commit
f59e7c0c18
|
@ -975,6 +975,22 @@ cdef class Edje(Object):
|
|||
<const char *>part if part is not None else NULL,
|
||||
obj.obj, reference.obj))
|
||||
|
||||
def part_box_insert_after(self, part, Object obj, Object reference):
|
||||
"""Inserts an item in a BOX part after the reference object.
|
||||
|
||||
:param part: the name of the BOX part
|
||||
:param obj: the efl.evas.Object to append
|
||||
:param reference: the efl.evas.Object used as reference
|
||||
:rtype: bool
|
||||
|
||||
.. versionadded:: 1.18
|
||||
|
||||
"""
|
||||
if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
|
||||
return bool(edje_object_part_box_insert_after(self.obj,
|
||||
<const char *>part if part is not None else NULL,
|
||||
obj.obj, reference.obj))
|
||||
|
||||
def part_box_remove(self, part, Object obj):
|
||||
"""Removes the object given from a BOX part.
|
||||
|
||||
|
|
|
@ -417,7 +417,8 @@ cdef extern from "Edje.h":
|
|||
Eina_Bool edje_object_part_box_append(Evas_Object *obj, char *part, Evas_Object *child)
|
||||
Eina_Bool edje_object_part_box_prepend(Evas_Object *obj, char *part, Evas_Object *child)
|
||||
Eina_Bool edje_object_part_box_insert_at(Evas_Object *obj, char *part, Evas_Object *child, unsigned int pos)
|
||||
Eina_Bool edje_object_part_box_insert_before(Evas_Object *obj, char *part, Evas_Object *child, Evas_Object *reference)
|
||||
Eina_Bool edje_object_part_box_insert_before(Evas_Object *obj, char *part, Evas_Object *child, const Evas_Object *reference)
|
||||
Eina_Bool edje_object_part_box_insert_after(Evas_Object *obj, char *part, Evas_Object *child, const Evas_Object *reference)
|
||||
Evas_Object *edje_object_part_box_remove(Evas_Object *obj, char *part, Evas_Object *child)
|
||||
Evas_Object *edje_object_part_box_remove_at(Evas_Object *obj, char *part, unsigned int pos)
|
||||
Eina_Bool edje_object_part_box_remove_all(Evas_Object *obj, char *part, int clear)
|
||||
|
@ -569,4 +570,4 @@ cdef class Edje(Object):
|
|||
cdef message_send_set(self, int id, data)
|
||||
|
||||
|
||||
cdef ExternalParam ExternalParam_from_ptr(Edje_External_Param *param)
|
||||
cdef ExternalParam ExternalParam_from_ptr(Edje_External_Param *param)
|
||||
|
|
Loading…
Reference in New Issue