blob: 42fbcf8f72a29fb8f119a439a9e054fe5c136415 [file] [log] [blame]
Jack Jansen330f5761995-11-14 10:48:54 +00001# These are inline-routines/defines, so we do them "by hand"
2#
Jack Jansen723ad8a2000-12-12 22:10:21 +00003if 0:
4 f = Method(CGrafPtr, 'GetWindowPort',
5 (WindowRef, 'theWindow', InMode),
6 )
7 methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +00008
Jack Jansen723ad8a2000-12-12 22:10:21 +00009 f = Method(void, 'SetPortWindowPort',
10 (WindowRef, 'theWindow', InMode),
11 )
12 methods.append(f)
Jack Jansenb7abb181995-11-15 15:18:47 +000013
Jack Jansen723ad8a2000-12-12 22:10:21 +000014 f = Method(short, 'GetWindowKind',
15 (WindowRef, 'theWindow', InMode),
16 )
17 methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000018
Jack Jansen723ad8a2000-12-12 22:10:21 +000019 f = Method(void, 'SetWindowKind',
20 (WindowRef, 'theWindow', InMode),
21 (short, 'wKind', InMode),
22 )
23 methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000024
25
Jack Jansen723ad8a2000-12-12 22:10:21 +000026 f = Method(Boolean, 'IsWindowVisible',
27 (WindowRef, 'theWindow', InMode),
28 )
29 methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000030
Jack Jansen723ad8a2000-12-12 22:10:21 +000031 f = Method(Boolean, 'IsWindowHilited',
32 (WindowRef, 'theWindow', InMode),
33 )
34 methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000035
Jack Jansen723ad8a2000-12-12 22:10:21 +000036 f = Method(Boolean, 'GetWindowGoAwayFlag',
37 (WindowRef, 'theWindow', InMode),
38 )
39 methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000040
Jack Jansen723ad8a2000-12-12 22:10:21 +000041 f = Method(Boolean, 'GetWindowZoomFlag',
42 (WindowRef, 'theWindow', InMode),
43 condition='#if !TARGET_API_MAC_CARBON'
44 )
45 methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000046
Jack Jansen723ad8a2000-12-12 22:10:21 +000047 f = Method(void, 'GetWindowStructureRgn',
48 (WindowRef, 'theWindow', InMode),
49 (RgnHandle, 'r', InMode),
50 condition='#if !TARGET_API_MAC_CARBON'
51 )
52 methods.append(f)
Jack Jansenb7abb181995-11-15 15:18:47 +000053
Jack Jansen723ad8a2000-12-12 22:10:21 +000054 f = Method(void, 'GetWindowContentRgn',
55 (WindowRef, 'theWindow', InMode),
56 (RgnHandle, 'r', InMode),
57 condition='#if !TARGET_API_MAC_CARBON'
58 )
59 methods.append(f)
Jack Jansenb7abb181995-11-15 15:18:47 +000060
Jack Jansen723ad8a2000-12-12 22:10:21 +000061 f = Method(void, 'GetWindowUpdateRgn',
62 (WindowRef, 'theWindow', InMode),
63 (RgnHandle, 'r', InMode),
64 condition='#if !TARGET_API_MAC_CARBON'
65 )
66 methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000067
Jack Jansen723ad8a2000-12-12 22:10:21 +000068 f = Method(short, 'GetWindowTitleWidth',
69 (WindowRef, 'theWindow', InMode),
70 condition='#if !TARGET_API_MAC_CARBON'
71 )
72 methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000073
Jack Jansen723ad8a2000-12-12 22:10:21 +000074 f = Method(ExistingWindowPtr, 'GetNextWindow',
75 (WindowRef, 'theWindow', InMode),
76 )
77 methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000078
Jack Jansen723ad8a2000-12-12 22:10:21 +000079 f = Method(void, 'GetWindowStandardState',
80 (WindowRef, 'theWindow', InMode),
81 (Rect, 'r', OutMode),
82 )
83 methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000084
Jack Jansen723ad8a2000-12-12 22:10:21 +000085 f = Method(void, 'GetWindowUserState',
86 (WindowRef, 'theWindow', InMode),
87 (Rect, 'r', OutMode),
88 )
89 methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000090
91
Jack Jansen723ad8a2000-12-12 22:10:21 +000092 f = Method(void, 'SetWindowStandardState',
93 (WindowRef, 'theWindow', InMode),
94 (Rect, 'r', InMode),
95 )
96 methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000097
Jack Jansen723ad8a2000-12-12 22:10:21 +000098 f = Method(void, 'SetWindowUserState',
99 (WindowRef, 'theWindow', InMode),
100 (Rect, 'r', InMode),
101 )
102 methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +0000103
Jack Jansene180d991998-04-24 10:28:20 +0000104# These have Mac prefixed to their name in the 3.1 universal headers,
105# so we add the old/real names by hand.
106f = Method(void, 'CloseWindow',
107 (WindowPtr, 'theWindow', InMode),
Jack Jansen74a1e632000-07-14 22:37:27 +0000108 condition='#if !TARGET_API_MAC_CARBON'
Jack Jansene180d991998-04-24 10:28:20 +0000109)
110methods.append(f)
111
112f = Function(short, 'FindWindow',
113 (Point, 'thePoint', InMode),
114 (ExistingWindowPtr, 'theWindow', OutMode),
115)
116functions.append(f)
117
118f = Method(void, 'MoveWindow',
119 (WindowPtr, 'theWindow', InMode),
120 (short, 'hGlobal', InMode),
121 (short, 'vGlobal', InMode),
122 (Boolean, 'front', InMode),
123)
124methods.append(f)
125
126f = Method(void, 'ShowWindow',
127 (WindowPtr, 'theWindow', InMode),
128)
129methods.append(f)
130
131
132