ecore_wl2: Add ecore_wl2_surface_alpha_get query

We'll need this for some surface modules to properly handle alpha changes
This commit is contained in:
Derek Foreman 2018-02-20 14:16:01 -06:00
parent 6da0933d60
commit a10feaed0c
2 changed files with 9 additions and 0 deletions

View File

@ -2025,6 +2025,7 @@ EAPI Ecore_Wl2_Buffer *ecore_wl2_surface_buffer_create(Ecore_Wl2_Surface *surfac
EAPI int ecore_wl2_surface_manager_add(Ecore_Wl2_Surface_Interface *intf);
EAPI void ecore_wl2_surface_manager_del(Ecore_Wl2_Surface_Interface *intf);
EAPI Ecore_Wl2_Window *ecore_wl2_surface_window_get(Ecore_Wl2_Surface *surface);
EAPI Eina_Bool ecore_wl2_surface_alpha_get(Ecore_Wl2_Surface *surface);
# endif

View File

@ -162,3 +162,11 @@ ecore_wl2_surface_window_get(Ecore_Wl2_Surface *surface)
return surface->wl2_win;
}
EAPI Eina_Bool
ecore_wl2_surface_alpha_get(Ecore_Wl2_Surface *surface)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(surface, EINA_FALSE);
return surface->alpha;
}