blob: d1f1f24a6b311db0e504d9d6d6cfb8174ff741eb [file] [log] [blame]
Guido van Rossum86c3af71995-03-19 22:42:51 +00001f = Function(void, 'OpenDeskAcc',
2 (Str255, 'name', InMode),
Jack Jansen74a1e632000-07-14 22:37:27 +00003 condition='#if !TARGET_API_MAC_CARBON'
Guido van Rossum86c3af71995-03-19 22:42:51 +00004)
5functions.append(f)
Jack Jansena1772281995-06-18 20:17:27 +00006
Jack Jansena1a0fef1999-12-23 14:32:06 +00007f = Function(MenuHandle, 'as_Menu', (Handle, 'h', InMode))
Jack Jansene0581891999-02-07 14:02:03 +00008functions.append(f)
9
Jack Jansena1a0fef1999-12-23 14:32:06 +000010f = Method(Handle, 'as_Resource', (MenuHandle, 'h', InMode))
Jack Jansena1772281995-06-18 20:17:27 +000011methods.append(f)
Jack Jansene180d991998-04-24 10:28:20 +000012
13# The following have "Mac" prepended to their names in the include file
14# since UH 3.1, sigh...
15f = Function(MenuHandle, 'GetMenu',
16 (short, 'resourceID', InMode),
17)
18functions.append(f)
19
20f = Method(void, 'AppendMenu',
21 (MenuHandle, 'menu', InMode),
22 (ConstStr255Param, 'data', InMode),
23)
24methods.append(f)
25
26f = Method(void, 'InsertMenu',
27 (MenuHandle, 'theMenu', InMode),
28 (short, 'beforeID', InMode),
29)
30methods.append(f)
31
32f = Function(void, 'DeleteMenu',
33 (short, 'menuID', InMode),
34)
35functions.append(f)
36
37f = Method(void, 'InsertMenuItem',
38 (MenuHandle, 'theMenu', InMode),
39 (ConstStr255Param, 'itemString', InMode),
40 (short, 'afterItem', InMode),
41)
42methods.append(f)
43
Jack Jansen54c07872001-01-29 13:32:10 +000044f = Method(void, 'EnableMenuItem',
45 (MenuHandle, 'theMenu', InMode),
46 (UInt16, 'item', InMode),
47)
48methods.append(f)
49
50f = Method(void, 'CheckMenuItem',
51 (MenuRef, 'theMenu', InMode),
52 (short, 'item', InMode),
53 (Boolean, 'checked', InMode),
54)
55methods.append(f)
56
57
Jack Jansene180d991998-04-24 10:28:20 +000058f = Function(void, 'DrawMenuBar',
59)
60functions.append(f)
61
Just van Rossumca3cff32002-01-02 14:48:36 +000062
63#
64# The following functions take an *optional* MenuRef as their first argument
65#
66
67f = Function(ItemCount, 'CountMenuItemsWithCommandID',
68 (OptMenuRef, 'inMenu', InMode),
69 (MenuCommand, 'inCommandID', InMode),
70 condition='#if TARGET_API_MAC_CARBON',
71)
72functions.append(f)
73
74f = Function(OSStatus, 'GetIndMenuItemWithCommandID',
75 (OptMenuRef, 'inMenu', InMode),
76 (MenuCommand, 'inCommandID', InMode),
77 (UInt32, 'inItemIndex', InMode),
78 (MenuRef, 'outMenu', OutMode),
79 (MenuItemIndex, 'outIndex', OutMode),
80 condition='#if TARGET_API_MAC_CARBON',
81)
82functions.append(f)
83
84f = Function(void, 'EnableMenuCommand',
85 (OptMenuRef, 'inMenu', InMode),
86 (MenuCommand, 'inCommandID', InMode),
87 condition='#if TARGET_API_MAC_CARBON',
88)
89functions.append(f)
90
91f = Function(void, 'DisableMenuCommand',
92 (OptMenuRef, 'inMenu', InMode),
93 (MenuCommand, 'inCommandID', InMode),
94 condition='#if TARGET_API_MAC_CARBON',
95)
96functions.append(f)
97
98f = Function(Boolean, 'IsMenuCommandEnabled',
99 (OptMenuRef, 'inMenu', InMode),
100 (MenuCommand, 'inCommandID', InMode),
101 condition='#if TARGET_API_MAC_CARBON',
102)
103functions.append(f)
104
105f = Function(OSStatus, 'SetMenuCommandMark',
106 (OptMenuRef, 'inMenu', InMode),
107 (MenuCommand, 'inCommandID', InMode),
108 (UniChar, 'inMark', InMode),
109 condition='#if TARGET_API_MAC_CARBON',
110)
111functions.append(f)
112
113f = Function(OSStatus, 'GetMenuCommandMark',
114 (OptMenuRef, 'inMenu', InMode),
115 (MenuCommand, 'inCommandID', InMode),
116 (UniChar, 'outMark', OutMode),
117 condition='#if TARGET_API_MAC_CARBON',
118)
119functions.append(f)
120
121f = Function(OSStatus, 'GetMenuCommandPropertySize',
122 (OptMenuRef, 'inMenu', InMode),
123 (MenuCommand, 'inCommandID', InMode),
124 (OSType, 'inPropertyCreator', InMode),
125 (OSType, 'inPropertyTag', InMode),
126 (ByteCount, 'outSize', OutMode),
127 condition='#if TARGET_API_MAC_CARBON',
128)
129functions.append(f)
130
131f = Function(OSStatus, 'RemoveMenuCommandProperty',
132 (OptMenuRef, 'inMenu', InMode),
133 (MenuCommand, 'inCommandID', InMode),
134 (OSType, 'inPropertyCreator', InMode),
135 (OSType, 'inPropertyTag', InMode),
136 condition='#if TARGET_API_MAC_CARBON',
137)
138functions.append(f)
139