Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
EAPI void ecore_drm2_output_enabled_set(Ecore_Drm2_Output *output, Eina_Bool enabled);
/**
+ * Get the physical size of a given output
+ *
+ * This function will give the physical size (in mm) of an output
+ *
+ * @param output
+ * @param *w
+ * @param *h
+ *
+ * @ingroup Ecore_Drm2_Output_Group
+ * @since 1.18
+ */
+EAPI void ecore_drm2_output_physical_size_get(Ecore_Drm2_Output *output, int *w, int *h);
+
+/**
* @defgroup Ecore_Drm2_Fb_Group Drm framebuffer functions
*
* Functions that deal with setup of framebuffers
_output_event_send(output);
}
+
+EAPI void
+ecore_drm2_output_physical_size_get(Ecore_Drm2_Output *output, int *w, int *h)
+{
+ if (w) *w = 0;
+ if (h) *h = 0;
+
+ EINA_SAFETY_ON_NULL_RETURN(output);
+
+ if (w) *w = output->pw;
+ if (h) *h = output->ph;
+}