Jack Jansen | 330f576 | 1995-11-14 10:48:54 +0000 | [diff] [blame] | 1 | # These are inline-routines/defines, so we do them "by hand" |
| 2 | # |
| 3 | |
Jack Jansen | 3224865 | 2000-12-19 22:23:06 +0000 | [diff] [blame] | 4 | f = Method(Boolean, 'IsWindowVisible', |
| 5 | (WindowRef, 'theWindow', InMode), |
| 6 | ) |
| 7 | methods.append(f) |
Jack Jansen | b7abb18 | 1995-11-15 15:18:47 +0000 | [diff] [blame] | 8 | |
Jack Jansen | 3224865 | 2000-12-19 22:23:06 +0000 | [diff] [blame] | 9 | f = Method(Boolean, 'GetWindowZoomFlag', |
| 10 | (WindowRef, 'theWindow', InMode), |
Jack Jansen | 0d202b7 | 2001-01-09 22:09:31 +0000 | [diff] [blame] | 11 | condition='#if !TARGET_API_MAC_CARBON' |
Jack Jansen | 3224865 | 2000-12-19 22:23:06 +0000 | [diff] [blame] | 12 | ) |
| 13 | methods.append(f) |
Jack Jansen | 330f576 | 1995-11-14 10:48:54 +0000 | [diff] [blame] | 14 | |
Jack Jansen | 3224865 | 2000-12-19 22:23:06 +0000 | [diff] [blame] | 15 | f = Method(void, 'GetWindowStructureRgn', |
| 16 | (WindowRef, 'theWindow', InMode), |
| 17 | (RgnHandle, 'r', InMode), |
| 18 | ) |
| 19 | methods.append(f) |
Jack Jansen | 330f576 | 1995-11-14 10:48:54 +0000 | [diff] [blame] | 20 | |
Jack Jansen | 3224865 | 2000-12-19 22:23:06 +0000 | [diff] [blame] | 21 | f = Method(void, 'GetWindowContentRgn', |
| 22 | (WindowRef, 'theWindow', InMode), |
| 23 | (RgnHandle, 'r', InMode), |
| 24 | ) |
| 25 | methods.append(f) |
Jack Jansen | 330f576 | 1995-11-14 10:48:54 +0000 | [diff] [blame] | 26 | |
Jack Jansen | 3224865 | 2000-12-19 22:23:06 +0000 | [diff] [blame] | 27 | f = Method(void, 'GetWindowUpdateRgn', |
| 28 | (WindowRef, 'theWindow', InMode), |
| 29 | (RgnHandle, 'r', InMode), |
| 30 | ) |
| 31 | methods.append(f) |
Jack Jansen | 330f576 | 1995-11-14 10:48:54 +0000 | [diff] [blame] | 32 | |
Jack Jansen | 3224865 | 2000-12-19 22:23:06 +0000 | [diff] [blame] | 33 | f = Method(short, 'GetWindowTitleWidth', |
| 34 | (WindowRef, 'theWindow', InMode), |
Jack Jansen | 0d202b7 | 2001-01-09 22:09:31 +0000 | [diff] [blame] | 35 | condition='#if !TARGET_API_MAC_CARBON' |
Jack Jansen | 3224865 | 2000-12-19 22:23:06 +0000 | [diff] [blame] | 36 | ) |
| 37 | methods.append(f) |
Jack Jansen | 330f576 | 1995-11-14 10:48:54 +0000 | [diff] [blame] | 38 | |
Jack Jansen | 3224865 | 2000-12-19 22:23:06 +0000 | [diff] [blame] | 39 | f = Method(ExistingWindowPtr, 'GetNextWindow', |
| 40 | (WindowRef, 'theWindow', InMode), |
| 41 | ) |
| 42 | methods.append(f) |
Jack Jansen | 330f576 | 1995-11-14 10:48:54 +0000 | [diff] [blame] | 43 | |
Jack Jansen | e180d99 | 1998-04-24 10:28:20 +0000 | [diff] [blame] | 44 | # These have Mac prefixed to their name in the 3.1 universal headers, |
| 45 | # so we add the old/real names by hand. |
| 46 | f = Method(void, 'CloseWindow', |
| 47 | (WindowPtr, 'theWindow', InMode), |
Jack Jansen | 74a1e63 | 2000-07-14 22:37:27 +0000 | [diff] [blame] | 48 | condition='#if !TARGET_API_MAC_CARBON' |
Jack Jansen | e180d99 | 1998-04-24 10:28:20 +0000 | [diff] [blame] | 49 | ) |
| 50 | methods.append(f) |
| 51 | |
| 52 | f = Function(short, 'FindWindow', |
| 53 | (Point, 'thePoint', InMode), |
| 54 | (ExistingWindowPtr, 'theWindow', OutMode), |
| 55 | ) |
| 56 | functions.append(f) |
| 57 | |
| 58 | f = Method(void, 'MoveWindow', |
| 59 | (WindowPtr, 'theWindow', InMode), |
| 60 | (short, 'hGlobal', InMode), |
| 61 | (short, 'vGlobal', InMode), |
| 62 | (Boolean, 'front', InMode), |
| 63 | ) |
| 64 | methods.append(f) |
| 65 | |
| 66 | f = Method(void, 'ShowWindow', |
| 67 | (WindowPtr, 'theWindow', InMode), |
| 68 | ) |
| 69 | methods.append(f) |
| 70 | |
| 71 | |
| 72 | |