summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/cg/cgsupport.py
diff options
context:
space:
mode:
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 c9255ee..d090685 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;