summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/win/winedit.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-11-15 15:18:47 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-11-15 15:18:47 (GMT)
commitb7abb18cd99e348ab2f9f7ea85d72158684319a7 (patch)
treea1ab213b915d7a9aeda10eb92737cc6219247e51 /Mac/Modules/win/winedit.py
parent330381cbbb394e7e7a6841879b22218884750ca2 (diff)
downloadcpython-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.py41
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),