devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=44b2153a4229aaf28fde83f04e1d07eafeeafe1e

commit 44b2153a4229aaf28fde83f04e1d07eafeeafe1e
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Oct 6 10:21:51 2015 -0400

    ecore-wl2: Add API function to place a subsurface above a surface
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/Ecore_Wl2.h         | 15 +++++++++++++++
 src/lib/ecore_wl2/ecore_wl2_subsurf.c |  9 +++++++++
 2 files changed, 24 insertions(+)

diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index 33f2bc8..c9a2e4e 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -635,6 +635,21 @@ EAPI void 
ecore_wl2_subsurface_position_set(Ecore_Wl2_Subsurface *subsurface, in
  */
 EAPI void ecore_wl2_subsurface_position_get(Ecore_Wl2_Subsurface *subsurface, 
int *x, int *y);
 
+/**
+ * Place subsurface on layer above a reference surface
+ *
+ * Moves the @param subsurface to just above the reference @param
+ * surface, changing the z-order.  The reference @param surface must
+ * be either a sibling or parent surface, else a protocol error will
+ * be generated.
+ *
+ * @param subsurface the subsurface
+ * @param surface the sibling reference surface
+ *
+ * @ingroup Ecore_Wl2_Subsurface_Group
+ */
+EAPI void ecore_wl2_subsurface_place_above(Ecore_Wl2_Subsurface *subsurface, 
struct wl_surface *surface);
+
 /* # ifdef __cplusplus */
 /* } */
 /* # endif */
diff --git a/src/lib/ecore_wl2/ecore_wl2_subsurf.c 
b/src/lib/ecore_wl2/ecore_wl2_subsurf.c
index ebc7172..0fbd3f4 100644
--- a/src/lib/ecore_wl2/ecore_wl2_subsurf.c
+++ b/src/lib/ecore_wl2/ecore_wl2_subsurf.c
@@ -108,3 +108,12 @@ ecore_wl2_subsurface_position_get(Ecore_Wl2_Subsurface 
*subsurface, int *x, int
    if (x) *x = subsurface->x;
    if (y) *y = subsurface->y;
 }
+
+EAPI void
+ecore_wl2_subsurface_place_above(Ecore_Wl2_Subsurface *subsurface, struct 
wl_surface *surface)
+{
+   EINA_SAFETY_ON_NULL_RETURN(subsurface);
+   EINA_SAFETY_ON_NULL_RETURN(surface);
+
+   wl_subsurface_place_above(subsurface->wl.subsurface, surface);
+}

-- 


Reply via email to