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 | 4c372e0c2422c6fedf00b5c9288d392f5a21444a (patch) | |
tree | c4ad54b29f443e940a51b7b0ca0a9c57e5b65adc /mac/tkMacRegion.c | |
parent | 9e63c2ab855bd66e2bf4db1fe404f579f4c1fbd5 (diff) | |
download | tk-4c372e0c2422c6fedf00b5c9288d392f5a21444a.zip tk-4c372e0c2422c6fedf00b5c9288d392f5a21444a.tar.gz tk-4c372e0c2422c6fedf00b5c9288d392f5a21444a.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); +} |