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>
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
*
* @param disp the display to get the compositor object version from
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;
+}