*/
EAPI const Eina_List *ecore_drm_devices_get(void);
+/**
+ * Get the minimum and maximum screen size range
+ *
+ * @param dev The Ecore_Drm_Device to get screen size range from
+ * @param *minw The parameter in which smallest width is stored
+ * @param *minh The parameter in which smallest height is stored
+ * @param *maxw The parameter in which largest width is stored
+ * @param *maxh The parameter in which largest height is stored
+ *
+ * @ingroup Ecore_Drm_Device_Group
+ * @since 1.15
+ */
+EAPI void ecore_drm_screen_size_range_get(Ecore_Drm_Device *dev, int *minw, int *minh, int *maxw, int *maxh);
+
#ifdef __cplusplus
}
#endif
return NULL;
}
+
+EAPI void
+ecore_drm_screen_size_range_get(Ecore_Drm_Device *dev, int *minw, int *minh, int *maxw, int *maxh)
+{
+ EINA_SAFETY_ON_NULL_RETURN(dev);
+
+ if (minw) *minw = dev->min_width;
+ if (minh) *minh = dev->min_height;
+ if (maxw) *maxw = dev->max_width;
+ if (maxh) *maxh = dev->max_height;
+}