[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[core/efl] master 03/06: Update doxy for opaque_region_set function. Add 'rotation' field to Ecore_Wl_Window structure. Add API functions to get/set window rotation.



devilhorns pushed a commit to branch master.

commit 677fdbf81c089f5e397413fd5276106128ae027b
Author: Chris Michael <cp.michael@samsung.com>
Date:   Tue Sep 17 07:31:44 2013 +0100

    Update doxy for opaque_region_set function.
    Add 'rotation' field to Ecore_Wl_Window structure.
    Add API functions to get/set window rotation.
    
    Signed-off-by: Chris Michael <cp.michael@samsung.com>
---
 src/lib/ecore_wayland/Ecore_Wayland.h | 26 +++++++++++++++++++++++---
 1 file changed, 23 insertions(+), 3 deletions(-)

diff --git a/src/lib/ecore_wayland/Ecore_Wayland.h b/src/lib/ecore_wayland/Ecore_Wayland.h
index cb5f249..dcec0cf 100644
--- a/src/lib/ecore_wayland/Ecore_Wayland.h
+++ b/src/lib/ecore_wayland/Ecore_Wayland.h
@@ -213,7 +213,7 @@ struct _Ecore_Wl_Window
      } pointer;
 
    int id, surface_id;
-   int edges;
+   int edges, rotation;
 
    Eina_Rectangle allocation;
 
@@ -731,8 +731,6 @@ EAPI void ecore_wl_window_input_region_set(Ecore_Wl_Window *win, int x, int y, i
 /**
  * Set the opaque region of the Ecore_Wl_Window
  * 
- * To set an empty region, pass width and height as 0.
- * 
  * @param win The window
  * @param x The left point of the region.
  * @param y The top point of the region.
@@ -745,6 +743,28 @@ EAPI void ecore_wl_window_input_region_set(Ecore_Wl_Window *win, int x, int y, i
 EAPI void ecore_wl_window_opaque_region_set(Ecore_Wl_Window *win, int x, int y, int w, int h);
 
 /**
+ * Set the rotation of the Ecore_Wl_Window
+ * 
+ * @param win The window
+ * @param rotation The degree of rotation for this window
+ * 
+ * @ingroup Ecore_Wl_Window_Group
+ * @since 1.8
+ */
+EAPI void ecore_wl_window_rotation_set(Ecore_Wl_Window *win, int rotation);
+
+/**
+ * Get the rotation of the Ecore_Wl_Window
+ * 
+ * @param win The window
+ * @return The degree of rotation for this window
+ * 
+ * @ingroup Ecore_Wl_Window_Group
+ * @since 1.8
+ */
+EAPI int ecore_wl_window_rotation_get(Ecore_Wl_Window *win);
+
+/**
  * @defgroup Ecore_Wl_Dnd_Group Functions dealing with Wayland Drag-n-Drop
  * @ingroup Ecore_Wl_Group
  *

--