diff options
author | Chris Michael <cp.michael@samsung.com> | 2015-10-06 10:23:29 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2015-12-03 12:02:40 -0500 |
commit | d50af2db70e37878a505374de86a245e28c351e1 (patch) | |
tree | f4d26a34cf202ea5ecc1088075a8735987d3c786 | |
parent | 44b2153a4229aaf28fde83f04e1d07eafeeafe1e (diff) |
ecore-wl2: Add API function to place a subsurface below a surface
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r-- | src/lib/ecore_wl2/Ecore_Wl2.h | 12 | ||||
-rw-r--r-- | src/lib/ecore_wl2/ecore_wl2_subsurf.c | 9 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h index c9a2e4e040..2d78a8140e 100644 --- a/src/lib/ecore_wl2/Ecore_Wl2.h +++ b/src/lib/ecore_wl2/Ecore_Wl2.h | |||
@@ -650,6 +650,18 @@ EAPI void ecore_wl2_subsurface_position_get(Ecore_Wl2_Subsurface *subsurface, in | |||
650 | */ | 650 | */ |
651 | EAPI void ecore_wl2_subsurface_place_above(Ecore_Wl2_Subsurface *subsurface, struct wl_surface *surface); | 651 | EAPI void ecore_wl2_subsurface_place_above(Ecore_Wl2_Subsurface *subsurface, struct wl_surface *surface); |
652 | 652 | ||
653 | /** | ||
654 | * Place subsurface on layer below a reference surface | ||
655 | * | ||
656 | * See ecore_wl2_subsurface_place_above. | ||
657 | * | ||
658 | * @param subsurface the subsurface | ||
659 | * @param surface the sibling reference surface | ||
660 | * | ||
661 | * @ingroup Ecore_Wl2_Subsurface_Group | ||
662 | */ | ||
663 | EAPI void ecore_wl2_subsurface_place_below(Ecore_Wl2_Subsurface *subsurface, struct wl_surface *surface); | ||
664 | |||
653 | /* # ifdef __cplusplus */ | 665 | /* # ifdef __cplusplus */ |
654 | /* } */ | 666 | /* } */ |
655 | /* # endif */ | 667 | /* # endif */ |
diff --git a/src/lib/ecore_wl2/ecore_wl2_subsurf.c b/src/lib/ecore_wl2/ecore_wl2_subsurf.c index 0fbd3f43f8..0a4a49be52 100644 --- a/src/lib/ecore_wl2/ecore_wl2_subsurf.c +++ b/src/lib/ecore_wl2/ecore_wl2_subsurf.c | |||
@@ -117,3 +117,12 @@ ecore_wl2_subsurface_place_above(Ecore_Wl2_Subsurface *subsurface, struct wl_sur | |||
117 | 117 | ||
118 | wl_subsurface_place_above(subsurface->wl.subsurface, surface); | 118 | wl_subsurface_place_above(subsurface->wl.subsurface, surface); |
119 | } | 119 | } |
120 | |||
121 | EAPI void | ||
122 | ecore_wl2_subsurface_place_below(Ecore_Wl2_Subsurface *subsurface, struct wl_surface *surface) | ||
123 | { | ||
124 | EINA_SAFETY_ON_NULL_RETURN(subsurface); | ||
125 | EINA_SAFETY_ON_NULL_RETURN(surface); | ||
126 | |||
127 | wl_subsurface_place_below(subsurface->wl.subsurface, surface); | ||
128 | } | ||