forked from enlightenment/efl
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:
parent
5b84bf2c24
commit
5ee913426d
|
@ -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);
|
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
|
* @defgroup Ecore_Wl2_Input_Group Wayland Library Input Functions
|
||||||
* @ingroup Ecore_Wl2_Group
|
* @ingroup Ecore_Wl2_Group
|
||||||
|
|
|
@ -1205,3 +1205,11 @@ ecore_wl2_window_output_find(Ecore_Wl2_Window *window)
|
||||||
|
|
||||||
return NULL;
|
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);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue