Evas: Move smart_clipped_clipper to its class

It was in Evas.Object, probably to make it work without any ERR
message on invalid objects. Not worth it right now...
This commit is contained in:
Jean-Philippe Andre 2016-06-16 17:45:29 +09:00
parent 93fad2a19f
commit 5974ff0175
3 changed files with 16 additions and 15 deletions

View File

@ -467,16 +467,6 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface, Efl.Gfx, Efl.Gfx.Stack,
$false otherwise.]]
}
}
@property smart_clipped_clipper {
get {
[[Get the clipper object for the given clipped smart object.
Use this function if you want to change any of this clipper's
properties, like colors.
]]
return: Evas.Object @warn_unused;
}
}
@property clipees {
get {
[[Return a list of objects currently clipped by $obj.

View File

@ -35,12 +35,10 @@ _evas_object_smart_move_children_relative(Eo *eo_obj, Evas_Object_Protected_Data
}
}
EOLIAN Evas_Object *
_evas_object_smart_clipped_clipper_get(Eo *eo_obj, Evas_Object_Protected_Data *obj EINA_UNUSED)
static EOLIAN Evas_Object *
_evas_object_smart_clipped_smart_clipped_clipper_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Smart_Clipped_Data *obj)
{
CSO_DATA_GET(eo_obj, cso)
if (!cso) return NULL;
else return cso->clipper;
return obj->clipper;
}
static void

View File

@ -7,6 +7,19 @@ class Evas.Smart.Clipped (Evas.Object.Smart)
eo_prefix: evas_obj_smart_clipped;
data: Evas_Object_Smart_Clipped_Data;
methods {
@property smart_clipped_clipper {
get {
[[Get the clipper object for the given clipped smart object.
Use this function if you want to change any of this clipper's
properties, like colors.
]]
return: Evas.Object @warn_unused;
}
}
}
implements {
Eo.Base.constructor;
Evas.Object.Smart.hide;