blob: b74301d3a61dd918b763cb71e2dd21b2a8415f77 [file] [log] [blame]
Jack Jansena1a0fef1999-12-23 14:32:06 +00001f = Function(MenuHandle, 'as_Menu', (Handle, 'h', InMode))
Jack Jansene0581891999-02-07 14:02:03 +00002functions.append(f)
3
Jack Jansena1a0fef1999-12-23 14:32:06 +00004f = Method(Handle, 'as_Resource', (MenuHandle, 'h', InMode))
Jack Jansena1772281995-06-18 20:17:27 +00005methods.append(f)
Jack Jansene180d991998-04-24 10:28:20 +00006
7# The following have "Mac" prepended to their names in the include file
8# since UH 3.1, sigh...
9f = Function(MenuHandle, 'GetMenu',
10 (short, 'resourceID', InMode),
11)
12functions.append(f)
13
14f = Method(void, 'AppendMenu',
15 (MenuHandle, 'menu', InMode),
16 (ConstStr255Param, 'data', InMode),
17)
18methods.append(f)
19
20f = Method(void, 'InsertMenu',
21 (MenuHandle, 'theMenu', InMode),
22 (short, 'beforeID', InMode),
23)
24methods.append(f)
25
26f = Function(void, 'DeleteMenu',
27 (short, 'menuID', InMode),
28)
29functions.append(f)
30
31f = Method(void, 'InsertMenuItem',
32 (MenuHandle, 'theMenu', InMode),
33 (ConstStr255Param, 'itemString', InMode),
34 (short, 'afterItem', InMode),
35)
36methods.append(f)
37
Jack Jansen54c07872001-01-29 13:32:10 +000038f = Method(void, 'EnableMenuItem',
39 (MenuHandle, 'theMenu', InMode),
40 (UInt16, 'item', InMode),
41)
42methods.append(f)
43
44f = Method(void, 'CheckMenuItem',
45 (MenuRef, 'theMenu', InMode),
46 (short, 'item', InMode),
47 (Boolean, 'checked', InMode),
48)
49methods.append(f)
50
51
Jack Jansene180d991998-04-24 10:28:20 +000052f = Function(void, 'DrawMenuBar',
53)
54functions.append(f)
55
Just van Rossumca3cff32002-01-02 14:48:36 +000056
57#
58# The following functions take an *optional* MenuRef as their first argument
59#
60
61f = Function(ItemCount, 'CountMenuItemsWithCommandID',
62 (OptMenuRef, 'inMenu', InMode),
63 (MenuCommand, 'inCommandID', InMode),
Just van Rossumca3cff32002-01-02 14:48:36 +000064)
65functions.append(f)
66
67f = Function(OSStatus, 'GetIndMenuItemWithCommandID',
68 (OptMenuRef, 'inMenu', InMode),
69 (MenuCommand, 'inCommandID', InMode),
70 (UInt32, 'inItemIndex', InMode),
71 (MenuRef, 'outMenu', OutMode),
72 (MenuItemIndex, 'outIndex', OutMode),
Just van Rossumca3cff32002-01-02 14:48:36 +000073)
74functions.append(f)
75
76f = Function(void, 'EnableMenuCommand',
77 (OptMenuRef, 'inMenu', InMode),
78 (MenuCommand, 'inCommandID', InMode),
Just van Rossumca3cff32002-01-02 14:48:36 +000079)
80functions.append(f)
81
82f = Function(void, 'DisableMenuCommand',
83 (OptMenuRef, 'inMenu', InMode),
84 (MenuCommand, 'inCommandID', InMode),
Just van Rossumca3cff32002-01-02 14:48:36 +000085)
86functions.append(f)
87
88f = Function(Boolean, 'IsMenuCommandEnabled',
89 (OptMenuRef, 'inMenu', InMode),
90 (MenuCommand, 'inCommandID', InMode),
Just van Rossumca3cff32002-01-02 14:48:36 +000091)
92functions.append(f)
93
94f = Function(OSStatus, 'SetMenuCommandMark',
95 (OptMenuRef, 'inMenu', InMode),
96 (MenuCommand, 'inCommandID', InMode),
97 (UniChar, 'inMark', InMode),
Just van Rossumca3cff32002-01-02 14:48:36 +000098)
99functions.append(f)
100
101f = Function(OSStatus, 'GetMenuCommandMark',
102 (OptMenuRef, 'inMenu', InMode),
103 (MenuCommand, 'inCommandID', InMode),
104 (UniChar, 'outMark', OutMode),
Just van Rossumca3cff32002-01-02 14:48:36 +0000105)
106functions.append(f)
107
108f = Function(OSStatus, 'GetMenuCommandPropertySize',
109 (OptMenuRef, 'inMenu', InMode),
110 (MenuCommand, 'inCommandID', InMode),
111 (OSType, 'inPropertyCreator', InMode),
112 (OSType, 'inPropertyTag', InMode),
113 (ByteCount, 'outSize', OutMode),
Just van Rossumca3cff32002-01-02 14:48:36 +0000114)
115functions.append(f)
116
117f = Function(OSStatus, 'RemoveMenuCommandProperty',
118 (OptMenuRef, 'inMenu', InMode),
119 (MenuCommand, 'inCommandID', InMode),
120 (OSType, 'inPropertyCreator', InMode),
121 (OSType, 'inPropertyTag', InMode),
Just van Rossumca3cff32002-01-02 14:48:36 +0000122)
123functions.append(f)