ecore-wl2: Add API function to set surface buffer transform

Small patch to add an API function which can be called to set a buffer
transformation on a given window.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2017-06-07 11:08:33 -04:00
parent 5b84bf2c24
commit 5ee913426d
2 changed files with 19 additions and 0 deletions

View File

@ -961,6 +961,17 @@ EAPI void ecore_wl2_window_type_set(Ecore_Wl2_Window *window, Ecore_Wl2_Window_T
*/
EAPI Ecore_Wl2_Output *ecore_wl2_window_output_find(Ecore_Wl2_Window *window);
/**
* Set a buffer transform on a given window
*
* @param window The window on which to set the buffer transform
* @param transform The buffer transform being requested
*
* @ingroup Ecore_Wl2_Window_Group
* @since 1.20
*/
EAPI void ecore_wl2_window_buffer_transform_set(Ecore_Wl2_Window *window, int transform);
/**
* @defgroup Ecore_Wl2_Input_Group Wayland Library Input Functions
* @ingroup Ecore_Wl2_Group

View File

@ -1205,3 +1205,11 @@ ecore_wl2_window_output_find(Ecore_Wl2_Window *window)
return NULL;
}
EAPI void
ecore_wl2_window_buffer_transform_set(Ecore_Wl2_Window *window, int transform)
{
EINA_SAFETY_ON_NULL_RETURN(window);
wl_surface_set_buffer_transform(window->surface, transform);
}