Last set of CW Pro 5 projects (probably)
[python/dscho.git] / Mac / Modules / win / winedit.py
blob89955ea24421c934f2660ededa8911eed407b3aa
1 # These are inline-routines/defines, so we do them "by hand"
4 f = Method(CGrafPtr, 'GetWindowPort',
5 (WindowRef, 'theWindow', InMode),
7 methods.append(f)
9 f = Method(void, 'SetPortWindowPort',
10 (WindowRef, 'theWindow', InMode),
12 methods.append(f)
14 f = Method(short, 'GetWindowKind',
15 (WindowRef, 'theWindow', InMode),
17 methods.append(f)
19 f = Method(void, 'SetWindowKind',
20 (WindowRef, 'theWindow', InMode),
21 (short, 'wKind', InMode),
23 methods.append(f)
26 f = Method(Boolean, 'IsWindowVisible',
27 (WindowRef, 'theWindow', InMode),
29 methods.append(f)
31 f = Method(Boolean, 'IsWindowHilited',
32 (WindowRef, 'theWindow', InMode),
34 methods.append(f)
36 f = Method(Boolean, 'GetWindowGoAwayFlag',
37 (WindowRef, 'theWindow', InMode),
39 methods.append(f)
41 f = Method(Boolean, 'GetWindowZoomFlag',
42 (WindowRef, 'theWindow', InMode),
43 condition='#if !TARGET_API_MAC_CARBON'
45 methods.append(f)
47 f = Method(void, 'GetWindowStructureRgn',
48 (WindowRef, 'theWindow', InMode),
49 (RgnHandle, 'r', InMode),
50 condition='#if !TARGET_API_MAC_CARBON'
52 methods.append(f)
54 f = Method(void, 'GetWindowContentRgn',
55 (WindowRef, 'theWindow', InMode),
56 (RgnHandle, 'r', InMode),
57 condition='#if !TARGET_API_MAC_CARBON'
59 methods.append(f)
61 f = Method(void, 'GetWindowUpdateRgn',
62 (WindowRef, 'theWindow', InMode),
63 (RgnHandle, 'r', InMode),
64 condition='#if !TARGET_API_MAC_CARBON'
66 methods.append(f)
68 f = Method(short, 'GetWindowTitleWidth',
69 (WindowRef, 'theWindow', InMode),
70 condition='#if !TARGET_API_MAC_CARBON'
72 methods.append(f)
74 f = Method(ExistingWindowPtr, 'GetNextWindow',
75 (WindowRef, 'theWindow', InMode),
77 methods.append(f)
79 f = Method(void, 'GetWindowStandardState',
80 (WindowRef, 'theWindow', InMode),
81 (Rect, 'r', OutMode),
83 methods.append(f)
85 f = Method(void, 'GetWindowUserState',
86 (WindowRef, 'theWindow', InMode),
87 (Rect, 'r', OutMode),
89 methods.append(f)
92 f = Method(void, 'SetWindowStandardState',
93 (WindowRef, 'theWindow', InMode),
94 (Rect, 'r', InMode),
96 methods.append(f)
98 f = Method(void, 'SetWindowUserState',
99 (WindowRef, 'theWindow', InMode),
100 (Rect, 'r', InMode),
102 methods.append(f)
104 # These have Mac prefixed to their name in the 3.1 universal headers,
105 # so we add the old/real names by hand.
106 f = Method(void, 'CloseWindow',
107 (WindowPtr, 'theWindow', InMode),
108 condition='#if !TARGET_API_MAC_CARBON'
110 methods.append(f)
112 f = Function(short, 'FindWindow',
113 (Point, 'thePoint', InMode),
114 (ExistingWindowPtr, 'theWindow', OutMode),
116 functions.append(f)
118 f = Method(void, 'MoveWindow',
119 (WindowPtr, 'theWindow', InMode),
120 (short, 'hGlobal', InMode),
121 (short, 'vGlobal', InMode),
122 (Boolean, 'front', InMode),
124 methods.append(f)
126 f = Method(void, 'ShowWindow',
127 (WindowPtr, 'theWindow', InMode),
129 methods.append(f)