From: Chris Michael Date: Mon, 28 Sep 2015 13:42:21 +0000 (-0400) Subject: ecore-wl2: Add API function to set window rotation X-Git-Tag: upstream/1.20.0~8008^2~154 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f372d11f9945c549600de82ee696f8030a270bab;p=platform%2Fupstream%2Fefl.git ecore-wl2: Add API function to set window rotation Signed-off-by: Chris Michael --- diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h index a9a76b7..2330af6 100644 --- a/src/lib/ecore_wl2/Ecore_Wl2.h +++ b/src/lib/ecore_wl2/Ecore_Wl2.h @@ -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 */ diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c index 1925c25..71a7b02 100644 --- a/src/lib/ecore_wl2/ecore_wl2_window.c +++ b/src/lib/ecore_wl2/ecore_wl2_window.c @@ -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; +}