ecore-wl2: Add API function to return if a window is alpha or not

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-09-28 09:15:49 -04:00
parent fda3c80ee0
commit f1d2f7c8da
3 changed files with 12 additions and 0 deletions

View File

@ -372,6 +372,9 @@ EAPI void ecore_wl2_window_raise(Ecore_Wl2_Window *window);
/* TODO: doxy */
EAPI Ecore_Wl2_Window *ecore_wl2_window_find(Ecore_Wl2_Display *display, int id);
/* TODO: doxy */
EAPI Eina_Bool ecore_wl2_window_alpha_get(Ecore_Wl2_Window *window);
/* # ifdef __cplusplus */
/* } */
/* # endif */

View File

@ -97,6 +97,7 @@ struct _Ecore_Wl2_Window
Eina_Bool fullscreen : 1;
Eina_Bool focused : 1;
Eina_Bool resizing : 1;
Eina_Bool alpha : 1;
};
struct _Ecore_Wl2_Output

View File

@ -493,3 +493,11 @@ ecore_wl2_window_find(Ecore_Wl2_Display *display, int id)
return NULL;
}
EAPI Eina_Bool
ecore_wl2_window_alpha_get(Ecore_Wl2_Window *window)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(window, EINA_FALSE);
return window->alpha;
}