diff options
author | David Walter Seikel | 2012-01-23 23:30:42 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-23 23:30:42 +1000 |
commit | 825a3d837a33f226c879cd02ad15c3fba57e8b2c (patch) | |
tree | 75f57bd9c4253508d338dc79ba8e57a7abc42255 /libraries/ecore/src/lib/ecore_x/xlib/ecore_x_window_shape.c | |
parent | Add ability to disable the test harness, or the Lua compile test. (diff) | |
download | SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.zip SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.tar.gz SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.tar.bz2 SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.tar.xz |
Update the EFL to what I'm actually using, coz I'm using some stuff not yet released.
Diffstat (limited to 'libraries/ecore/src/lib/ecore_x/xlib/ecore_x_window_shape.c')
-rw-r--r-- | libraries/ecore/src/lib/ecore_x/xlib/ecore_x_window_shape.c | 150 |
1 files changed, 75 insertions, 75 deletions
diff --git a/libraries/ecore/src/lib/ecore_x/xlib/ecore_x_window_shape.c b/libraries/ecore/src/lib/ecore_x/xlib/ecore_x_window_shape.c index 2e8f8ce..71718cf 100644 --- a/libraries/ecore/src/lib/ecore_x/xlib/ecore_x_window_shape.c +++ b/libraries/ecore/src/lib/ecore_x/xlib/ecore_x_window_shape.c | |||
@@ -28,7 +28,7 @@ ecore_x_window_shape_mask_set(Ecore_X_Window win, | |||
28 | { | 28 | { |
29 | LOGFN(__FILE__, __LINE__, __FUNCTION__); | 29 | LOGFN(__FILE__, __LINE__, __FUNCTION__); |
30 | XShapeCombineMask(_ecore_x_disp, win, ShapeBounding, 0, 0, mask, ShapeSet); | 30 | XShapeCombineMask(_ecore_x_disp, win, ShapeBounding, 0, 0, mask, ShapeSet); |
31 | } /* ecore_x_window_shape_mask_set */ | 31 | } |
32 | 32 | ||
33 | /** | 33 | /** |
34 | * Sets the input shape of the given window to that given by the pixmap @p mask. | 34 | * Sets the input shape of the given window to that given by the pixmap @p mask. |
@@ -48,7 +48,7 @@ ecore_x_window_shape_input_mask_set(Ecore_X_Window win, | |||
48 | return; | 48 | return; |
49 | win = mask = 0; | 49 | win = mask = 0; |
50 | #endif /* ifdef ShapeInput */ | 50 | #endif /* ifdef ShapeInput */ |
51 | } /* ecore_x_window_shape_input_mask_set */ | 51 | } |
52 | 52 | ||
53 | EAPI void | 53 | EAPI void |
54 | ecore_x_window_shape_window_set(Ecore_X_Window win, | 54 | ecore_x_window_shape_window_set(Ecore_X_Window win, |
@@ -63,7 +63,7 @@ ecore_x_window_shape_window_set(Ecore_X_Window win, | |||
63 | shape_win, | 63 | shape_win, |
64 | ShapeBounding, | 64 | ShapeBounding, |
65 | ShapeSet); | 65 | ShapeSet); |
66 | } /* ecore_x_window_shape_window_set */ | 66 | } |
67 | 67 | ||
68 | EAPI void | 68 | EAPI void |
69 | ecore_x_window_shape_input_window_set(Ecore_X_Window win, | 69 | ecore_x_window_shape_input_window_set(Ecore_X_Window win, |
@@ -83,13 +83,13 @@ ecore_x_window_shape_input_window_set(Ecore_X_Window win, | |||
83 | return; | 83 | return; |
84 | win = shape_win = 0; | 84 | win = shape_win = 0; |
85 | #endif | 85 | #endif |
86 | } /* ecore_x_window_shape_input_window_set */ | 86 | } |
87 | 87 | ||
88 | EAPI void | 88 | EAPI void |
89 | ecore_x_window_shape_window_set_xy(Ecore_X_Window win, | 89 | ecore_x_window_shape_window_set_xy(Ecore_X_Window win, |
90 | Ecore_X_Window shape_win, | 90 | Ecore_X_Window shape_win, |
91 | int x, | 91 | int x, |
92 | int y) | 92 | int y) |
93 | { | 93 | { |
94 | LOGFN(__FILE__, __LINE__, __FUNCTION__); | 94 | LOGFN(__FILE__, __LINE__, __FUNCTION__); |
95 | XShapeCombineShape(_ecore_x_disp, | 95 | XShapeCombineShape(_ecore_x_disp, |
@@ -100,13 +100,13 @@ ecore_x_window_shape_window_set_xy(Ecore_X_Window win, | |||
100 | shape_win, | 100 | shape_win, |
101 | ShapeBounding, | 101 | ShapeBounding, |
102 | ShapeSet); | 102 | ShapeSet); |
103 | } /* ecore_x_window_shape_window_set_xy */ | 103 | } |
104 | 104 | ||
105 | EAPI void | 105 | EAPI void |
106 | ecore_x_window_shape_input_window_set_xy(Ecore_X_Window win, | 106 | ecore_x_window_shape_input_window_set_xy(Ecore_X_Window win, |
107 | Ecore_X_Window shape_win, | 107 | Ecore_X_Window shape_win, |
108 | int x, | 108 | int x, |
109 | int y) | 109 | int y) |
110 | { | 110 | { |
111 | #ifdef ShapeInput | 111 | #ifdef ShapeInput |
112 | LOGFN(__FILE__, __LINE__, __FUNCTION__); | 112 | LOGFN(__FILE__, __LINE__, __FUNCTION__); |
@@ -122,14 +122,14 @@ ecore_x_window_shape_input_window_set_xy(Ecore_X_Window win, | |||
122 | return; | 122 | return; |
123 | win = shape_win = x = y = 0; | 123 | win = shape_win = x = y = 0; |
124 | #endif | 124 | #endif |
125 | } /* ecore_x_window_shape_input_window_set_xy */ | 125 | } |
126 | 126 | ||
127 | EAPI void | 127 | EAPI void |
128 | ecore_x_window_shape_rectangle_set(Ecore_X_Window win, | 128 | ecore_x_window_shape_rectangle_set(Ecore_X_Window win, |
129 | int x, | 129 | int x, |
130 | int y, | 130 | int y, |
131 | int w, | 131 | int w, |
132 | int h) | 132 | int h) |
133 | { | 133 | { |
134 | XRectangle rect; | 134 | XRectangle rect; |
135 | 135 | ||
@@ -147,14 +147,14 @@ ecore_x_window_shape_rectangle_set(Ecore_X_Window win, | |||
147 | 1, | 147 | 1, |
148 | ShapeSet, | 148 | ShapeSet, |
149 | Unsorted); | 149 | Unsorted); |
150 | } /* ecore_x_window_shape_rectangle_set */ | 150 | } |
151 | 151 | ||
152 | EAPI void | 152 | EAPI void |
153 | ecore_x_window_shape_input_rectangle_set(Ecore_X_Window win, | 153 | ecore_x_window_shape_input_rectangle_set(Ecore_X_Window win, |
154 | int x, | 154 | int x, |
155 | int y, | 155 | int y, |
156 | int w, | 156 | int w, |
157 | int h) | 157 | int h) |
158 | { | 158 | { |
159 | #ifdef ShapeInput | 159 | #ifdef ShapeInput |
160 | XRectangle rect; | 160 | XRectangle rect; |
@@ -177,12 +177,12 @@ ecore_x_window_shape_input_rectangle_set(Ecore_X_Window win, | |||
177 | return; | 177 | return; |
178 | win = x = y = w = h = 0; | 178 | win = x = y = w = h = 0; |
179 | #endif | 179 | #endif |
180 | } /* ecore_x_window_shape_input_rectangle_set */ | 180 | } |
181 | 181 | ||
182 | EAPI void | 182 | EAPI void |
183 | ecore_x_window_shape_rectangles_set(Ecore_X_Window win, | 183 | ecore_x_window_shape_rectangles_set(Ecore_X_Window win, |
184 | Ecore_X_Rectangle *rects, | 184 | Ecore_X_Rectangle *rects, |
185 | int num) | 185 | int num) |
186 | { | 186 | { |
187 | #ifdef ShapeInput | 187 | #ifdef ShapeInput |
188 | XRectangle *rect = NULL; | 188 | XRectangle *rect = NULL; |
@@ -216,12 +216,12 @@ ecore_x_window_shape_rectangles_set(Ecore_X_Window win, | |||
216 | return; | 216 | return; |
217 | win = rects = num = 0; | 217 | win = rects = num = 0; |
218 | #endif | 218 | #endif |
219 | } /* ecore_x_window_shape_rectangles_set */ | 219 | } |
220 | 220 | ||
221 | EAPI void | 221 | EAPI void |
222 | ecore_x_window_shape_input_rectangles_set(Ecore_X_Window win, | 222 | ecore_x_window_shape_input_rectangles_set(Ecore_X_Window win, |
223 | Ecore_X_Rectangle *rects, | 223 | Ecore_X_Rectangle *rects, |
224 | int num) | 224 | int num) |
225 | { | 225 | { |
226 | #ifdef ShapeInput | 226 | #ifdef ShapeInput |
227 | XRectangle *rect = NULL; | 227 | XRectangle *rect = NULL; |
@@ -255,14 +255,14 @@ ecore_x_window_shape_input_rectangles_set(Ecore_X_Window win, | |||
255 | return; | 255 | return; |
256 | win = rects = num = 0; | 256 | win = rects = num = 0; |
257 | #endif | 257 | #endif |
258 | } /* ecore_x_window_shape_input_rectangles_set */ | 258 | } |
259 | 259 | ||
260 | EAPI void | 260 | EAPI void |
261 | ecore_x_window_shape_rectangle_subtract(Ecore_X_Window win, | 261 | ecore_x_window_shape_rectangle_subtract(Ecore_X_Window win, |
262 | int x, | 262 | int x, |
263 | int y, | 263 | int y, |
264 | int w, | 264 | int w, |
265 | int h) | 265 | int h) |
266 | { | 266 | { |
267 | XRectangle rect; | 267 | XRectangle rect; |
268 | 268 | ||
@@ -280,14 +280,14 @@ ecore_x_window_shape_rectangle_subtract(Ecore_X_Window win, | |||
280 | 1, | 280 | 1, |
281 | ShapeSubtract, | 281 | ShapeSubtract, |
282 | Unsorted); | 282 | Unsorted); |
283 | } /* ecore_x_window_shape_rectangle_subtract */ | 283 | } |
284 | 284 | ||
285 | EAPI void | 285 | EAPI void |
286 | ecore_x_window_shape_input_rectangle_subtract(Ecore_X_Window win, | 286 | ecore_x_window_shape_input_rectangle_subtract(Ecore_X_Window win, |
287 | int x, | 287 | int x, |
288 | int y, | 288 | int y, |
289 | int w, | 289 | int w, |
290 | int h) | 290 | int h) |
291 | { | 291 | { |
292 | #ifdef ShapeInput | 292 | #ifdef ShapeInput |
293 | XRectangle rect; | 293 | XRectangle rect; |
@@ -310,7 +310,7 @@ ecore_x_window_shape_input_rectangle_subtract(Ecore_X_Window win, | |||
310 | return; | 310 | return; |
311 | win = x = y = w = h = 0; | 311 | win = x = y = w = h = 0; |
312 | #endif | 312 | #endif |
313 | } /* ecore_x_window_shape_input_rectangle_subtract */ | 313 | } |
314 | 314 | ||
315 | EAPI void | 315 | EAPI void |
316 | ecore_x_window_shape_window_add(Ecore_X_Window win, | 316 | ecore_x_window_shape_window_add(Ecore_X_Window win, |
@@ -325,13 +325,13 @@ ecore_x_window_shape_window_add(Ecore_X_Window win, | |||
325 | shape_win, | 325 | shape_win, |
326 | ShapeBounding, | 326 | ShapeBounding, |
327 | ShapeUnion); | 327 | ShapeUnion); |
328 | } /* ecore_x_window_shape_window_add */ | 328 | } |
329 | 329 | ||
330 | EAPI void | 330 | EAPI void |
331 | ecore_x_window_shape_window_add_xy(Ecore_X_Window win, | 331 | ecore_x_window_shape_window_add_xy(Ecore_X_Window win, |
332 | Ecore_X_Window shape_win, | 332 | Ecore_X_Window shape_win, |
333 | int x, | 333 | int x, |
334 | int y) | 334 | int y) |
335 | { | 335 | { |
336 | LOGFN(__FILE__, __LINE__, __FUNCTION__); | 336 | LOGFN(__FILE__, __LINE__, __FUNCTION__); |
337 | XShapeCombineShape(_ecore_x_disp, | 337 | XShapeCombineShape(_ecore_x_disp, |
@@ -342,13 +342,13 @@ ecore_x_window_shape_window_add_xy(Ecore_X_Window win, | |||
342 | shape_win, | 342 | shape_win, |
343 | ShapeBounding, | 343 | ShapeBounding, |
344 | ShapeUnion); | 344 | ShapeUnion); |
345 | } /* ecore_x_window_shape_window_add_xy */ | 345 | } |
346 | 346 | ||
347 | EAPI void | 347 | EAPI void |
348 | ecore_x_window_shape_input_window_add_xy(Ecore_X_Window win, | 348 | ecore_x_window_shape_input_window_add_xy(Ecore_X_Window win, |
349 | Ecore_X_Window shape_win, | 349 | Ecore_X_Window shape_win, |
350 | int x, | 350 | int x, |
351 | int y) | 351 | int y) |
352 | { | 352 | { |
353 | #ifdef ShapeInput | 353 | #ifdef ShapeInput |
354 | LOGFN(__FILE__, __LINE__, __FUNCTION__); | 354 | LOGFN(__FILE__, __LINE__, __FUNCTION__); |
@@ -364,14 +364,14 @@ ecore_x_window_shape_input_window_add_xy(Ecore_X_Window win, | |||
364 | return; | 364 | return; |
365 | win = shape_win = x = y = 0; | 365 | win = shape_win = x = y = 0; |
366 | #endif | 366 | #endif |
367 | } /* ecore_x_window_shape_input_window_add_xy */ | 367 | } |
368 | 368 | ||
369 | EAPI void | 369 | EAPI void |
370 | ecore_x_window_shape_rectangle_add(Ecore_X_Window win, | 370 | ecore_x_window_shape_rectangle_add(Ecore_X_Window win, |
371 | int x, | 371 | int x, |
372 | int y, | 372 | int y, |
373 | int w, | 373 | int w, |
374 | int h) | 374 | int h) |
375 | { | 375 | { |
376 | XRectangle rect; | 376 | XRectangle rect; |
377 | 377 | ||
@@ -389,14 +389,14 @@ ecore_x_window_shape_rectangle_add(Ecore_X_Window win, | |||
389 | 1, | 389 | 1, |
390 | ShapeUnion, | 390 | ShapeUnion, |
391 | Unsorted); | 391 | Unsorted); |
392 | } /* ecore_x_window_shape_rectangle_add */ | 392 | } |
393 | 393 | ||
394 | EAPI void | 394 | EAPI void |
395 | ecore_x_window_shape_input_rectangle_add(Ecore_X_Window win, | 395 | ecore_x_window_shape_input_rectangle_add(Ecore_X_Window win, |
396 | int x, | 396 | int x, |
397 | int y, | 397 | int y, |
398 | int w, | 398 | int w, |
399 | int h) | 399 | int h) |
400 | { | 400 | { |
401 | #ifdef ShapeInput | 401 | #ifdef ShapeInput |
402 | XRectangle rect; | 402 | XRectangle rect; |
@@ -419,14 +419,14 @@ ecore_x_window_shape_input_rectangle_add(Ecore_X_Window win, | |||
419 | return; | 419 | return; |
420 | win = x = y = w = h = 0; | 420 | win = x = y = w = h = 0; |
421 | #endif | 421 | #endif |
422 | } /* ecore_x_window_shape_input_rectangle_add */ | 422 | } |
423 | 423 | ||
424 | EAPI void | 424 | EAPI void |
425 | ecore_x_window_shape_rectangle_clip(Ecore_X_Window win, | 425 | ecore_x_window_shape_rectangle_clip(Ecore_X_Window win, |
426 | int x, | 426 | int x, |
427 | int y, | 427 | int y, |
428 | int w, | 428 | int w, |
429 | int h) | 429 | int h) |
430 | { | 430 | { |
431 | XRectangle rect; | 431 | XRectangle rect; |
432 | 432 | ||
@@ -444,14 +444,14 @@ ecore_x_window_shape_rectangle_clip(Ecore_X_Window win, | |||
444 | 1, | 444 | 1, |
445 | ShapeIntersect, | 445 | ShapeIntersect, |
446 | Unsorted); | 446 | Unsorted); |
447 | } /* ecore_x_window_shape_rectangle_clip */ | 447 | } |
448 | 448 | ||
449 | EAPI void | 449 | EAPI void |
450 | ecore_x_window_shape_input_rectangle_clip(Ecore_X_Window win, | 450 | ecore_x_window_shape_input_rectangle_clip(Ecore_X_Window win, |
451 | int x, | 451 | int x, |
452 | int y, | 452 | int y, |
453 | int w, | 453 | int w, |
454 | int h) | 454 | int h) |
455 | { | 455 | { |
456 | #ifdef ShapeInput | 456 | #ifdef ShapeInput |
457 | XRectangle rect; | 457 | XRectangle rect; |
@@ -474,12 +474,12 @@ ecore_x_window_shape_input_rectangle_clip(Ecore_X_Window win, | |||
474 | return; | 474 | return; |
475 | win = x = y = w = h = 0; | 475 | win = x = y = w = h = 0; |
476 | #endif | 476 | #endif |
477 | } /* ecore_x_window_shape_input_rectangle_clip */ | 477 | } |
478 | 478 | ||
479 | EAPI void | 479 | EAPI void |
480 | ecore_x_window_shape_rectangles_add(Ecore_X_Window win, | 480 | ecore_x_window_shape_rectangles_add(Ecore_X_Window win, |
481 | Ecore_X_Rectangle *rects, | 481 | Ecore_X_Rectangle *rects, |
482 | int num) | 482 | int num) |
483 | { | 483 | { |
484 | XRectangle *rect = NULL; | 484 | XRectangle *rect = NULL; |
485 | int i; | 485 | int i; |
@@ -508,12 +508,12 @@ ecore_x_window_shape_rectangles_add(Ecore_X_Window win, | |||
508 | ShapeUnion, | 508 | ShapeUnion, |
509 | Unsorted); | 509 | Unsorted); |
510 | if (rect) free(rect); | 510 | if (rect) free(rect); |
511 | } /* ecore_x_window_shape_rectangles_add */ | 511 | } |
512 | 512 | ||
513 | EAPI void | 513 | EAPI void |
514 | ecore_x_window_shape_input_rectangles_add(Ecore_X_Window win, | 514 | ecore_x_window_shape_input_rectangles_add(Ecore_X_Window win, |
515 | Ecore_X_Rectangle *rects, | 515 | Ecore_X_Rectangle *rects, |
516 | int num) | 516 | int num) |
517 | { | 517 | { |
518 | #ifdef ShapeInput | 518 | #ifdef ShapeInput |
519 | XRectangle *rect = NULL; | 519 | XRectangle *rect = NULL; |
@@ -547,11 +547,11 @@ ecore_x_window_shape_input_rectangles_add(Ecore_X_Window win, | |||
547 | return; | 547 | return; |
548 | win = rects = num = 0; | 548 | win = rects = num = 0; |
549 | #endif | 549 | #endif |
550 | } /* ecore_x_window_shape_input_rectangles_add */ | 550 | } |
551 | 551 | ||
552 | EAPI Ecore_X_Rectangle * | 552 | EAPI Ecore_X_Rectangle * |
553 | ecore_x_window_shape_rectangles_get(Ecore_X_Window win, | 553 | ecore_x_window_shape_rectangles_get(Ecore_X_Window win, |
554 | int *num_ret) | 554 | int *num_ret) |
555 | { | 555 | { |
556 | XRectangle *rect; | 556 | XRectangle *rect; |
557 | Ecore_X_Rectangle *rects = NULL; | 557 | Ecore_X_Rectangle *rects = NULL; |
@@ -585,11 +585,11 @@ ecore_x_window_shape_rectangles_get(Ecore_X_Window win, | |||
585 | } | 585 | } |
586 | if (num_ret) *num_ret = num; | 586 | if (num_ret) *num_ret = num; |
587 | return rects; | 587 | return rects; |
588 | } /* ecore_x_window_shape_rectangles_get */ | 588 | } |
589 | 589 | ||
590 | EAPI Ecore_X_Rectangle * | 590 | EAPI Ecore_X_Rectangle * |
591 | ecore_x_window_shape_input_rectangles_get(Ecore_X_Window win, | 591 | ecore_x_window_shape_input_rectangles_get(Ecore_X_Window win, |
592 | int *num_ret) | 592 | int *num_ret) |
593 | { | 593 | { |
594 | Ecore_X_Rectangle *rects = NULL; | 594 | Ecore_X_Rectangle *rects = NULL; |
595 | #ifdef ShapeInput | 595 | #ifdef ShapeInput |
@@ -643,16 +643,16 @@ ecore_x_window_shape_input_rectangles_get(Ecore_X_Window win, | |||
643 | if (num_ret) *num_ret = 1; | 643 | if (num_ret) *num_ret = 1; |
644 | return rects; | 644 | return rects; |
645 | #endif | 645 | #endif |
646 | } /* ecore_x_window_shape_input_rectangles_get */ | 646 | } |
647 | 647 | ||
648 | EAPI void | 648 | EAPI void |
649 | ecore_x_window_shape_events_select(Ecore_X_Window win, | 649 | ecore_x_window_shape_events_select(Ecore_X_Window win, |
650 | Eina_Bool on) | 650 | Eina_Bool on) |
651 | { | 651 | { |
652 | LOGFN(__FILE__, __LINE__, __FUNCTION__); | 652 | LOGFN(__FILE__, __LINE__, __FUNCTION__); |
653 | if (on) | 653 | if (on) |
654 | XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask); | 654 | XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask); |
655 | else | 655 | else |
656 | XShapeSelectInput(_ecore_x_disp, win, 0); | 656 | XShapeSelectInput(_ecore_x_disp, win, 0); |
657 | } /* ecore_x_window_shape_events_select */ | 657 | } |
658 | 658 | ||