@feature
Signed-off-by: Chris Michael <cp.michael@samsung.com>
EAPI void ecore_wl2_window_preferred_rotation_set(Ecore_Wl2_Window *window, int rot);
/**
+ * Get preferred rotation for a given window
+ *
+ * @param window
+ *
+ * @return Given windows preferred rotation
+ *
+ * @ingroup Ecore_Wl2_Window
+ * @since 1.20
+ */
+EAPI int ecore_wl2_window_preferred_rotation_get(Ecore_Wl2_Window *window);
+
+/**
* @defgroup Ecore_Wl2_Input_Group Wayland Library Input Functions
* @ingroup Ecore_Wl2_Group
*
EINA_SAFETY_ON_NULL_RETURN(window);
window->wm_rot.preferred_rot = rot;
}
+
+EAPI int
+ecore_wl2_window_preferred_rotation_get(Ecore_Wl2_Window *window)
+{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(window, 0);
+ return window->wm_rot.preferred_rot;
+}