forked from enlightenment/efl
ecore-wl2: Add API function to return an output transformation
Small patch to add a new API function that can be used to retrieve the current transform value for a given output. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
b69060ab88
commit
5b84bf2c24
|
@ -1366,6 +1366,17 @@ EAPI void ecore_wl2_subsurface_opaque_region_set(Ecore_Wl2_Subsurface *subsurfac
|
|||
*/
|
||||
EAPI int ecore_wl2_output_dpi_get(Ecore_Wl2_Output *output);
|
||||
|
||||
/**
|
||||
* Get the current transform of a given output
|
||||
*
|
||||
* @param output The output to get the transform of
|
||||
*
|
||||
* @return The output's current transform value
|
||||
* @ingroup Ecore_Wl2_Output_Group
|
||||
* @since 1.20
|
||||
*/
|
||||
EAPI int ecore_wl2_output_transform_get(Ecore_Wl2_Output *output);
|
||||
|
||||
/**
|
||||
* Return the version of the display's compositor object
|
||||
*
|
||||
|
|
|
@ -131,3 +131,10 @@ ecore_wl2_output_dpi_get(Ecore_Wl2_Output *output)
|
|||
|
||||
return (((w * 254) / mw) + 5) / 10;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
ecore_wl2_output_transform_get(Ecore_Wl2_Output *output)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(output, 0);
|
||||
return output->transform;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue