py-cvs-rel2_1 (Rev 1.2) merge
[python/dscho.git] / Mac / Modules / menu / menuedit.py
blob4a9cf2afc898440e59c18b0ef30a858fb83e9e09
1 f = Function(void, 'OpenDeskAcc',
2 (Str255, 'name', InMode),
3 condition='#if !TARGET_API_MAC_CARBON'
5 functions.append(f)
7 f = Function(MenuHandle, 'as_Menu', (Handle, 'h', InMode))
8 functions.append(f)
10 f = Method(Handle, 'as_Resource', (MenuHandle, 'h', InMode))
11 methods.append(f)
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),
18 functions.append(f)
20 f = Method(void, 'AppendMenu',
21 (MenuHandle, 'menu', InMode),
22 (ConstStr255Param, 'data', InMode),
24 methods.append(f)
26 f = Method(void, 'InsertMenu',
27 (MenuHandle, 'theMenu', InMode),
28 (short, 'beforeID', InMode),
30 methods.append(f)
32 f = Function(void, 'DeleteMenu',
33 (short, 'menuID', InMode),
35 functions.append(f)
37 f = Method(void, 'InsertMenuItem',
38 (MenuHandle, 'theMenu', InMode),
39 (ConstStr255Param, 'itemString', InMode),
40 (short, 'afterItem', InMode),
42 methods.append(f)
44 f = Method(void, 'EnableMenuItem',
45 (MenuHandle, 'theMenu', InMode),
46 (UInt16, 'item', InMode),
48 methods.append(f)
50 f = Method(void, 'CheckMenuItem',
51 (MenuRef, 'theMenu', InMode),
52 (short, 'item', InMode),
53 (Boolean, 'checked', InMode),
55 methods.append(f)
58 f = Function(void, 'DrawMenuBar',
60 functions.append(f)