Add object visible check API 73/132273/2
authorHyunho Kang <hhstark.kang@samsung.com>
Wed, 31 May 2017 10:26:00 +0000 (19:26 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Wed, 7 Jun 2017 00:56:20 +0000 (09:56 +0900)
- screen_connector_toolkit_evas_is_visible

Change-Id: Id8010fa0507770ea85135fcf3597032f36ca0734
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
(cherry picked from commit 5616860841370bdd65cdc322ebf735199073f751)

screen_connector_watcher_evas/include/screen_connector_toolkit_evas.h
screen_connector_watcher_evas/src/screen_connector_toolkit_evas.c

index 7cd665d..4a6dabf 100644 (file)
@@ -109,6 +109,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 6dab25b..dc5e989 100644 (file)
@@ -1042,3 +1042,22 @@ EXPORT_API int screen_connector_toolkit_evas_get_pid(Evas_Object *obj, int *pid)
 
        return 0;
 }
+
+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 == NULL || is_visible == NULL) {
+               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;
+}