ecore-wl2: Add API to set if an application has rotation a window

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2017-06-09 09:36:17 -04:00
parent e12077adfa
commit c23a0d080d
3 changed files with 19 additions and 0 deletions

View File

@ -995,6 +995,17 @@ EAPI void ecore_wl2_window_wm_rotation_supported_set(Ecore_Wl2_Window *window, E
*/
EAPI Eina_Bool ecore_wl2_window_wm_rotation_supported_get(Ecore_Wl2_Window *window);
/**
* Set if an application has set window rotation
*
* @param window
* @param set
*
* @ingroup Ecore_Wl2_Window_Group
* @since 1.20
*/
EAPI void ecore_wl2_window_rotation_app_set(Ecore_Wl2_Window *window, Eina_Bool set);
/**
* @defgroup Ecore_Wl2_Input_Group Wayland Library Input Functions
* @ingroup Ecore_Wl2_Group

View File

@ -189,6 +189,7 @@ struct _Ecore_Wl2_Window
struct
{
Eina_Bool supported : 1;
Eina_Bool app_set : 1;
} wm_rot;
};

View File

@ -1227,3 +1227,10 @@ ecore_wl2_window_wm_rotation_supported_get(Ecore_Wl2_Window *window)
EINA_SAFETY_ON_NULL_RETURN_VAL(window, EINA_FALSE);
return window->wm_rot.supported;
}
EAPI void
ecore_wl2_window_rotation_app_set(Ecore_Wl2_Window *window, Eina_Bool set)
{
EINA_SAFETY_ON_NULL_RETURN(window);
window->wm_rot.app_set = set;
}