summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_subsurf.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-10-06 10:19:05 -0400
committerChris Michael <cp.michael@samsung.com>2015-12-03 12:02:40 -0500
commit25505626ad221cbf7acd07a6771c2bd7efa98a39 (patch)
treeaf5b6115ad97e4779dca8687325b79e7120b01fd /src/lib/ecore_wl2/ecore_wl2_subsurf.c
parent0b8d2f1f240e87e09cbc962884f5486b9af59f04 (diff)
ecore-wl2: Add API function to get the position of a subsurface
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_subsurf.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_subsurf.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_subsurf.c b/src/lib/ecore_wl2/ecore_wl2_subsurf.c
index c17566bfda..ebc7172977 100644
--- a/src/lib/ecore_wl2/ecore_wl2_subsurf.c
+++ b/src/lib/ecore_wl2/ecore_wl2_subsurf.c
@@ -99,3 +99,12 @@ ecore_wl2_subsurface_position_set(Ecore_Wl2_Subsurface *subsurface, int x, int y
99 99
100 wl_subsurface_set_position(subsurface->wl.subsurface, x, y); 100 wl_subsurface_set_position(subsurface->wl.subsurface, x, y);
101} 101}
102
103EAPI void
104ecore_wl2_subsurface_position_get(Ecore_Wl2_Subsurface *subsurface, int *x, int *y)
105{
106 EINA_SAFETY_ON_NULL_RETURN(subsurface);
107
108 if (x) *x = subsurface->x;
109 if (y) *y = subsurface->y;
110}