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 /win | |
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 'win')
-rw-r--r-- | win/tkWinRegion.c | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/win/tkWinRegion.c b/win/tkWinRegion.c index c7be771..8a50620 100644 --- a/win/tkWinRegion.c +++ b/win/tkWinRegion.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: tkWinRegion.c,v 1.2 1998/09/14 18:24:01 stanton Exp $ + * RCS: @(#) $Id: tkWinRegion.c,v 1.3 2002/06/14 13:35:49 dkf Exp $ */ #include "tkWinInt.h" @@ -177,3 +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); +} |