diff options
author | dkf <dkf@noemail.net> | 2002-06-14 13:35:46 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2002-06-14 13:35:46 (GMT) |
commit | 37dad6009a6a0a0a94daf1c22e5c4a08d783fc2a (patch) | |
tree | c4ad54b29f443e940a51b7b0ca0a9c57e5b65adc /mac | |
parent | b4c5516caec4694bb80034cfd1c8f50517eb4149 (diff) | |
download | tk-37dad6009a6a0a0a94daf1c22e5c4a08d783fc2a.zip tk-37dad6009a6a0a0a94daf1c22e5c4a08d783fc2a.tar.gz tk-37dad6009a6a0a0a94daf1c22e5c4a08d783fc2a.tar.bz2 |
TIP#98 implementation; improved photo image copy and GIF frame access
FossilOrigin-Name: 7084752cc1be137e6ef4ba7d6d4bf201c05a6f32
Diffstat (limited to 'mac')
-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); +} |