summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-11-07 13:09:23 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-11-07 13:09:23 -0500
commit18fba8e5d782374a0e4222b229e129cd9ab42ee6 (patch)
tree99369974bc1f255b2a6a945c7c8a58e25ec4ee6a
parent50e4a3012632105dcfb49c50dce7acb4f993850c (diff)
downloadenlightenment-18fba8e5d782374a0e4222b229e129cd9ab42ee6.tar.gz
add e_comp_object_mirror_visibility_check()
can be used to check whether visible mirrors exist for a comp object
-rw-r--r--src/bin/e_comp_object.c6
-rw-r--r--src/bin/e_comp_object.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c
index 90c0d9f0b2..a9cf3eda97 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -2448,6 +2448,12 @@ e_comp_object_zoomap_set(Evas_Object *obj, Eina_Bool enabled)
cw->zoomap_disabled = enabled;
}
+E_API Eina_Bool
+e_comp_object_mirror_visibility_check(Evas_Object *obj)
+{
+ API_ENTRY EINA_FALSE;
+ return !!cw->force_visible;
+}
/////////////////////////////////////////////////////////
static void
diff --git a/src/bin/e_comp_object.h b/src/bin/e_comp_object.h
index 2ed5189cd8..32d6d92d3a 100644
--- a/src/bin/e_comp_object.h
+++ b/src/bin/e_comp_object.h
@@ -36,6 +36,7 @@ struct E_Comp_Object_Frame
extern E_API int E_EVENT_COMP_OBJECT_ADD;
E_API void e_comp_object_zoomap_set(Evas_Object *obj, Eina_Bool enabled);
+E_API Eina_Bool e_comp_object_mirror_visibility_check(Evas_Object *obj);
E_API Evas_Object *e_comp_object_client_add(E_Client *ec);
E_API Evas_Object *e_comp_object_util_mirror_add(Evas_Object *obj);
E_API Evas_Object *e_comp_object_util_add(Evas_Object *obj, E_Comp_Object_Type type);