forked from enlightenment/efl
ecore/wayalnd: Add some getters to ecore_wl_window.
This commit is contained in:
parent
f2d550f986
commit
a9b500370a
|
@ -619,8 +619,11 @@ EAPI void ecore_wl_window_hide(Ecore_Wl_Window *win);
|
|||
*/
|
||||
EAPI void ecore_wl_window_raise(Ecore_Wl_Window *win);
|
||||
EAPI void ecore_wl_window_maximized_set(Ecore_Wl_Window *win, Eina_Bool maximized);
|
||||
EAPI Eina_Bool ecore_wl_window_maximized_get(Ecore_Wl_Window *win);
|
||||
EAPI void ecore_wl_window_fullscreen_set(Ecore_Wl_Window *win, Eina_Bool fullscreen);
|
||||
EAPI Eina_Bool ecore_wl_window_fullscreen_get(Ecore_Wl_Window *win);
|
||||
EAPI void ecore_wl_window_transparent_set(Ecore_Wl_Window *win, Eina_Bool transparent);
|
||||
EAPI Eina_Bool ecore_wl_window_transparent_get(Ecore_Wl_Window *win);
|
||||
EAPI void ecore_wl_window_update_size(Ecore_Wl_Window *win, int w, int h);
|
||||
EAPI void ecore_wl_window_update_location(Ecore_Wl_Window *win, int x, int y);
|
||||
EAPI struct wl_surface *ecore_wl_window_surface_get(Ecore_Wl_Window *win);
|
||||
|
|
|
@ -393,6 +393,19 @@ ecore_wl_window_maximized_set(Ecore_Wl_Window *win, Eina_Bool maximized)
|
|||
_ecore_wl_window_state_changed(win);
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
ecore_wl_window_maximized_get(Ecore_Wl_Window *win)
|
||||
{
|
||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||
|
||||
if (!win) return EINA_FALSE;
|
||||
|
||||
if (win->type == ECORE_WL_WINDOW_TYPE_MAXIMIZED)
|
||||
return EINA_TRUE;
|
||||
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
EAPI void
|
||||
ecore_wl_window_fullscreen_set(Ecore_Wl_Window *win, Eina_Bool fullscreen)
|
||||
{
|
||||
|
@ -421,6 +434,19 @@ ecore_wl_window_fullscreen_set(Ecore_Wl_Window *win, Eina_Bool fullscreen)
|
|||
_ecore_wl_window_state_changed(win);
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
ecore_wl_window_fullscreen_get(Ecore_Wl_Window *win)
|
||||
{
|
||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||
|
||||
if (!win) return EINA_FALSE;
|
||||
|
||||
if (win->type == ECORE_WL_WINDOW_TYPE_FULLSCREEN)
|
||||
return EINA_TRUE;
|
||||
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
EAPI void
|
||||
ecore_wl_window_transparent_set(Ecore_Wl_Window *win, Eina_Bool transparent)
|
||||
{
|
||||
|
@ -440,6 +466,16 @@ ecore_wl_window_transparent_set(Ecore_Wl_Window *win, Eina_Bool transparent)
|
|||
_ecore_wl_window_state_changed(win);
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
ecore_wl_window_transparent_get(Ecore_Wl_Window *win)
|
||||
{
|
||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||
|
||||
if (!win) return EINA_FALSE;
|
||||
|
||||
return win->transparent;
|
||||
}
|
||||
|
||||
EAPI void
|
||||
ecore_wl_window_update_size(Ecore_Wl_Window *win, int w, int h)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue