e_client: add function for get screen geometry 12/205812/4
authorJunseok, Kim <juns.kim@samsung.com>
Thu, 9 May 2019 08:55:42 +0000 (17:55 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Mon, 13 May 2019 07:58:30 +0000 (07:58 +0000)
Change-Id: I7183a75a469a159f81dd850bb716999bc01a794c

src/bin/e_client.c
src/bin/e_client.h

index 1678d49f836c442358aa7477ced4ff291a04651d..390dd5458ad147128d0cc61f6b67c080359c49d4 100644 (file)
@@ -7259,6 +7259,27 @@ e_client_base_output_resolution_update(E_Client *ec)
    return EINA_TRUE;
 }
 
+E_API void
+e_client_base_output_resolution_useful_geometry_get(E_Client *ec, int *x, int *y, int *w, int *h)
+{
+   int zx, zy, zw, zh;
+
+   E_OBJECT_CHECK(ec);
+
+   e_zone_useful_geometry_get(ec->zone, &zx, &zy, &zw, &zh);
+
+   if (x) *x = zx;
+   if (y) *y = zy;
+   if (w) *w = zw;
+   if (h) *h = zh;
+
+   if (ec->base_output_resolution.use)
+     {
+        if (w) *w = ec->base_output_resolution.w;
+        if (h) *h = ec->base_output_resolution.h;
+     }
+}
+
 /* tizen_move_resize */
 EINTERN Eina_Bool
 e_client_pending_geometry_has(E_Client *ec)
index 51a7adb0bd0f7d46b46b974d883b7a7eb1dcff99..d28a5ca4b47240e5b17b84f47376b2aef32f706f 100644 (file)
@@ -1175,6 +1175,7 @@ E_API E_Capture_Save_State e_client_image_save(E_Client *ec, const char *dir, co
 
 E_API void      e_client_base_output_resolution_transform_adjust(E_Client *ec);
 E_API Eina_Bool e_client_base_output_resolution_update(E_Client *ec);
+E_API void      e_client_base_output_resolution_useful_geometry_get(E_Client *ec, int *x, int *y, int *w, int *h);
 
 E_API void e_client_focus_skip_set(E_Client *ec, Eina_Bool skip, Eina_Bool by_client);
 EINTERN void e_client_revert_focus(E_Client *ec);