blob: 8e7d12b4186630f66874c13a39322fabde08cc05 [file] [log] [blame]
Guido van Rossum86c3af71995-03-19 22:42:51 +00001f = Function(void, 'OpenDeskAcc',
2 (Str255, 'name', InMode),
3)
4functions.append(f)
Jack Jansena1772281995-06-18 20:17:27 +00005
Jack Jansene0581891999-02-07 14:02:03 +00006f = Function(MenuHandle, 'as_Menu',
7 (Handle, 'h', InMode))
8functions.append(f)
9
Jack Jansena1772281995-06-18 20:17:27 +000010as_resource_body = """
11return ResObj_New((Handle)_self->ob_itself);
12"""
13
14f = ManualGenerator("as_Resource", as_resource_body)
15f.docstring = lambda : "Return this Menu as a Resource"
16
17methods.append(f)
Jack Jansene180d991998-04-24 10:28:20 +000018
19# The following have "Mac" prepended to their names in the include file
20# since UH 3.1, sigh...
21f = Function(MenuHandle, 'GetMenu',
22 (short, 'resourceID', InMode),
23)
24functions.append(f)
25
26f = Method(void, 'AppendMenu',
27 (MenuHandle, 'menu', InMode),
28 (ConstStr255Param, 'data', InMode),
29)
30methods.append(f)
31
32f = Method(void, 'InsertMenu',
33 (MenuHandle, 'theMenu', InMode),
34 (short, 'beforeID', InMode),
35)
36methods.append(f)
37
38f = Function(void, 'DeleteMenu',
39 (short, 'menuID', InMode),
40)
41functions.append(f)
42
43f = Method(void, 'InsertMenuItem',
44 (MenuHandle, 'theMenu', InMode),
45 (ConstStr255Param, 'itemString', InMode),
46 (short, 'afterItem', InMode),
47)
48methods.append(f)
49
50f = Function(void, 'DrawMenuBar',
51)
52functions.append(f)
53