diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1995-11-15 15:18:47 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-11-15 15:18:47 (GMT) |
commit | b7abb18cd99e348ab2f9f7ea85d72158684319a7 (patch) | |
tree | a1ab213b915d7a9aeda10eb92737cc6219247e51 /Mac/Modules/win/winedit.py | |
parent | 330381cbbb394e7e7a6841879b22218884750ca2 (diff) | |
download | cpython-b7abb18cd99e348ab2f9f7ea85d72158684319a7.zip cpython-b7abb18cd99e348ab2f9f7ea85d72158684319a7.tar.gz cpython-b7abb18cd99e348ab2f9f7ea85d72158684319a7.tar.bz2 |
Added support for GrafPort object
Diffstat (limited to 'Mac/Modules/win/winedit.py')
-rw-r--r-- | Mac/Modules/win/winedit.py | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/Mac/Modules/win/winedit.py b/Mac/Modules/win/winedit.py index 08be8bd..a5812f1 100644 --- a/Mac/Modules/win/winedit.py +++ b/Mac/Modules/win/winedit.py @@ -1,6 +1,11 @@ # These are inline-routines/defines, so we do them "by hand" # +f = Method(CGrafPtr, 'GetWindowPort', + (WindowRef, 'theWindow', InMode), +) +methods.append(f) + f = Method(void, 'SetPortWindowPort', (WindowRef, 'theWindow', InMode), ) @@ -38,25 +43,23 @@ f = Method(Boolean, 'GetWindowZoomFlag', ) methods.append(f) -if 0: - # Regions are not implemented yet.. - f = Method(void, 'GetWindowStructureRgn', - (WindowRef, 'theWindow', InMode), - (RgnHandle, 'r', InMode), - ) - methods.append(f) - - f = Method(void, 'GetWindowContentRgn', - (WindowRef, 'theWindow', InMode), - (RgnHandle, 'r', InMode), - ) - methods.append(f) - - f = Method(void, 'GetWindowUpdateRgn', - (WindowRef, 'theWindow', InMode), - (RgnHandle, 'r', InMode), - ) - methods.append(f) +f = Method(void, 'GetWindowStructureRgn', + (WindowRef, 'theWindow', InMode), + (RgnHandle, 'r', InMode), +) +methods.append(f) + +f = Method(void, 'GetWindowContentRgn', + (WindowRef, 'theWindow', InMode), + (RgnHandle, 'r', InMode), +) +methods.append(f) + +f = Method(void, 'GetWindowUpdateRgn', + (WindowRef, 'theWindow', InMode), + (RgnHandle, 'r', InMode), +) +methods.append(f) f = Method(short, 'GetWindowTitleWidth', (WindowRef, 'theWindow', InMode), |