• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1f = Function(MenuHandle, 'as_Menu', (Handle, 'h', InMode))
2functions.append(f)
3
4f = Method(Handle, 'as_Resource', (MenuHandle, 'h', InMode))
5methods.append(f)
6
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
38f = 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
52f = Function(void, 'DrawMenuBar',
53)
54functions.append(f)
55
56
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),
64)
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),
73)
74functions.append(f)
75
76f = Function(void, 'EnableMenuCommand',
77    (OptMenuRef, 'inMenu', InMode),
78    (MenuCommand, 'inCommandID', InMode),
79)
80functions.append(f)
81
82f = Function(void, 'DisableMenuCommand',
83    (OptMenuRef, 'inMenu', InMode),
84    (MenuCommand, 'inCommandID', InMode),
85)
86functions.append(f)
87
88f = Function(Boolean, 'IsMenuCommandEnabled',
89    (OptMenuRef, 'inMenu', InMode),
90    (MenuCommand, 'inCommandID', InMode),
91)
92functions.append(f)
93
94f = Function(OSStatus, 'SetMenuCommandMark',
95    (OptMenuRef, 'inMenu', InMode),
96    (MenuCommand, 'inCommandID', InMode),
97    (UniChar, 'inMark', InMode),
98)
99functions.append(f)
100
101f = Function(OSStatus, 'GetMenuCommandMark',
102    (OptMenuRef, 'inMenu', InMode),
103    (MenuCommand, 'inCommandID', InMode),
104    (UniChar, 'outMark', OutMode),
105)
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),
114)
115functions.append(f)
116
117f = Function(OSStatus, 'RemoveMenuCommandProperty',
118    (OptMenuRef, 'inMenu', InMode),
119    (MenuCommand, 'inCommandID', InMode),
120    (OSType, 'inPropertyCreator', InMode),
121    (OSType, 'inPropertyTag', InMode),
122)
123functions.append(f)
124