summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2015-03-09 13:11:15 +0200
committerKai Huuhko <kai.huuhko@gmail.com>2015-03-09 13:11:15 +0200
commit9dbff82aacc182bf66d9c799641d5b8c8707da4c (patch)
treee8aa01e890513d9d7baaa5d697f0410919abaf08
parent3dd81c4f604bb6ce141016f6c95e2359cdf592d5 (diff)
Evas: Copy SO methods member_add/del to Object.smart_member_add/del
-rw-r--r--efl/evas/efl.evas_object.pxi20
-rw-r--r--efl/evas/efl.evas_object_smart.pxi7
2 files changed, 24 insertions, 3 deletions
diff --git a/efl/evas/efl.evas_object.pxi b/efl/evas/efl.evas_object.pxi
index e89eee0..34eefef 100644
--- a/efl/evas/efl.evas_object.pxi
+++ b/efl/evas/efl.evas_object.pxi
@@ -255,6 +255,26 @@ cdef class Object(Eo):
255# def __get__(self): 255# def __get__(self):
256# return self.type_get() 256# return self.type_get()
257 257
258 def smart_member_add(self, SmartObject parent):
259 """
260
261 Set this object as a member of the parent object.
262
263 Members will automatically be stacked and layered with the smart
264 object. The various stacking function will operate on members relative
265 to the other members instead of the entire canvas.
266
267 Non-member objects can not interleave a smart object's members.
268
269 :note: if this object is already member of another SmartObject, it
270 will be deleted from that membership and added to the given object.
271 """
272 evas_object_smart_member_add(self.obj, parent.obj)
273
274 def smart_member_del(self):
275 """Removes this object as a member of a smart object."""
276 evas_object_smart_member_del(self.obj)
277
258 property layer: 278 property layer:
259 """Object's layer number. 279 """Object's layer number.
260 280
diff --git a/efl/evas/efl.evas_object_smart.pxi b/efl/evas/efl.evas_object_smart.pxi
index 4e4ccb4..e8127e5 100644
--- a/efl/evas/efl.evas_object_smart.pxi
+++ b/efl/evas/efl.evas_object_smart.pxi
@@ -615,7 +615,7 @@ cdef class SmartObject(Object):
615 # return object_from_instance(evas_object_parent_get(self.obj)) 615 # return object_from_instance(evas_object_parent_get(self.obj))
616 616
617 def member_add(self, Object child): 617 def member_add(self, Object child):
618 """member_add(Object child) 618 """
619 619
620 Set an evas object as a member of this object. 620 Set an evas object as a member of this object.
621 621
@@ -630,8 +630,9 @@ cdef class SmartObject(Object):
630 """ 630 """
631 evas_object_smart_member_add(child.obj, self.obj) 631 evas_object_smart_member_add(child.obj, self.obj)
632 632
633 def member_del(self, Object child): 633 @staticmethod
634 """member_del(Object child) 634 def member_del(Object child):
635 """
635 636
636 Removes a member object from a smart object. 637 Removes a member object from a smart object.
637 638