diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-24 14:05:11 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-24 14:05:11 (GMT) |
commit | bd58edaa011680e26fccd3b88619b9596b16a2d7 (patch) | |
tree | c00e1d918c0b30ba1692a88eec1e50632fbcf4ed /Mac/Modules/qd/qdscan.py | |
parent | 1baf829835adc795203179fc84256a6a7ca6202d (diff) | |
download | cpython-bd58edaa011680e26fccd3b88619b9596b16a2d7.zip cpython-bd58edaa011680e26fccd3b88619b9596b16a2d7.tar.gz cpython-bd58edaa011680e26fccd3b88619b9596b16a2d7.tar.bz2 |
Implemented direct attribute access for Carbon builds and accessor functions for non-carbon builds.
Diffstat (limited to 'Mac/Modules/qd/qdscan.py')
-rw-r--r-- | Mac/Modules/qd/qdscan.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Mac/Modules/qd/qdscan.py b/Mac/Modules/qd/qdscan.py index 7d2b57b..9d1a506 100644 --- a/Mac/Modules/qd/qdscan.py +++ b/Mac/Modules/qd/qdscan.py @@ -101,6 +101,8 @@ extend = 0x40 'GetHWNDPort', 'GetPICTFromDIB', 'GetPortBitMapForCopyBits', # Something funny in the declaration + + 'HandleToRgn', # Funny signature ] @@ -109,6 +111,12 @@ extend = 0x40 ('#if !TARGET_API_MAC_CARBON', [ ]), ('#if TARGET_API_MAC_CARBON', [ + 'IsPortOffscreen', # Lazy + 'IsPortColor', # Lazy + 'IsRegionRectangular', + 'CreateNewPort', + 'DisposePort', + 'SetQDError', ])] @@ -168,6 +176,43 @@ extend = 0x40 # CopyBits and friends ([('RgnHandle', 'maskRgn', 'InMode')], [('OptRgnHandle', 'maskRgn', 'InMode')]), + + # Accessors with reference argument also returned. + ([('Rect_ptr', 'GetPortBounds', 'ReturnMode')], + [('void', '*', 'ReturnMode')]), + + ([('RGBColor_ptr', 'GetPortForeColor', 'ReturnMode')], + [('void', '*', 'ReturnMode')]), + + ([('RGBColor_ptr', 'GetPortBackColor', 'ReturnMode')], + [('void', '*', 'ReturnMode')]), + + ([('RGBColor_ptr', 'GetPortOpColor', 'ReturnMode')], + [('void', '*', 'ReturnMode')]), + + ([('RGBColor_ptr', 'GetPortHiliteColor', 'ReturnMode')], + [('void', '*', 'ReturnMode')]), + + ([('Point_ptr', 'GetPortPenSize', 'ReturnMode')], + [('void', '*', 'ReturnMode')]), + + ([('Point_ptr', 'GetPortPenLocation', 'ReturnMode')], + [('void', '*', 'ReturnMode')]), + + ([('Rect_ptr', 'GetPixBounds', 'ReturnMode')], + [('void', '*', 'ReturnMode')]), + + ([('BitMap_ptr', 'GetQDGlobalsScreenBits', 'ReturnMode')], + [('void', '*', 'ReturnMode')]), + + ([('Cursor_ptr', 'GetQDGlobalsArrow', 'ReturnMode')], + [('void', '*', 'ReturnMode')]), + + ([('Rect_ptr', 'GetRegionBounds', 'ReturnMode')], + [('void', '*', 'ReturnMode')]), + + ([('Pattern_ptr', '*', 'ReturnMode')], + [('void', '*', 'ReturnMode')]), ] |