aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/ecore/src/lib/ecore_x/ecore_x_window_shape.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2005-04-23 05:06:18 +0000
committerCarsten Haitzler <raster@rasterman.com>2005-04-23 05:06:18 +0000
commit6d90182cc164a2a456a50a55c969eb3d8efdcc51 (patch)
tree44c0a99de444cbc50fe1cdeec4e339d4434a3d86 /legacy/ecore/src/lib/ecore_x/ecore_x_window_shape.c
parentXWarpPointer wrapper (diff)
downloadefl-6d90182cc164a2a456a50a55c969eb3d8efdcc51.tar.gz
add utility function for clipping shapes to a rect
SVN revision: 14306
Diffstat (limited to 'legacy/ecore/src/lib/ecore_x/ecore_x_window_shape.c')
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_window_shape.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_window_shape.c b/legacy/ecore/src/lib/ecore_x/ecore_x_window_shape.c
index 23a8f39993..27ea707aa8 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_window_shape.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_window_shape.c
@@ -91,6 +91,18 @@ ecore_x_window_shape_rectangle_add(Ecore_X_Window win, int x, int y, int w, int
}
void
+ecore_x_window_shape_rectangle_clip(Ecore_X_Window win, int x, int y, int w, int h)
+{
+ XRectangle rect;
+
+ rect.x = x;
+ rect.y = y;
+ rect.width = w;
+ rect.height = h;
+ XShapeCombineRectangles(_ecore_x_disp, win, ShapeBounding, 0, 0, &rect, 1, ShapeIntersect, Unsorted);
+}
+
+void
ecore_x_window_shape_rectangles_add(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num)
{
XRectangle *rect = NULL;