summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/win/winedit.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-12-19 22:23:06 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-12-19 22:23:06 (GMT)
commit32248655ee0c7d6909703a48e4128f4e2f3e4937 (patch)
tree614ecee78bd84187e988e6ca2b6d8ba2d1b685b8 /Mac/Modules/win/winedit.py
parent87a30924d07d0665519c75db93d3addd8a9b1dbf (diff)
downloadcpython-32248655ee0c7d6909703a48e4128f4e2f3e4937.zip
cpython-32248655ee0c7d6909703a48e4128f4e2f3e4937.tar.gz
cpython-32248655ee0c7d6909703a48e4128f4e2f3e4937.tar.bz2
Emulate a few more non-carbon calls in carbon and the other way around.
Diffstat (limited to 'Mac/Modules/win/winedit.py')
-rw-r--r--Mac/Modules/win/winedit.py124
1 files changed, 31 insertions, 93 deletions
diff --git a/Mac/Modules/win/winedit.py b/Mac/Modules/win/winedit.py
index 42fbcf8..09fd300 100644
--- a/Mac/Modules/win/winedit.py
+++ b/Mac/Modules/win/winedit.py
@@ -1,105 +1,43 @@
# These are inline-routines/defines, so we do them "by hand"
#
-if 0:
- f = Method(CGrafPtr, 'GetWindowPort',
- (WindowRef, 'theWindow', InMode),
- )
- methods.append(f)
- f = Method(void, 'SetPortWindowPort',
- (WindowRef, 'theWindow', InMode),
- )
- methods.append(f)
-
- f = Method(short, 'GetWindowKind',
- (WindowRef, 'theWindow', InMode),
- )
- methods.append(f)
-
- f = Method(void, 'SetWindowKind',
- (WindowRef, 'theWindow', InMode),
- (short, 'wKind', InMode),
- )
- methods.append(f)
-
-
- f = Method(Boolean, 'IsWindowVisible',
- (WindowRef, 'theWindow', InMode),
- )
- methods.append(f)
-
- f = Method(Boolean, 'IsWindowHilited',
- (WindowRef, 'theWindow', InMode),
- )
- methods.append(f)
-
- f = Method(Boolean, 'GetWindowGoAwayFlag',
- (WindowRef, 'theWindow', InMode),
- )
- methods.append(f)
-
- f = Method(Boolean, 'GetWindowZoomFlag',
- (WindowRef, 'theWindow', InMode),
- condition='#if !TARGET_API_MAC_CARBON'
- )
- methods.append(f)
-
- f = Method(void, 'GetWindowStructureRgn',
- (WindowRef, 'theWindow', InMode),
- (RgnHandle, 'r', InMode),
- condition='#if !TARGET_API_MAC_CARBON'
- )
- methods.append(f)
-
- f = Method(void, 'GetWindowContentRgn',
- (WindowRef, 'theWindow', InMode),
- (RgnHandle, 'r', InMode),
- condition='#if !TARGET_API_MAC_CARBON'
- )
- methods.append(f)
-
- f = Method(void, 'GetWindowUpdateRgn',
- (WindowRef, 'theWindow', InMode),
- (RgnHandle, 'r', InMode),
- condition='#if !TARGET_API_MAC_CARBON'
- )
- methods.append(f)
-
- f = Method(short, 'GetWindowTitleWidth',
- (WindowRef, 'theWindow', InMode),
- condition='#if !TARGET_API_MAC_CARBON'
- )
- methods.append(f)
+f = Method(Boolean, 'IsWindowVisible',
+ (WindowRef, 'theWindow', InMode),
+)
+methods.append(f)
- f = Method(ExistingWindowPtr, 'GetNextWindow',
- (WindowRef, 'theWindow', InMode),
- )
- methods.append(f)
+f = Method(Boolean, 'GetWindowZoomFlag',
+ (WindowRef, 'theWindow', InMode),
+)
+methods.append(f)
- f = Method(void, 'GetWindowStandardState',
- (WindowRef, 'theWindow', InMode),
- (Rect, 'r', OutMode),
- )
- methods.append(f)
+f = Method(void, 'GetWindowStructureRgn',
+ (WindowRef, 'theWindow', InMode),
+ (RgnHandle, 'r', InMode),
+)
+methods.append(f)
- f = Method(void, 'GetWindowUserState',
- (WindowRef, 'theWindow', InMode),
- (Rect, 'r', OutMode),
- )
- 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, 'SetWindowStandardState',
- (WindowRef, 'theWindow', InMode),
- (Rect, 'r', InMode),
- )
- methods.append(f)
+f = Method(short, 'GetWindowTitleWidth',
+ (WindowRef, 'theWindow', InMode),
+)
+methods.append(f)
- f = Method(void, 'SetWindowUserState',
- (WindowRef, 'theWindow', InMode),
- (Rect, 'r', InMode),
- )
- methods.append(f)
+f = Method(ExistingWindowPtr, 'GetNextWindow',
+ (WindowRef, 'theWindow', InMode),
+)
+methods.append(f)
# These have Mac prefixed to their name in the 3.1 universal headers,
# so we add the old/real names by hand.