blob: 4a9cf2afc898440e59c18b0ef30a858fb83e9e09 [file] [log] [blame]
Guido van Rossum86c3af71995-03-19 22:42:51 +00001f = Function(void, 'OpenDeskAcc',
2 (Str255, 'name', InMode),
Jack Jansen74a1e632000-07-14 22:37:27 +00003 condition='#if !TARGET_API_MAC_CARBON'
Guido van Rossum86c3af71995-03-19 22:42:51 +00004)
5functions.append(f)
Jack Jansena1772281995-06-18 20:17:27 +00006
Jack Jansena1a0fef1999-12-23 14:32:06 +00007f = Function(MenuHandle, 'as_Menu', (Handle, 'h', InMode))
Jack Jansene0581891999-02-07 14:02:03 +00008functions.append(f)
9
Jack Jansena1a0fef1999-12-23 14:32:06 +000010f = Method(Handle, 'as_Resource', (MenuHandle, 'h', InMode))
Jack Jansena1772281995-06-18 20:17:27 +000011methods.append(f)
Jack Jansene180d991998-04-24 10:28:20 +000012
13# The following have "Mac" prepended to their names in the include file
14# since UH 3.1, sigh...
15f = Function(MenuHandle, 'GetMenu',
16 (short, 'resourceID', InMode),
17)
18functions.append(f)
19
20f = Method(void, 'AppendMenu',
21 (MenuHandle, 'menu', InMode),
22 (ConstStr255Param, 'data', InMode),
23)
24methods.append(f)
25
26f = Method(void, 'InsertMenu',
27 (MenuHandle, 'theMenu', InMode),
28 (short, 'beforeID', InMode),
29)
30methods.append(f)
31
32f = Function(void, 'DeleteMenu',
33 (short, 'menuID', InMode),
34)
35functions.append(f)
36
37f = Method(void, 'InsertMenuItem',
38 (MenuHandle, 'theMenu', InMode),
39 (ConstStr255Param, 'itemString', InMode),
40 (short, 'afterItem', InMode),
41)
42methods.append(f)
43
Jack Jansen54c07872001-01-29 13:32:10 +000044f = Method(void, 'EnableMenuItem',
45 (MenuHandle, 'theMenu', InMode),
46 (UInt16, 'item', InMode),
47)
48methods.append(f)
49
50f = Method(void, 'CheckMenuItem',
51 (MenuRef, 'theMenu', InMode),
52 (short, 'item', InMode),
53 (Boolean, 'checked', InMode),
54)
55methods.append(f)
56
57
Jack Jansene180d991998-04-24 10:28:20 +000058f = Function(void, 'DrawMenuBar',
59)
60functions.append(f)
61