summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_x/ecore_x_window_shape.c
diff options
context:
space:
mode:
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.c24
1 files changed, 12 insertions, 12 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 92088ea..52ed342 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
@@ -16,25 +16,25 @@
16 * window. 16 * window.
17 * @ingroup Ecore_X_Window_Shape 17 * @ingroup Ecore_X_Window_Shape
18 */ 18 */
19void 19EAPI void
20ecore_x_window_shape_mask_set(Ecore_X_Window win, Ecore_X_Pixmap mask) 20ecore_x_window_shape_mask_set(Ecore_X_Window win, Ecore_X_Pixmap mask)
21{ 21{
22 XShapeCombineMask(_ecore_x_disp, win, ShapeBounding, 0, 0, mask, ShapeSet); 22 XShapeCombineMask(_ecore_x_disp, win, ShapeBounding, 0, 0, mask, ShapeSet);
23} 23}
24 24
25void 25EAPI void
26ecore_x_window_shape_window_set(Ecore_X_Window win, Ecore_X_Window shape_win) 26ecore_x_window_shape_window_set(Ecore_X_Window win, Ecore_X_Window shape_win)
27{ 27{
28 XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, 0, 0, shape_win, ShapeBounding, ShapeSet); 28 XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, 0, 0, shape_win, ShapeBounding, ShapeSet);
29} 29}
30 30
31void 31EAPI void
32ecore_x_window_shape_window_set_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y) 32ecore_x_window_shape_window_set_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y)
33{ 33{
34 XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, x, y, shape_win, ShapeBounding, ShapeSet); 34 XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, x, y, shape_win, ShapeBounding, ShapeSet);
35} 35}
36 36
37void 37EAPI void
38ecore_x_window_shape_rectangle_set(Ecore_X_Window win, int x, int y, int w, int h) 38ecore_x_window_shape_rectangle_set(Ecore_X_Window win, int x, int y, int w, int h)
39{ 39{
40 XRectangle rect; 40 XRectangle rect;
@@ -46,7 +46,7 @@ ecore_x_window_shape_rectangle_set(Ecore_X_Window win, int x, int y, int w, int
46 XShapeCombineRectangles(_ecore_x_disp, win, ShapeBounding, 0, 0, &rect, 1, ShapeSet, Unsorted); 46 XShapeCombineRectangles(_ecore_x_disp, win, ShapeBounding, 0, 0, &rect, 1, ShapeSet, Unsorted);
47} 47}
48 48
49void 49EAPI void
50ecore_x_window_shape_rectangles_set(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num) 50ecore_x_window_shape_rectangles_set(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num)
51{ 51{
52 XRectangle *rect = NULL; 52 XRectangle *rect = NULL;
@@ -72,19 +72,19 @@ ecore_x_window_shape_rectangles_set(Ecore_X_Window win, Ecore_X_Rectangle *rects
72 if (rect) free(rect); 72 if (rect) free(rect);
73} 73}
74 74
75void 75EAPI void
76ecore_x_window_shape_window_add(Ecore_X_Window win, Ecore_X_Window shape_win) 76ecore_x_window_shape_window_add(Ecore_X_Window win, Ecore_X_Window shape_win)
77{ 77{
78 XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, 0, 0, shape_win, ShapeBounding, ShapeUnion); 78 XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, 0, 0, shape_win, ShapeBounding, ShapeUnion);
79} 79}
80 80
81void 81EAPI void
82ecore_x_window_shape_window_add_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y) 82ecore_x_window_shape_window_add_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y)
83{ 83{
84 XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, x, y, shape_win, ShapeBounding, ShapeUnion); 84 XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, x, y, shape_win, ShapeBounding, ShapeUnion);
85} 85}
86 86
87void 87EAPI void
88ecore_x_window_shape_rectangle_add(Ecore_X_Window win, int x, int y, int w, int h) 88ecore_x_window_shape_rectangle_add(Ecore_X_Window win, int x, int y, int w, int h)
89{ 89{
90 XRectangle rect; 90 XRectangle rect;
@@ -96,7 +96,7 @@ ecore_x_window_shape_rectangle_add(Ecore_X_Window win, int x, int y, int w, int
96 XShapeCombineRectangles(_ecore_x_disp, win, ShapeBounding, 0, 0, &rect, 1, ShapeUnion, Unsorted); 96 XShapeCombineRectangles(_ecore_x_disp, win, ShapeBounding, 0, 0, &rect, 1, ShapeUnion, Unsorted);
97} 97}
98 98
99void 99EAPI void
100ecore_x_window_shape_rectangle_clip(Ecore_X_Window win, int x, int y, int w, int h) 100ecore_x_window_shape_rectangle_clip(Ecore_X_Window win, int x, int y, int w, int h)
101{ 101{
102 XRectangle rect; 102 XRectangle rect;
@@ -108,7 +108,7 @@ ecore_x_window_shape_rectangle_clip(Ecore_X_Window win, int x, int y, int w, int
108 XShapeCombineRectangles(_ecore_x_disp, win, ShapeBounding, 0, 0, &rect, 1, ShapeIntersect, Unsorted); 108 XShapeCombineRectangles(_ecore_x_disp, win, ShapeBounding, 0, 0, &rect, 1, ShapeIntersect, Unsorted);
109} 109}
110 110
111void 111EAPI void
112ecore_x_window_shape_rectangles_add(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num) 112ecore_x_window_shape_rectangles_add(Ecore_X_Window win, Ecore_X_Rectangle *rects, int num)
113{ 113{
114 XRectangle *rect = NULL; 114 XRectangle *rect = NULL;
@@ -134,7 +134,7 @@ ecore_x_window_shape_rectangles_add(Ecore_X_Window win, Ecore_X_Rectangle *rects
134 if (rect) free(rect); 134 if (rect) free(rect);
135} 135}
136 136
137Ecore_X_Rectangle * 137EAPI Ecore_X_Rectangle *
138ecore_x_window_shape_rectangles_get(Ecore_X_Window win, int *num_ret) 138ecore_x_window_shape_rectangles_get(Ecore_X_Window win, int *num_ret)
139{ 139{
140 XRectangle *rect; 140 XRectangle *rect;
@@ -161,7 +161,7 @@ ecore_x_window_shape_rectangles_get(Ecore_X_Window win, int *num_ret)
161 return rects; 161 return rects;
162} 162}
163 163
164void 164EAPI void
165ecore_x_window_shape_events_select(Ecore_X_Window win, int on) 165ecore_x_window_shape_events_select(Ecore_X_Window win, int on)
166{ 166{
167 if (on) 167 if (on)