ecore-wl2: Add API to return window type

Small patch whichs adds a new API to return the type of a given window

@feature
This commit is contained in:
Christopher Michael 2019-11-19 09:28:27 -05:00
parent ab51bbeeef
commit 68ea9f1a71
2 changed files with 17 additions and 0 deletions

View File

@ -1077,6 +1077,16 @@ EAPI void ecore_wl2_window_iconified_set(Ecore_Wl2_Window *window, Eina_Bool ico
*/
EAPI void ecore_wl2_window_type_set(Ecore_Wl2_Window *window, Ecore_Wl2_Window_Type type);
/**
* Get the type of a given window
*
* @see Ecore_Wl2_Window_Type
*
* @ingroup Ecore_Wl2_Window_Group
* @since 1.24
*/
EAPI Ecore_Wl2_Window_Type ecore_wl2_window_type_get(Ecore_Wl2_Window *window);
/**
* Find the output that a given window is on
*

View File

@ -1741,3 +1741,10 @@ ecore_wl2_window_surface_flush(Ecore_Wl2_Window *window, Eina_Bool purge)
if (!window->wl2_surface) return;
ecore_wl2_surface_flush(window->wl2_surface, purge);
}
EAPI Ecore_Wl2_Window_Type
ecore_wl2_window_type_get(Ecore_Wl2_Window *window)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(window, ECORE_WL2_WINDOW_TYPE_NONE);
return window->type;
}