forked from enlightenment/efl
ecore-wl2: Add API function to delete a subsurface
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
6c16d7967b
commit
ed8287bdba
|
@ -590,6 +590,15 @@ EAPI void ecore_wl2_input_ungrab(Ecore_Wl2_Input *input);
|
|||
*/
|
||||
EAPI Ecore_Wl2_Subsurface *ecore_wl2_subsurface_new(Ecore_Wl2_Window *window);
|
||||
|
||||
/**
|
||||
* Destroy the given subsurface, as well as the surface associated with it.
|
||||
*
|
||||
* @param ess the subsurface
|
||||
*
|
||||
* @ingroup Ecore_Wl2_Subsurface_Group
|
||||
*/
|
||||
EAPI void ecore_wl2_subsurface_del(Ecore_Wl2_Subsurface *subsurface);
|
||||
|
||||
/* # ifdef __cplusplus */
|
||||
/* } */
|
||||
/* # endif */
|
||||
|
|
|
@ -69,3 +69,11 @@ surf_err:
|
|||
free(subsurf);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
EAPI void
|
||||
ecore_wl2_subsurface_del(Ecore_Wl2_Subsurface *subsurface)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN(subsurface);
|
||||
|
||||
_ecore_wl2_subsurf_free(subsurface);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue