Add object visible check API 70/131970/5
authorHyunho Kang <hhstark.kang@samsung.com>
Wed, 31 May 2017 10:26:00 +0000 (19:26 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Thu, 1 Jun 2017 08:01:16 +0000 (08:01 +0000)
- screen_connector_toolkit_evas_is_visible

Change-Id: Id8010fa0507770ea85135fcf3597032f36ca0734
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
screen_connector_watcher_evas/include/screen_connector_toolkit_evas.h
screen_connector_watcher_evas/src/screen_connector_toolkit_evas.c

index 95ed241..65c7724 100644 (file)
@@ -112,6 +112,7 @@ screen_connector_toolkit_evas_h screen_connector_toolkit_evas_add_by_rid(screen_
 int screen_connector_toolkit_evas_get_rid(Evas_Object *obj, int *resource_id);
 screen_connector_toolkit_evas_h screen_connector_toolkit_evas_add_with_win(screen_connector_toolkit_evas_ops *ops, char *id,
                screen_connector_screen_type_e type, Evas_Object *win, void *data);
+int screen_connector_toolkit_evas_is_visible(Evas_Object *obj, bool *is_visible);
 
 
 /**
index 631b767..667bcfc 100644 (file)
@@ -1160,3 +1160,22 @@ EXPORT_API int screen_connector_toolkit_evas_unbind(screen_connector_toolkit_eva
 
        return screen_connector_toolkit_unbind(h->toolkit_h);
 }
+
+EXPORT_API int screen_connector_toolkit_evas_is_visible(Evas_Object *obj, bool *is_visible)
+{
+       screen_connector_toolkit_evas_h toolkit_evas_h;
+
+       if (!obj) {
+               LOGE("invalid argument");
+               return -1;
+       }
+       toolkit_evas_h = __find_toolkit_evas_h(obj);
+       if (!toolkit_evas_h) {
+               LOGE("obj not found");
+               return -1;
+       }
+
+       *is_visible = __obj_is_visible(toolkit_evas_h);
+
+       return 0;
+}