diff options
author | donal.k.fellows@manchester.ac.uk <dkf> | 2002-06-14 13:35:46 (GMT) |
---|---|---|
committer | donal.k.fellows@manchester.ac.uk <dkf> | 2002-06-14 13:35:46 (GMT) |
commit | 800371951994b2cb1817cf287544ce5db5d1c98c (patch) | |
tree | c4ad54b29f443e940a51b7b0ca0a9c57e5b65adc /mac/tkMacRegion.c | |
parent | f57c1943cc89b76d669b5a80b9fb0a94a600f180 (diff) | |
download | tk-800371951994b2cb1817cf287544ce5db5d1c98c.zip tk-800371951994b2cb1817cf287544ce5db5d1c98c.tar.gz tk-800371951994b2cb1817cf287544ce5db5d1c98c.tar.bz2 |
TIP#98 implementation; improved photo image copy and GIF frame access
Diffstat (limited to 'mac/tkMacRegion.c')
-rw-r--r-- | mac/tkMacRegion.c | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/mac/tkMacRegion.c b/mac/tkMacRegion.c index c2a70ae..86e193e 100644 --- a/mac/tkMacRegion.c +++ b/mac/tkMacRegion.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacRegion.c,v 1.3 1999/05/22 06:35:00 jingham Exp $ + * RCS: @(#) $Id: tkMacRegion.c,v 1.4 2002/06/14 13:35:49 dkf Exp $ */ #include "tkInt.h" @@ -216,3 +216,33 @@ TkClipBox( rect_return->width = (**rgn).rgnBBox.right - (**rgn).rgnBBox.left; rect_return->height = (**rgn).rgnBBox.bottom - (**rgn).rgnBBox.top; } + +/* + *---------------------------------------------------------------------- + * + * TkSubtractRegion -- + * + * Implements the equivilent of the X window function + * XSubtractRegion. See X window documentation for more details. + * + * Results: + * None. + * + * Side effects: + * None. + * + *---------------------------------------------------------------------- + */ + +void +TkSubtractRegion( + TkRegion sra, + TkRegion srb, + TkRegion dr_return) +{ + RgnHandle srcRgnA = (RgnHandle) sra; + RgnHandle srcRgnB = (RgnHandle) srb; + RgnHandle destRgn = (RgnHandle) dr_return; + + DiffRgn(srcRgnA, srcRgnB, destRgn); +} |