ecore-wl2: Add API to set if an application has rotation a window
authorChris Michael <cp.michael@samsung.com>
Fri, 9 Jun 2017 13:36:17 +0000 (09:36 -0400)
committerChris Michael <cp.michael@samsung.com>
Fri, 9 Jun 2017 16:29:25 +0000 (12:29 -0400)
@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_wl2/Ecore_Wl2.h
src/lib/ecore_wl2/ecore_wl2_private.h
src/lib/ecore_wl2/ecore_wl2_window.c

index bd832b3..34bf757 100644 (file)
@@ -996,6 +996,17 @@ EAPI void ecore_wl2_window_wm_rotation_supported_set(Ecore_Wl2_Window *window, E
 EAPI Eina_Bool ecore_wl2_window_wm_rotation_supported_get(Ecore_Wl2_Window *window);
 
 /**
+ * Set if an application has set window rotation
+ *
+ * @param window
+ * @param set
+ *
+ * @ingroup Ecore_Wl2_Window_Group
+ * @since 1.20
+ */
+EAPI void ecore_wl2_window_rotation_app_set(Ecore_Wl2_Window *window, Eina_Bool set);
+
+/**
  * @defgroup Ecore_Wl2_Input_Group Wayland Library Input Functions
  * @ingroup Ecore_Wl2_Group
  *
index 8c6ef6a..9687b7f 100644 (file)
@@ -189,6 +189,7 @@ struct _Ecore_Wl2_Window
    struct
      {
         Eina_Bool supported : 1;
+        Eina_Bool app_set : 1;
      } wm_rot;
 };
 
index ef5da9d..9b82a2f 100644 (file)
@@ -1227,3 +1227,10 @@ ecore_wl2_window_wm_rotation_supported_get(Ecore_Wl2_Window *window)
    EINA_SAFETY_ON_NULL_RETURN_VAL(window, EINA_FALSE);
    return window->wm_rot.supported;
 }
+
+EAPI void
+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;
+}