e_view_layout: Add e_view_layout_geometry_get function 04/320904/1
authorJunkyeong Kim <jk0430.kim@samsung.com>
Mon, 10 Mar 2025 01:40:34 +0000 (10:40 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Tue, 11 Mar 2025 00:58:52 +0000 (09:58 +0900)
Change-Id: I82354cded0230305910e2b20965764585d73817f

src/bin/core/e_view_layout.c
src/include/e_view_layout.h

index 7dc345e96e59d68a799fbfff4b1bc7a9c0bf4774..c4d384f48947a6c926401fb65cb4267def2ad161 100644 (file)
@@ -447,3 +447,17 @@ e_view_layout_clip_unset(E_View_Layout *layout)
    e_view_clip_unset(e_view_rect_view_get(layout->clip));
 }
 
+E_API void
+e_view_layout_geometry_get(E_View_Layout *layout, int *x, int *y, int *width, int *height)
+{
+   if (!layout) return;
+
+   if (x)
+     *x = layout->x;
+   if (y)
+     *y = layout->y;
+   if (width)
+     *width = layout->w;
+   if (height)
+     *height = layout->h;
+}
index e2301f5ed22780cc9e5799e8da2690b610f92f0f..1aa94e02edf87f21deaf00b2fc8a7637efbeedfc 100644 (file)
@@ -31,6 +31,7 @@ E_API void e_view_layout_resize(E_View_Layout *layout, int w, int h);
 E_API void e_view_layout_color_set(E_View_Layout *layout, int r, int g, int b, int a);
 E_API void e_view_layout_clip_set(E_View_Layout *layout, E_View *clip);
 E_API void e_view_layout_clip_unset(E_View_Layout *layout);
+E_API void e_view_layout_geometry_get(E_View_Layout *layout, int *x, int *y, int *width, int *height);
 
 #ifdef  __cplusplus
 }