ecore-wl2: Add API function to set window rotation
authorChris Michael <cp.michael@samsung.com>
Mon, 28 Sep 2015 13:42:21 +0000 (09:42 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 3 Dec 2015 17:02:40 +0000 (12:02 -0500)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_wl2/Ecore_Wl2.h
src/lib/ecore_wl2/ecore_wl2_window.c

index a9a76b7..2330af6 100644 (file)
@@ -400,6 +400,9 @@ EAPI Eina_Bool ecore_wl2_window_maximized_get(Ecore_Wl2_Window *window);
 /* TODO: doxy */
 EAPI Eina_Bool ecore_wl2_window_fullscreen_get(Ecore_Wl2_Window *window);
 
+/* TODO: doxy */
+EAPI void ecore_wl2_window_rotation_set(Ecore_Wl2_Window *window, int rotation);
+
 /* # ifdef __cplusplus */
 /* } */
 /* # endif */
index 1925c25..71a7b02 100644 (file)
@@ -603,3 +603,11 @@ ecore_wl2_window_fullscreen_get(Ecore_Wl2_Window *window)
 
    return EINA_FALSE;
 }
+
+EAPI void
+ecore_wl2_window_rotation_set(Ecore_Wl2_Window *window, int rotation)
+{
+   EINA_SAFETY_ON_NULL_RETURN(window);
+
+   window->rotation = rotation;
+}