summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-06 15:02:07 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-13 09:57:05 +0900
commit7e2382853ee54a7e0a92a14cde52b1de5fa7313a (patch)
tree7c5f18a4e46b9d422818a9676582708f669441c7
parent7ef714924ac6676ce73e340d07949e7c2a5b5a98 (diff)
downloadefl-7e2382853ee54a7e0a92a14cde52b1de5fa7313a.tar.gz
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
-rw-r--r--src/lib/evas/canvas/efl_canvas_group.eo14
-rw-r--r--src/lib/evas/canvas/evas_object_smart.c7
2 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_group.eo b/src/lib/evas/canvas/efl_canvas_group.eo
index 583ea4fcfd..a8f4a1daa3 100644
--- a/src/lib/evas/canvas/efl_canvas_group.eo
+++ b/src/lib/evas/canvas/efl_canvas_group.eo
@@ -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;
diff --git a/src/lib/evas/canvas/evas_object_smart.c b/src/lib/evas/canvas/evas_object_smart.c
index 7d98022bae..5ca58ddcb4 100644
--- a/src/lib/evas/canvas/evas_object_smart.c
+++ b/src/lib/evas/canvas/evas_object_smart.c
@@ -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)