evas: Add EO API to get clipper in smart object

It's not exposing anything that wasn't already accessible before (you
could just add a member and get its clip, for instance).

This will be used by Edje Object.

This is a minor
@feature
This commit is contained in:
Jean-Philippe Andre 2017-09-06 15:02:07 +09:00
parent 7ef714924a
commit 7e2382853e
2 changed files with 21 additions and 0 deletions

View File

@ -97,6 +97,20 @@ class Efl.Canvas.Group (Efl.Canvas.Object)
}
legacy: null;
}
@property group_clipper @protected {
[[The internal clipper object used by this group.
This is the object clipping all the children objects. Do not
delete or otherwise modify this clipper!
]]
values {
clipper: const(Efl.Canvas.Object); [[A clipper rectangle.]]
}
get {
[[Get the internal clipper.]]
legacy: null;
}
}
}
implements {
class.constructor;

View File

@ -1818,6 +1818,13 @@ _efl_canvas_group_efl_canvas_object_paragraph_direction_get(Eo *eo_obj EINA_UNUS
return o->paragraph_direction;
}
EOLIAN static const Eo *
_efl_canvas_group_group_clipper_get(Eo *eo_obj EINA_UNUSED, Evas_Smart_Data *o)
{
// NOTE: This may be NULL until all EO smart objects are clipped!
return _smart_clipper_get(o);
}
/* Internal EO */
static void
_efl_canvas_group_group_clipped_set(Eo *eo_obj EINA_UNUSED, Evas_Smart_Data *sd, Eina_Bool clipped)