devilhorns pushed a commit to branch master.

commit 6a228b5b7fb8d2d03ae2d12271d2529731d03aee
Author: Chris Michael <[email protected]>
Date:   Thu Aug 29 09:25:34 2013 +0100

    Add API functions for setting window input & opaque regions.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/ecore_wayland/Ecore_Wayland.h | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/src/lib/ecore_wayland/Ecore_Wayland.h 
b/src/lib/ecore_wayland/Ecore_Wayland.h
index b9e0eeb..f21aad2 100644
--- a/src/lib/ecore_wayland/Ecore_Wayland.h
+++ b/src/lib/ecore_wayland/Ecore_Wayland.h
@@ -707,6 +707,40 @@ EAPI Eina_Bool ecore_wl_window_alpha_get(Ecore_Wl_Window 
*win);
 EAPI Ecore_Wl_Window *ecore_wl_window_surface_find(struct wl_surface *surface);
 
 /**
+ * Set the input region of the Ecore_Wl_Window.
+ * 
+ * To set an empty region, pass width and height as 0.
+ * 
+ * An empty input region means the entire window surface will accept input.
+ * 
+ * @param win The window
+ * @param x The left point of the region.
+ * @param y The top point of the region.
+ * @param w The width of the region.
+ * @param h The height of the region.
+ * 
+ * @ingroup Ecore_Wl_Window_Group
+ * @since 1.8
+ */
+EAPI void ecore_wl_window_input_region_set(Ecore_Wl_Window *win, int x, int y, 
int w, int h);
+
+/**
+ * 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.
+ * @param w The width of the region.
+ * @param h The height of the region.
+ * 
+ * @ingroup Ecore_Wl_Window_Group
+ * @since 1.8
+ */
+EAPI void ecore_wl_window_opaque_region_set(Ecore_Wl_Window *win, int x, int 
y, int w, int h);
+
+/**
  * @defgroup Ecore_Wl_Dnd_Group Functions dealing with Wayland Drag-n-Drop
  * @ingroup Ecore_Wl_Group
  *

-- 

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk

Reply via email to