changes by Barry, e.g. font lock & email addresses
[python/dscho.git] / Mac / Modules / menu / menugen.py
blob30e43e2e9236329b0b3cd88e7164ced3da45d884
1 # Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Menus.h'
3 f = Function(short, 'GetMBarHeight',
5 functions.append(f)
7 f = Function(void, 'InitMenus',
9 functions.append(f)
11 f = Function(MenuRef, 'NewMenu',
12 (short, 'menuID', InMode),
13 (ConstStr255Param, 'menuTitle', InMode),
15 functions.append(f)
17 f = Function(MenuRef, 'GetMenu',
18 (short, 'resourceID', InMode),
20 functions.append(f)
22 f = Method(void, 'DisposeMenu',
23 (MenuRef, 'theMenu', InMode),
25 methods.append(f)
27 f = Method(void, 'AppendMenu',
28 (MenuRef, 'menu', InMode),
29 (ConstStr255Param, 'data', InMode),
31 methods.append(f)
33 f = Method(void, 'AppendResMenu',
34 (MenuRef, 'theMenu', InMode),
35 (ResType, 'theType', InMode),
37 methods.append(f)
39 f = Method(void, 'InsertResMenu',
40 (MenuRef, 'theMenu', InMode),
41 (ResType, 'theType', InMode),
42 (short, 'afterItem', InMode),
44 methods.append(f)
46 f = Method(void, 'InsertMenu',
47 (MenuRef, 'theMenu', InMode),
48 (short, 'beforeID', InMode),
50 methods.append(f)
52 f = Function(void, 'DrawMenuBar',
54 functions.append(f)
56 f = Function(void, 'InvalMenuBar',
58 functions.append(f)
60 f = Function(void, 'DeleteMenu',
61 (short, 'menuID', InMode),
63 functions.append(f)
65 f = Function(void, 'ClearMenuBar',
67 functions.append(f)
69 f = Function(Handle, 'GetNewMBar',
70 (short, 'menuBarID', InMode),
72 functions.append(f)
74 f = Function(Handle, 'GetMenuBar',
76 functions.append(f)
78 f = Function(void, 'SetMenuBar',
79 (Handle, 'menuList', InMode),
81 functions.append(f)
83 f = Method(void, 'InsertMenuItem',
84 (MenuRef, 'theMenu', InMode),
85 (ConstStr255Param, 'itemString', InMode),
86 (short, 'afterItem', InMode),
88 methods.append(f)
90 f = Method(void, 'DeleteMenuItem',
91 (MenuRef, 'theMenu', InMode),
92 (short, 'item', InMode),
94 methods.append(f)
96 f = Function(long, 'MenuKey',
97 (short, 'ch', InMode),
99 functions.append(f)
101 f = Function(void, 'HiliteMenu',
102 (short, 'menuID', InMode),
104 functions.append(f)
106 f = Method(void, 'SetMenuItemText',
107 (MenuRef, 'theMenu', InMode),
108 (short, 'item', InMode),
109 (ConstStr255Param, 'itemString', InMode),
111 methods.append(f)
113 f = Method(void, 'GetMenuItemText',
114 (MenuRef, 'theMenu', InMode),
115 (short, 'item', InMode),
116 (Str255, 'itemString', OutMode),
118 methods.append(f)
120 f = Method(void, 'DisableItem',
121 (MenuRef, 'theMenu', InMode),
122 (short, 'item', InMode),
124 methods.append(f)
126 f = Method(void, 'EnableItem',
127 (MenuRef, 'theMenu', InMode),
128 (short, 'item', InMode),
130 methods.append(f)
132 f = Method(void, 'CheckItem',
133 (MenuRef, 'theMenu', InMode),
134 (short, 'item', InMode),
135 (Boolean, 'checked', InMode),
137 methods.append(f)
139 f = Method(void, 'SetItemMark',
140 (MenuRef, 'theMenu', InMode),
141 (short, 'item', InMode),
142 (short, 'markChar', InMode),
144 methods.append(f)
146 f = Method(void, 'GetItemMark',
147 (MenuRef, 'theMenu', InMode),
148 (short, 'item', InMode),
149 (short, 'markChar', OutMode),
151 methods.append(f)
153 f = Method(void, 'SetItemIcon',
154 (MenuRef, 'theMenu', InMode),
155 (short, 'item', InMode),
156 (short, 'iconIndex', InMode),
158 methods.append(f)
160 f = Method(void, 'GetItemIcon',
161 (MenuRef, 'theMenu', InMode),
162 (short, 'item', InMode),
163 (short, 'iconIndex', OutMode),
165 methods.append(f)
167 f = Method(void, 'SetItemStyle',
168 (MenuRef, 'theMenu', InMode),
169 (short, 'item', InMode),
170 (short, 'chStyle', InMode),
172 methods.append(f)
174 f = Method(void, 'GetItemStyle',
175 (MenuRef, 'theMenu', InMode),
176 (short, 'item', InMode),
177 (Style, 'chStyle', OutMode),
179 methods.append(f)
181 f = Method(void, 'CalcMenuSize',
182 (MenuRef, 'theMenu', InMode),
184 methods.append(f)
186 f = Method(short, 'CountMItems',
187 (MenuRef, 'theMenu', InMode),
189 methods.append(f)
191 f = Function(MenuRef, 'GetMenuHandle',
192 (short, 'menuID', InMode),
194 functions.append(f)
196 f = Function(void, 'FlashMenuBar',
197 (short, 'menuID', InMode),
199 functions.append(f)
201 f = Function(void, 'SetMenuFlash',
202 (short, 'count', InMode),
204 functions.append(f)
206 f = Function(long, 'MenuSelect',
207 (Point, 'startPt', InMode),
209 functions.append(f)
211 f = Function(void, 'InitProcMenu',
212 (short, 'resID', InMode),
214 functions.append(f)
216 f = Method(void, 'GetItemCmd',
217 (MenuRef, 'theMenu', InMode),
218 (short, 'item', InMode),
219 (short, 'cmdChar', OutMode),
221 methods.append(f)
223 f = Method(void, 'SetItemCmd',
224 (MenuRef, 'theMenu', InMode),
225 (short, 'item', InMode),
226 (short, 'cmdChar', InMode),
228 methods.append(f)
230 f = Method(long, 'PopUpMenuSelect',
231 (MenuRef, 'menu', InMode),
232 (short, 'top', InMode),
233 (short, 'left', InMode),
234 (short, 'popUpItem', InMode),
236 methods.append(f)
238 f = Function(long, 'MenuChoice',
240 functions.append(f)
242 f = Function(void, 'DeleteMCEntries',
243 (short, 'menuID', InMode),
244 (short, 'menuItem', InMode),
246 functions.append(f)
248 f = Method(void, 'InsertFontResMenu',
249 (MenuRef, 'theMenu', InMode),
250 (short, 'afterItem', InMode),
251 (short, 'scriptFilter', InMode),
253 methods.append(f)
255 f = Method(void, 'InsertIntlResMenu',
256 (MenuRef, 'theMenu', InMode),
257 (ResType, 'theType', InMode),
258 (short, 'afterItem', InMode),
259 (short, 'scriptFilter', InMode),
261 methods.append(f)
263 f = Function(Boolean, 'SystemEdit',
264 (short, 'editCmd', InMode),
266 functions.append(f)
268 f = Function(void, 'SystemMenu',
269 (long, 'menuResult', InMode),
271 functions.append(f)