Guido van Rossum | 86c3af7 | 1995-03-19 22:42:51 +0000 | [diff] [blame] | 1 | f = Function(void, 'OpenDeskAcc', |
| 2 | (Str255, 'name', InMode), |
Jack Jansen | 74a1e63 | 2000-07-14 22:37:27 +0000 | [diff] [blame] | 3 | condition='#if !TARGET_API_MAC_CARBON' |
Guido van Rossum | 86c3af7 | 1995-03-19 22:42:51 +0000 | [diff] [blame] | 4 | ) |
| 5 | functions.append(f) |
Jack Jansen | a177228 | 1995-06-18 20:17:27 +0000 | [diff] [blame] | 6 | |
Jack Jansen | a1a0fef | 1999-12-23 14:32:06 +0000 | [diff] [blame] | 7 | f = Function(MenuHandle, 'as_Menu', (Handle, 'h', InMode)) |
Jack Jansen | e058189 | 1999-02-07 14:02:03 +0000 | [diff] [blame] | 8 | functions.append(f) |
| 9 | |
Jack Jansen | a1a0fef | 1999-12-23 14:32:06 +0000 | [diff] [blame] | 10 | f = Method(Handle, 'as_Resource', (MenuHandle, 'h', InMode)) |
Jack Jansen | a177228 | 1995-06-18 20:17:27 +0000 | [diff] [blame] | 11 | methods.append(f) |
Jack Jansen | e180d99 | 1998-04-24 10:28:20 +0000 | [diff] [blame] | 12 | |
| 13 | # The following have "Mac" prepended to their names in the include file |
| 14 | # since UH 3.1, sigh... |
| 15 | f = Function(MenuHandle, 'GetMenu', |
| 16 | (short, 'resourceID', InMode), |
| 17 | ) |
| 18 | functions.append(f) |
| 19 | |
| 20 | f = Method(void, 'AppendMenu', |
| 21 | (MenuHandle, 'menu', InMode), |
| 22 | (ConstStr255Param, 'data', InMode), |
| 23 | ) |
| 24 | methods.append(f) |
| 25 | |
| 26 | f = Method(void, 'InsertMenu', |
| 27 | (MenuHandle, 'theMenu', InMode), |
| 28 | (short, 'beforeID', InMode), |
| 29 | ) |
| 30 | methods.append(f) |
| 31 | |
| 32 | f = Function(void, 'DeleteMenu', |
| 33 | (short, 'menuID', InMode), |
| 34 | ) |
| 35 | functions.append(f) |
| 36 | |
| 37 | f = Method(void, 'InsertMenuItem', |
| 38 | (MenuHandle, 'theMenu', InMode), |
| 39 | (ConstStr255Param, 'itemString', InMode), |
| 40 | (short, 'afterItem', InMode), |
| 41 | ) |
| 42 | methods.append(f) |
| 43 | |
Jack Jansen | 54c0787 | 2001-01-29 13:32:10 +0000 | [diff] [blame] | 44 | f = Method(void, 'EnableMenuItem', |
| 45 | (MenuHandle, 'theMenu', InMode), |
| 46 | (UInt16, 'item', InMode), |
| 47 | ) |
| 48 | methods.append(f) |
| 49 | |
| 50 | f = Method(void, 'CheckMenuItem', |
| 51 | (MenuRef, 'theMenu', InMode), |
| 52 | (short, 'item', InMode), |
| 53 | (Boolean, 'checked', InMode), |
| 54 | ) |
| 55 | methods.append(f) |
| 56 | |
| 57 | |
Jack Jansen | e180d99 | 1998-04-24 10:28:20 +0000 | [diff] [blame] | 58 | f = Function(void, 'DrawMenuBar', |
| 59 | ) |
| 60 | functions.append(f) |
| 61 | |