summaryrefslogtreecommitdiff
path: root/tk/win/tkWinRegion.c
diff options
context:
space:
mode:
Diffstat (limited to 'tk/win/tkWinRegion.c')
-rw-r--r--tk/win/tkWinRegion.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/tk/win/tkWinRegion.c b/tk/win/tkWinRegion.c
index 3f4024da24e..ea48a5f592a 100644
--- a/tk/win/tkWinRegion.c
+++ b/tk/win/tkWinRegion.c
@@ -177,4 +177,28 @@ TkRectInRegion(r, x, y, width, height)
rect.right = x+width;
return RectInRegion((HRGN)r, &rect) ? RectanglePart : RectangleOut;
}
+
+/*
+ *----------------------------------------------------------------------
+ *
+ * TkSubtractRegion --
+ *
+ * Compute the set-difference of two regions.
+ *
+ * Results:
+ * Returns the result in the dr_return region.
+ *
+ * Side effects:
+ * None.
+ *
+ *----------------------------------------------------------------------
+ */
+void
+TkSubtractRegion(sra, srb, dr_return)
+ TkRegion sra;
+ TkRegion srb;
+ TkRegion dr_return;
+{
+ CombineRgn((HRGN) dr_return, (HRGN) sra, (HRGN) srb, RGN_DIFF);
+}