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:
parent
e12077adfa
commit
c23a0d080d
|
@ -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
|
||||
|
|
|
@ -189,6 +189,7 @@ struct _Ecore_Wl2_Window
|
|||
struct
|
||||
{
|
||||
Eina_Bool supported : 1;
|
||||
Eina_Bool app_set : 1;
|
||||
} wm_rot;
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue