Evas object: rename smart_parent to render_parent and mark as protected.
This commit is contained in:
parent
8c1776d177
commit
878a3d952c
|
@ -964,13 +964,20 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface, Efl.Gfx.Base, Efl.Gfx.Stac
|
||||||
return: const(list<Evas.Object*>)* @warn_unused; [[A list of objects being clipped by $obj.]]
|
return: const(list<Evas.Object*>)* @warn_unused; [[A list of objects being clipped by $obj.]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property smart_parent {
|
@property render_parent @protected {
|
||||||
|
[[Gets the parent smart object of a given Evas object, if it has one.
|
||||||
|
|
||||||
|
This can be different from @Eo.Base.parent because this one is
|
||||||
|
used internally for rendering and the normal parent is what the
|
||||||
|
user expects to be the parent.
|
||||||
|
|
||||||
|
@since 1.18
|
||||||
|
]]
|
||||||
get {
|
get {
|
||||||
[[Gets the parent smart object of a given Evas object, if it
|
legacy: evas_object_smart_parent_get;
|
||||||
has one.
|
}
|
||||||
]]
|
values {
|
||||||
return: Evas.Object * @warn_unused; [[The parent smart object
|
parent: Evas.Object *; [[The parent smart object of $obj or $null.]]
|
||||||
of $obj or $null.]]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property size_hint_display_mode {
|
@property size_hint_display_mode {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#define EVAS_OBJECT_PROTECTED
|
||||||
|
|
||||||
#include "evas_common_private.h"
|
#include "evas_common_private.h"
|
||||||
#include "evas_private.h"
|
#include "evas_private.h"
|
||||||
|
|
||||||
|
@ -2065,7 +2067,7 @@ _evas_object_is_frame_object_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static Evas_Object *
|
EOLIAN static Evas_Object *
|
||||||
_evas_object_smart_parent_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
|
_evas_object_render_parent_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
|
||||||
{
|
{
|
||||||
if (!obj) return NULL;
|
if (!obj) return NULL;
|
||||||
return obj->smart.parent;
|
return obj->smart.parent;
|
||||||
|
|
Loading…
Reference in New Issue