diff options
author | fvogel <fvogelnew1@free.fr> | 2023-07-16 12:58:32 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2023-07-16 12:58:32 (GMT) |
commit | 17cd772470e5867a435c8475e35b6cbba1a63737 (patch) | |
tree | c7db89a7f4c7b77e72b567ac7c42c00293030e12 /macosx | |
parent | 444e600b9353a21efde61a3ea5444ae541a85308 (diff) | |
download | tk-17cd772470e5867a435c8475e35b6cbba1a63737.zip tk-17cd772470e5867a435c8475e35b6cbba1a63737.tar.gz tk-17cd772470e5867a435c8475e35b6cbba1a63737.tar.bz2 |
Bug [f9eddb541a] (TkSetRegion(), XSetClipRectangles): Patch 1 from Christopher Chavez - Introduce a convenience function TkpCopyRegion(dst, src).
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXRegion.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/macosx/tkMacOSXRegion.c b/macosx/tkMacOSXRegion.c index fbb41cb..e03cb2e 100644 --- a/macosx/tkMacOSXRegion.c +++ b/macosx/tkMacOSXRegion.c @@ -478,6 +478,30 @@ XOffsetRegion( /* *---------------------------------------------------------------------- * + * TkpCopyRegion -- + * + * Makes the destination region a copy of the source region. + * + * Results: + * None. + * + * Side effects: + * None. + * + *---------------------------------------------------------------------- + */ + +void +TkpCopyRegion( + TkRegion dst, + TkRegion src) +{ + ChkErr(HIShapeSetWithShape, (HIMutableShapeRef)dst, (HIShapeRef)src); +} + +/* + *---------------------------------------------------------------------- + * * TkMacOSXHIShapeCreateEmpty, TkMacOSXHIShapeCreateMutableWithRect, * TkMacOSXHIShapeSetWithShape, * TkMacOSHIShapeDifferenceWithRect, TkMacOSHIShapeUnionWithRect, |