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:
parent
fda3c80ee0
commit
f1d2f7c8da
|
@ -372,6 +372,9 @@ EAPI void ecore_wl2_window_raise(Ecore_Wl2_Window *window);
|
||||||
/* TODO: doxy */
|
/* TODO: doxy */
|
||||||
EAPI Ecore_Wl2_Window *ecore_wl2_window_find(Ecore_Wl2_Display *display, int id);
|
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 */
|
/* # ifdef __cplusplus */
|
||||||
/* } */
|
/* } */
|
||||||
/* # endif */
|
/* # endif */
|
||||||
|
|
|
@ -97,6 +97,7 @@ struct _Ecore_Wl2_Window
|
||||||
Eina_Bool fullscreen : 1;
|
Eina_Bool fullscreen : 1;
|
||||||
Eina_Bool focused : 1;
|
Eina_Bool focused : 1;
|
||||||
Eina_Bool resizing : 1;
|
Eina_Bool resizing : 1;
|
||||||
|
Eina_Bool alpha : 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _Ecore_Wl2_Output
|
struct _Ecore_Wl2_Output
|
||||||
|
|
|
@ -493,3 +493,11 @@ ecore_wl2_window_find(Ecore_Wl2_Display *display, int id)
|
||||||
|
|
||||||
return NULL;
|
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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue