blob: b1e27c356bc1c69835bf074ce839abf6b583098b [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 Jansen32248652000-12-19 22:23:06 +00004f = Method(Boolean, 'IsWindowVisible',
5 (WindowRef, 'theWindow', InMode),
6)
7methods.append(f)
Jack Jansenb7abb181995-11-15 15:18:47 +00008
Jack Jansen32248652000-12-19 22:23:06 +00009f = Method(Boolean, 'GetWindowZoomFlag',
10 (WindowRef, 'theWindow', InMode),
Jack Jansen0d202b72001-01-09 22:09:31 +000011 condition='#if !TARGET_API_MAC_CARBON'
Jack Jansen32248652000-12-19 22:23:06 +000012)
13methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000014
Jack Jansen32248652000-12-19 22:23:06 +000015f = Method(void, 'GetWindowStructureRgn',
16 (WindowRef, 'theWindow', InMode),
17 (RgnHandle, 'r', InMode),
18)
19methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000020
Jack Jansen32248652000-12-19 22:23:06 +000021f = Method(void, 'GetWindowContentRgn',
22 (WindowRef, 'theWindow', InMode),
23 (RgnHandle, 'r', InMode),
24)
25methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000026
Jack Jansen32248652000-12-19 22:23:06 +000027f = Method(void, 'GetWindowUpdateRgn',
28 (WindowRef, 'theWindow', InMode),
29 (RgnHandle, 'r', InMode),
30)
31methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000032
Jack Jansen32248652000-12-19 22:23:06 +000033f = Method(short, 'GetWindowTitleWidth',
34 (WindowRef, 'theWindow', InMode),
Jack Jansen0d202b72001-01-09 22:09:31 +000035 condition='#if !TARGET_API_MAC_CARBON'
Jack Jansen32248652000-12-19 22:23:06 +000036)
37methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000038
Jack Jansen32248652000-12-19 22:23:06 +000039f = Method(ExistingWindowPtr, 'GetNextWindow',
40 (WindowRef, 'theWindow', InMode),
41)
42methods.append(f)
Jack Jansen330f5761995-11-14 10:48:54 +000043
Jack Jansene180d991998-04-24 10:28:20 +000044# These have Mac prefixed to their name in the 3.1 universal headers,
45# so we add the old/real names by hand.
46f = Method(void, 'CloseWindow',
47 (WindowPtr, 'theWindow', InMode),
Jack Jansen74a1e632000-07-14 22:37:27 +000048 condition='#if !TARGET_API_MAC_CARBON'
Jack Jansene180d991998-04-24 10:28:20 +000049)
50methods.append(f)
51
52f = Function(short, 'FindWindow',
53 (Point, 'thePoint', InMode),
54 (ExistingWindowPtr, 'theWindow', OutMode),
55)
56functions.append(f)
57
58f = Method(void, 'MoveWindow',
59 (WindowPtr, 'theWindow', InMode),
60 (short, 'hGlobal', InMode),
61 (short, 'vGlobal', InMode),
62 (Boolean, 'front', InMode),
63)
64methods.append(f)
65
66f = Method(void, 'ShowWindow',
67 (WindowPtr, 'theWindow', InMode),
68)
69methods.append(f)
70
71
72