Added 'description' class attribute to every command class (to help the
[python/dscho.git] / Mac / Modules / menu / menuedit.py
blob5409663eba0a8e5ec888cf86f2948bc3209a5908
1 f = Function(void, 'OpenDeskAcc',
2 (Str255, 'name', InMode),
4 functions.append(f)
6 f = Function(MenuHandle, 'as_Menu', (Handle, 'h', InMode))
7 functions.append(f)
9 f = Method(Handle, 'as_Resource', (MenuHandle, 'h', InMode))
10 methods.append(f)
12 # The following have "Mac" prepended to their names in the include file
13 # since UH 3.1, sigh...
14 f = Function(MenuHandle, 'GetMenu',
15 (short, 'resourceID', InMode),
17 functions.append(f)
19 f = Method(void, 'AppendMenu',
20 (MenuHandle, 'menu', InMode),
21 (ConstStr255Param, 'data', InMode),
23 methods.append(f)
25 f = Method(void, 'InsertMenu',
26 (MenuHandle, 'theMenu', InMode),
27 (short, 'beforeID', InMode),
29 methods.append(f)
31 f = Function(void, 'DeleteMenu',
32 (short, 'menuID', InMode),
34 functions.append(f)
36 f = Method(void, 'InsertMenuItem',
37 (MenuHandle, 'theMenu', InMode),
38 (ConstStr255Param, 'itemString', InMode),
39 (short, 'afterItem', InMode),
41 methods.append(f)
43 f = Function(void, 'DrawMenuBar',
45 functions.append(f)