forked from enlightenment/efl
ecore_wl2: Remove window_transparent_set
This is exactly the same as alpha_set, so it really doesn't have much reason to exist.
This commit is contained in:
parent
5af84afced
commit
fc973b9640
|
@ -872,18 +872,6 @@ EAPI Eina_Bool ecore_wl2_window_alpha_get(Ecore_Wl2_Window *window);
|
|||
*/
|
||||
EAPI void ecore_wl2_window_alpha_set(Ecore_Wl2_Window *window, Eina_Bool alpha);
|
||||
|
||||
/**
|
||||
* Set a given window's transparent property
|
||||
*
|
||||
* @param window The window on which to set the transparent property
|
||||
* @param transparent EINA_TRUE to set window as transparent,
|
||||
* EINA_FALSE otherwise
|
||||
*
|
||||
* @ingroup Ecore_Wl2_Window_Group
|
||||
* @since 1.17
|
||||
*/
|
||||
EAPI void ecore_wl2_window_transparent_set(Ecore_Wl2_Window *window, Eina_Bool transparent);
|
||||
|
||||
/**
|
||||
* Set the opaque region of the Ecore_Wl2_Window
|
||||
*
|
||||
|
|
|
@ -232,7 +232,6 @@ struct _Ecore_Wl2_Window
|
|||
Eina_Bool moving : 1;
|
||||
Eina_Bool resizing : 1;
|
||||
Eina_Bool alpha : 1;
|
||||
Eina_Bool transparent : 1;
|
||||
|
||||
Eina_Bool input_set : 1;
|
||||
Eina_Bool opaque_set : 1;
|
||||
|
|
|
@ -811,23 +811,6 @@ ecore_wl2_window_alpha_set(Ecore_Wl2_Window *window, Eina_Bool alpha)
|
|||
ecore_wl2_window_opaque_region_set(window, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
EAPI void
|
||||
ecore_wl2_window_transparent_set(Ecore_Wl2_Window *window, Eina_Bool transparent)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN(window);
|
||||
|
||||
if (window->transparent == transparent) return;
|
||||
|
||||
window->transparent = transparent;
|
||||
|
||||
if (!window->transparent)
|
||||
ecore_wl2_window_opaque_region_set(window, window->opaque.x,
|
||||
window->opaque.y, window->opaque.w,
|
||||
window->opaque.h);
|
||||
else
|
||||
ecore_wl2_window_opaque_region_set(window, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
EAPI void
|
||||
ecore_wl2_window_opaque_region_set(Ecore_Wl2_Window *window, int x, int y, int w, int h)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue