discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=73fecddd7e0d4335489e80edffe561afeddb32b4

commit 73fecddd7e0d4335489e80edffe561afeddb32b4
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Jun 15 16:59:30 2015 -0400

    add utility function for determining if a comp object should animate
---
 src/bin/e_comp_object.c | 10 ++++++++++
 src/bin/e_comp_object.h |  1 +
 2 files changed, 11 insertions(+)

diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c
index e30c891..5288413 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -3568,6 +3568,16 @@ e_comp_object_util_mirror_add(Evas_Object *obj)
 
 //////////////////////////////////////////////////////
 
+EAPI Eina_Bool
+e_comp_object_effect_allowed_get(Evas_Object *obj)
+{
+   API_ENTRY EINA_FALSE;
+
+   if (!cw->shobj) return EINA_FALSE;
+   if (cw->ec->override) return !e_comp_config_get()->match.disable_overrides;
+   return !e_comp_config_get()->match.disable_borders;
+}
+
 /* setup an api effect for a client */
 E_API Eina_Bool
 e_comp_object_effect_set(Evas_Object *obj, const char *effect)
diff --git a/src/bin/e_comp_object.h b/src/bin/e_comp_object.h
index 143bab4..5db861e 100644
--- a/src/bin/e_comp_object.h
+++ b/src/bin/e_comp_object.h
@@ -73,6 +73,7 @@ E_API void e_comp_object_redirected_set(Evas_Object *obj, 
Eina_Bool set);
 E_API void e_comp_object_native_surface_set(Evas_Object *obj, Eina_Bool set);
 E_API void e_comp_object_dirty(Evas_Object *obj);
 E_API Eina_Bool e_comp_object_render(Evas_Object *obj);
+EAPI Eina_Bool e_comp_object_effect_allowed_get(Evas_Object *obj);
 E_API Eina_Bool e_comp_object_effect_set(Evas_Object *obj, const char *effect);
 E_API void e_comp_object_effect_params_set(Evas_Object *obj, int id, int 
*params, unsigned int count);
 E_API void e_comp_object_effect_clip(Evas_Object *obj);

-- 


Reply via email to