From: Chris Michael Date: Fri, 9 Jun 2017 13:38:00 +0000 (-0400) Subject: ecore-wl2: Add API to get if an application has set window rotation X-Git-Tag: upstream/1.20.0~682 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=258c75e6418e5869f3d0919145780f8c76fa177b;p=platform%2Fupstream%2Fefl.git ecore-wl2: Add API to get if an application has set window rotation @feature Signed-off-by: Chris Michael --- diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h index 34bf757..a37b228 100644 --- a/src/lib/ecore_wl2/Ecore_Wl2.h +++ b/src/lib/ecore_wl2/Ecore_Wl2.h @@ -1007,6 +1007,18 @@ EAPI Eina_Bool ecore_wl2_window_wm_rotation_supported_get(Ecore_Wl2_Window *wind EAPI void ecore_wl2_window_rotation_app_set(Ecore_Wl2_Window *window, Eina_Bool set); /** + * Get if an application has set window rotation + * + * @param window + * + * @return EINA_TRUE if set, EINA_FALSE otherwise + * + * @ingroup Ecore_Wl2_Window_Group + * @since 1.20 + */ +EAPI Eina_Bool ecore_wl2_window_rotation_app_get(Ecore_Wl2_Window *window); + +/** * @defgroup Ecore_Wl2_Input_Group Wayland Library Input Functions * @ingroup Ecore_Wl2_Group * diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c index 9b82a2f..622cdea 100644 --- a/src/lib/ecore_wl2/ecore_wl2_window.c +++ b/src/lib/ecore_wl2/ecore_wl2_window.c @@ -1234,3 +1234,10 @@ ecore_wl2_window_rotation_app_set(Ecore_Wl2_Window *window, Eina_Bool set) EINA_SAFETY_ON_NULL_RETURN(window); window->wm_rot.app_set = set; } + +EAPI Eina_Bool +ecore_wl2_window_rotation_app_get(Ecore_Wl2_Window *window) +{ + EINA_SAFETY_ON_NULL_RETURN_VAL(window, EINA_FALSE); + return window->wm_rot.app_set; +}