mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Added ClipCGContextToRegion() from Quickdraw.h.
This commit is contained in:
parent
aa158be623
commit
dd989e1ce7
4 changed files with 30 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue