summaryrefslogtreecommitdiff
path: root/src/cairo.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-07-06 17:27:18 +0200
committerBenjamin Otte <otte@redhat.com>2010-07-06 17:27:18 +0200
commit4c91bb9a221bc8e3d65a96365bbd1157b3f4e612 (patch)
tree84de58b59ee99f29e45a6b598e015a003ea0a5e0 /src/cairo.h
parent82de6336d88be43de759b94634e87b9e4a8391b1 (diff)
downloadcairo-4c91bb9a221bc8e3d65a96365bbd1157b3f4e612.tar.gz
region: Add cairo_region_xor() and cairo_region_xor_rectangle()
gdk_region_xor() was a quite often used function in GDK and now that GDKe uses cairo regions, it seems like a worthwhile addition to Cairo.
Diffstat (limited to 'src/cairo.h')
-rw-r--r--src/cairo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cairo.h b/src/cairo.h
index a2d37f9ce..94fc11f72 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -2685,6 +2685,12 @@ cairo_public cairo_status_t
cairo_region_union_rectangle (cairo_region_t *dst,
const cairo_rectangle_int_t *rectangle);
+cairo_public cairo_status_t
+cairo_region_xor (cairo_region_t *dst, const cairo_region_t *other);
+
+cairo_public cairo_status_t
+cairo_region_xor_rectangle (cairo_region_t *dst,
+ const cairo_rectangle_int_t *rectangle);
/* Functions to be used while debugging (not intended for use in production code) */
cairo_public void