devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=93afb3ed07e30c9d89a19cdbaf1c0aef38502b43
commit 93afb3ed07e30c9d89a19cdbaf1c0aef38502b43 Author: Chris Michael <cp.mich...@samsung.com> Date: Tue Nov 10 09:35:25 2015 -0500 ecore-wl2: Add function to get a windows rotation Signed-off-by: Chris Michael <cp.mich...@samsung.com> --- src/lib/ecore_wl2/Ecore_Wl2.h | 20 +++++++++++++++++++- src/lib/ecore_wl2/ecore_wl2_window.c | 8 ++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h index 0a32448..c621c16 100644 --- a/src/lib/ecore_wl2/Ecore_Wl2.h +++ b/src/lib/ecore_wl2/Ecore_Wl2.h @@ -566,7 +566,25 @@ EAPI Eina_Bool ecore_wl2_window_fullscreen_get(Ecore_Wl2_Window *window); */ EAPI void ecore_wl2_window_fullscreen_set(Ecore_Wl2_Window *window, Eina_Bool fullscreen); -/* TODO: doxy */ +/** + * Get if a given window is rotated + * + * @param window The window to get the rotation of + * + * @return The amount of rotation for this window, or -1 on failure + * + * @ingroup Ecore_Wl2_Window_Group + */ +EAPI int ecore_wl2_window_rotation_get(Ecore_Wl2_Window *window); + +/** + * Set the rotation of a given window + * + * @param window The window to set the rotation of + * @param rotation The amount of rotation + * + * @ingroup Ecore_Wl2_Window_Group + */ EAPI void ecore_wl2_window_rotation_set(Ecore_Wl2_Window *window, int rotation); /** diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c index 379b283..8f1589e 100644 --- a/src/lib/ecore_wl2/ecore_wl2_window.c +++ b/src/lib/ecore_wl2/ecore_wl2_window.c @@ -681,6 +681,14 @@ ecore_wl2_window_fullscreen_set(Ecore_Wl2_Window *window, Eina_Bool fullscreen) } } +EAPI int +ecore_wl2_window_rotation_get(Ecore_Wl2_Window *window) +{ + EINA_SAFETY_ON_NULL_RETURN_VAL(window, -1); + + return window->rotation; +} + EAPI void ecore_wl2_window_rotation_set(Ecore_Wl2_Window *window, int rotation) { --