aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Mac/Modules/cg/cgsupport.py
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2002-03-04 10:31:32 +0000
committerJust van Rossum <just@letterror.com>2002-03-04 10:31:32 +0000
commitdd989e1ce795dac837b51e40883dbd6f38dd9dd8 (patch)
treeceaae069c5b4b72d9e31da293b4fd7ffaa640e05 /Mac/Modules/cg/cgsupport.py
parentaa158be6233d8df6d87bf6e20f59e62ef2114a44 (diff)
downloadcpython-dd989e1ce795dac837b51e40883dbd6f38dd9dd8.tar.gz
cpython-dd989e1ce795dac837b51e40883dbd6f38dd9dd8.zip
Added ClipCGContextToRegion() from Quickdraw.h.
Diffstat (limited to 'Mac/Modules/cg/cgsupport.py')
-rwxr-xr-xMac/Modules/cg/cgsupport.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Mac/Modules/cg/cgsupport.py b/Mac/Modules/cg/cgsupport.py
index c9255eef29b..d0906855344 100755
--- a/Mac/Modules/cg/cgsupport.py
+++ b/Mac/Modules/cg/cgsupport.py
@@ -18,6 +18,7 @@ OUTPUTFILE = MODNAME + "module.c" # The file generated by this program
from macsupport import *
CGrafPtr = OpaqueByValueType("CGrafPtr", "GrafObj")
+RgnHandle = OpaqueByValueType("RgnHandle", "ResObj")
# Create the type objects
@@ -283,6 +284,15 @@ f = Method(void, 'SyncCGContextOriginWithPort',
)
CGContextRef_methods.append(f)
+# manual method, lives in Quickdraw.h
+f = Method(void, 'ClipCGContextToRegion',
+ (CGContextRef, 'ctx', InMode),
+ (Rect, 'portRect', InMode),
+ (RgnHandle, 'region', InMode),
+)
+CGContextRef_methods.append(f)
+
+
CreateCGContextForPort_body = """\
GrafPtr port;
CGContextRef ctx;