blob: 89955ea24421c934f2660ededa8911eed407b3aa [file] [log] [blame]
Jack Jansen330f5761995-11-14 10:48:54 +00001# These are inline-routines/defines, so we do them "by hand"
2#
3
Jack Jansenb7abb181995-11-15 15:18:47 +00004f = Method(CGrafPtr, 'GetWindowPort',
5 (WindowRef, 'theWindow', InMode),
6)
7methods.append(f)
8
Jack Jansen330f5761995-11-14 10:48:54 +00009f = Method(void, 'SetPortWindowPort',
10 (WindowRef, 'theWindow', InMode),
11)
12methods.append(f)
13
14f = Method(short, 'GetWindowKind',
15 (WindowRef, 'theWindow', InMode),
16)
17methods.append(f)
18
19f = Method(void, 'SetWindowKind',
20 (WindowRef, 'theWindow', InMode),
21 (short, 'wKind', InMode),
22)
23methods.append(f)
24
25
26f = Method(Boolean, 'IsWindowVisible',
27 (WindowRef, 'theWindow', InMode),
28)
29methods.append(f)
30
31f = Method(Boolean, 'IsWindowHilited',
32 (WindowRef, 'theWindow', InMode),
33)
34methods.append(f)
35
36f = Method(Boolean, 'GetWindowGoAwayFlag',
37 (WindowRef, 'theWindow', InMode),
38)
39methods.append(f)
40
41f = Method(Boolean, 'GetWindowZoomFlag',
42 (WindowRef, 'theWindow', InMode),
Jack Jansen74a1e632000-07-14 22:37:27 +000043 condition='#if !TARGET_API_MAC_CARBON'
Jack Jansen330f5761995-11-14 10:48:54 +000044)
45methods.append(f)
46
Jack Jansenb7abb181995-11-15 15:18:47 +000047f = Method(void, 'GetWindowStructureRgn',
48 (WindowRef, 'theWindow', InMode),
49 (RgnHandle, 'r', InMode),
Jack Jansen74a1e632000-07-14 22:37:27 +000050 condition='#if !TARGET_API_MAC_CARBON'
Jack Jansenb7abb181995-11-15 15:18:47 +000051)
52methods.append(f)
53
54f = Method(void, 'GetWindowContentRgn',
55 (WindowRef, 'theWindow', InMode),
56 (RgnHandle, 'r', InMode),
Jack Jansen74a1e632000-07-14 22:37:27 +000057 condition='#if !TARGET_API_MAC_CARBON'
Jack Jansenb7abb181995-11-15 15:18:47 +000058)
59methods.append(f)
60
61f = Method(void, 'GetWindowUpdateRgn',
62 (WindowRef, 'theWindow', InMode),
63 (RgnHandle, 'r', InMode),
Jack Jansen74a1e632000-07-14 22:37:27 +000064 condition='#if !TARGET_API_MAC_CARBON'
Jack Jansenb7abb181995-11-15 15:18:47 +000065)
66methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000067
68f = Method(short, 'GetWindowTitleWidth',
69 (WindowRef, 'theWindow', InMode),
Jack Jansen74a1e632000-07-14 22:37:27 +000070 condition='#if !TARGET_API_MAC_CARBON'
Jack Jansen330f5761995-11-14 10:48:54 +000071)
72methods.append(f)
73
74f = Method(ExistingWindowPtr, 'GetNextWindow',
75 (WindowRef, 'theWindow', InMode),
76)
77methods.append(f)
78
79f = Method(void, 'GetWindowStandardState',
80 (WindowRef, 'theWindow', InMode),
81 (Rect, 'r', OutMode),
82)
83methods.append(f)
84
85f = Method(void, 'GetWindowUserState',
86 (WindowRef, 'theWindow', InMode),
87 (Rect, 'r', OutMode),
88)
89methods.append(f)
90
91
92f = Method(void, 'SetWindowStandardState',
93 (WindowRef, 'theWindow', InMode),
94 (Rect, 'r', InMode),
95)
96methods.append(f)
97
98f = Method(void, 'SetWindowUserState',
99 (WindowRef, 'theWindow', InMode),
100 (Rect, 'r', InMode),
101)
102methods.append(f)
103
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