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:17:25 -0400
committerChris Michael <cp.michael@samsung.com>2015-12-03 12:02:40 -0500
commit0b8d2f1f240e87e09cbc962884f5486b9af59f04 (patch)
treea119a0b6a7b65c9be08a4a7fa601830b3c09680d /src/lib/ecore_wl2/ecore_wl2_subsurf.c
parent32bb1237c69c517c50eb6564cf47901a4bb84532 (diff)
ecore-wl2: Add API function to set 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.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_subsurf.c b/src/lib/ecore_wl2/ecore_wl2_subsurf.c
index eab1ec630c..c17566bfda 100644
--- a/src/lib/ecore_wl2/ecore_wl2_subsurf.c
+++ b/src/lib/ecore_wl2/ecore_wl2_subsurf.c
@@ -85,3 +85,17 @@ ecore_wl2_subsurface_surface_get(Ecore_Wl2_Subsurface *subsurface)
85 85
86 return subsurface->wl.surface; 86 return subsurface->wl.surface;
87} 87}
88
89EAPI void
90ecore_wl2_subsurface_position_set(Ecore_Wl2_Subsurface *subsurface, int x, int y)
91{
92 EINA_SAFETY_ON_NULL_RETURN(subsurface);
93 EINA_SAFETY_ON_NULL_RETURN(subsurface->wl.subsurface);
94
95 if ((subsurface->x == x) && (subsurface->y == y)) return;
96
97 subsurface->x = x;
98 subsurface->y = y;
99
100 wl_subsurface_set_position(subsurface->wl.subsurface, x, y);
101}