summaryrefslogtreecommitdiff
path: root/src/lib/evas/include
diff options
context:
space:
mode:
authorDerek Foreman <derek.foreman.samsung@gmail.com>2018-10-22 10:22:26 -0500
committerDerek Foreman <derek.foreman.samsung@gmail.com>2018-12-14 09:52:03 -0600
commitac065749a667b96140efcba62d334993fd12c44e (patch)
treebfed3d41ed8689e44a0307ad9c6d178e099d0173 /src/lib/evas/include
parent73e5bb84a137e1b5472599b87caa2af85b35d787 (diff)
evas_object: Add function to test if hardware plane status changed
This is used to check if an object has been put on or removed from a hardware plane between calls. Signed-off-by: Derek Foreman <derek.foreman.samsung@gmail.com> Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D7192
Diffstat (limited to 'src/lib/evas/include')
-rw-r--r--src/lib/evas/include/evas_inline.x8
-rw-r--r--src/lib/evas/include/evas_private.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/evas/include/evas_inline.x b/src/lib/evas/include/evas_inline.x
index 739a59b32d..c83c1a0bc6 100644
--- a/src/lib/evas/include/evas_inline.x
+++ b/src/lib/evas/include/evas_inline.x
@@ -126,6 +126,14 @@ evas_object_is_on_plane(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
126} 126}
127 127
128static inline int 128static inline int
129evas_object_plane_changed(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
130{
131 if (obj->func->plane_changed)
132 return obj->func->plane_changed(eo_obj, obj, obj->private_data);
133 return 0;
134}
135
136static inline int
129evas_event_freezes_through(Evas_Object *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj) 137evas_event_freezes_through(Evas_Object *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
130{ 138{
131 if (obj->freeze_events) return 1; 139 if (obj->freeze_events) return 1;
diff --git a/src/lib/evas/include/evas_private.h b/src/lib/evas/include/evas_private.h
index db2498708a..76621161af 100644
--- a/src/lib/evas/include/evas_private.h
+++ b/src/lib/evas/include/evas_private.h
@@ -1261,6 +1261,7 @@ struct _Evas_Object_Func
1261// from disk or uploading to texture etc. 1261// from disk or uploading to texture etc.
1262 void (*render_prepare) (Evas_Object *obj, Evas_Object_Protected_Data *pd, Eina_Bool do_async); 1262 void (*render_prepare) (Evas_Object *obj, Evas_Object_Protected_Data *pd, Eina_Bool do_async);
1263 int (*is_on_plane) (Evas_Object *obj, Evas_Object_Protected_Data *pd, void *type_private_data); 1263 int (*is_on_plane) (Evas_Object *obj, Evas_Object_Protected_Data *pd, void *type_private_data);
1264 int (*plane_changed) (Evas_Object *obj, Evas_Object_Protected_Data *pd, void *type_private_data);
1264}; 1265};
1265 1266
1266struct _Evas_Func 1267struct _Evas_Func