| 
									
										
										
										
											1995-01-30 11:53:55 +00:00
										 |  |  | # Scan <Controls.h>, generating ctlgen.py. | 
					
						
							| 
									
										
										
										
											1998-04-17 14:07:56 +00:00
										 |  |  | import sys | 
					
						
							|  |  |  | import os | 
					
						
							|  |  |  | BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen') | 
					
						
							|  |  |  | sys.path.append(BGENDIR) | 
					
						
							| 
									
										
										
										
											1995-01-30 11:53:55 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | from scantools import Scanner | 
					
						
							| 
									
										
										
										
											1996-04-12 16:26:59 +00:00
										 |  |  | from bgenlocations import TOOLBOXDIR | 
					
						
							| 
									
										
										
										
											1995-01-30 11:53:55 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | def main(): | 
					
						
							| 
									
										
										
										
											2000-12-10 23:43:49 +00:00
										 |  |  | #	input = "Controls.h" # Universal Headers < 3.3 | 
					
						
							|  |  |  | 	input = ["Controls.h", "ControlDefinitions.h"] # Universal Headers >= 3.3 | 
					
						
							| 
									
										
										
										
											1995-01-30 11:53:55 +00:00
										 |  |  | 	output = "ctlgen.py" | 
					
						
							| 
									
										
										
										
											1996-04-12 16:26:59 +00:00
										 |  |  | 	defsoutput = TOOLBOXDIR + "Controls.py" | 
					
						
							| 
									
										
										
										
											1995-01-30 11:53:55 +00:00
										 |  |  | 	scanner = MyScanner(input, output, defsoutput) | 
					
						
							|  |  |  | 	scanner.scan() | 
					
						
							|  |  |  | 	scanner.close() | 
					
						
							|  |  |  | 	print "=== Done scanning and generating, now doing 'import ctlsupport' ===" | 
					
						
							|  |  |  | 	import ctlsupport | 
					
						
							|  |  |  | 	print "=== Done.  It's up to you to compile Ctlmodule.c ===" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class MyScanner(Scanner): | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	def destination(self, type, name, arglist): | 
					
						
							|  |  |  | 		classname = "Function" | 
					
						
							|  |  |  | 		listname = "functions" | 
					
						
							|  |  |  | 		if arglist: | 
					
						
							|  |  |  | 			t, n, m = arglist[0] | 
					
						
							| 
									
										
										
										
											1995-06-06 12:55:40 +00:00
										 |  |  | 			if t in ("ControlHandle", "ControlRef") and m == "InMode": | 
					
						
							| 
									
										
										
										
											1995-01-30 11:53:55 +00:00
										 |  |  | 				classname = "Method" | 
					
						
							|  |  |  | 				listname = "methods" | 
					
						
							|  |  |  | 		return classname, listname | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1998-02-20 16:02:09 +00:00
										 |  |  | 	def writeinitialdefs(self): | 
					
						
							|  |  |  | 		self.defsfile.write("def FOUR_CHAR_CODE(x): return x\n") | 
					
						
							|  |  |  | 		self.defsfile.write("from TextEdit import *\n") | 
					
						
							|  |  |  | 		self.defsfile.write("from QuickDraw import *\n") | 
					
						
							| 
									
										
										
										
											2000-12-12 22:10:21 +00:00
										 |  |  | 		self.defsfile.write("from Dragconst import *\n") | 
					
						
							| 
									
										
										
										
											2001-12-12 22:40:27 +00:00
										 |  |  | 		self.defsfile.write("from CarbonEvents import *\n") | 
					
						
							|  |  |  | 		self.defsfile.write("from Appearance import *\n") | 
					
						
							|  |  |  | 		self.defsfile.write("kDataBrowserItemAnyState = -1\n") | 
					
						
							|  |  |  | 		self.defsfile.write("kControlBevelButtonCenterPopupGlyphTag = -1\n") | 
					
						
							|  |  |  | 		self.defsfile.write("kDataBrowserClientPropertyFlagsMask = 0xFF << 24  # kDataBrowserClientPropertyFlagsOffset\n") | 
					
						
							| 
									
										
										
										
											1998-02-20 16:02:09 +00:00
										 |  |  | 		self.defsfile.write("\n") | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-01-30 11:53:55 +00:00
										 |  |  | 	def makeblacklistnames(self): | 
					
						
							|  |  |  | 		return [ | 
					
						
							| 
									
										
										
										
											2001-12-13 21:24:37 +00:00
										 |  |  | 			'FindControlUnderMouse', # Generated manually, returns an existing control, not a new one. | 
					
						
							| 
									
										
										
										
											1996-10-01 10:46:46 +00:00
										 |  |  | 			'DisposeControl', # Generated manually | 
					
						
							| 
									
										
										
										
											1995-01-30 11:53:55 +00:00
										 |  |  | 			'KillControls', # Implied by close of dialog | 
					
						
							|  |  |  | 			'SetCtlAction', | 
					
						
							| 
									
										
										
										
											1998-05-28 14:20:09 +00:00
										 |  |  | 			'TrackControl',	# Generated manually | 
					
						
							| 
									
										
										
										
											1999-12-09 16:03:50 +00:00
										 |  |  | 			'HandleControlClick',	# Generated manually | 
					
						
							|  |  |  | 			'SetControlData',	# Generated manually | 
					
						
							|  |  |  | 			'GetControlData',	# Generated manually | 
					
						
							| 
									
										
										
										
											1998-02-20 16:02:09 +00:00
										 |  |  | 			'kControlBevelButtonCenterPopupGlyphTag', # Constant with funny definition | 
					
						
							| 
									
										
										
										
											2001-12-12 22:40:27 +00:00
										 |  |  | 			'kDataBrowserClientPropertyFlagsMask',  # ditto | 
					
						
							|  |  |  | 			'kDataBrowserItemAnyState',   # and ditto | 
					
						
							| 
									
										
										
										
											1998-02-20 16:02:09 +00:00
										 |  |  | 			# The following are unavailable for static 68k (appearance manager) | 
					
						
							| 
									
										
										
										
											2000-06-02 21:35:07 +00:00
										 |  |  | ##			'GetBevelButtonMenuValue', | 
					
						
							|  |  |  | ##			'SetBevelButtonMenuValue', | 
					
						
							|  |  |  | ##			'GetBevelButtonMenuHandle', | 
					
						
							|  |  |  | ##			'SetBevelButtonTransform', | 
					
						
							| 
									
										
										
										
											1998-02-20 16:02:09 +00:00
										 |  |  | 			'SetBevelButtonGraphicAlignment', | 
					
						
							|  |  |  | 			'SetBevelButtonTextAlignment', | 
					
						
							|  |  |  | 			'SetBevelButtonTextPlacement', | 
					
						
							| 
									
										
										
										
											2000-06-02 21:35:07 +00:00
										 |  |  | ##			'SetImageWellTransform', | 
					
						
							|  |  |  | ##			'GetTabContentRect', | 
					
						
							|  |  |  | ##			'SetTabEnabled', | 
					
						
							|  |  |  | ##			'SetDisclosureTriangleLastValue', | 
					
						
							| 
									
										
										
										
											1999-12-12 21:41:51 +00:00
										 |  |  | ## 			# Unavailable in CW Pro 3 libraries | 
					
						
							|  |  |  | ## 			'SetUpControlTextColor', | 
					
						
							|  |  |  | ## 			# Unavailable in Jack's CW Pro 5.1 libraries | 
					
						
							|  |  |  | ## 			'GetControlRegion', | 
					
						
							|  |  |  | ## 			'RemoveControlProperty', | 
					
						
							|  |  |  | ## 			'IsValidControlHandle', | 
					
						
							|  |  |  | ## 			'SetControl32BitMinimum', | 
					
						
							|  |  |  | ## 			'GetControl32BitMinimum', | 
					
						
							|  |  |  | ## 			'SetControl32BitMaximum', | 
					
						
							|  |  |  | ## 			'GetControl32BitMaximum', | 
					
						
							|  |  |  | ## 			'SetControl32BitValue', | 
					
						
							|  |  |  | ## 			'GetControl32BitValue', | 
					
						
							|  |  |  | ## 			'SetControlViewSize', | 
					
						
							|  |  |  | ## 			'GetControlViewSize', | 
					
						
							| 
									
										
										
										
											1999-12-09 16:03:50 +00:00
										 |  |  | 			# Generally Bad News | 
					
						
							|  |  |  | 			'GetControlProperty', | 
					
						
							|  |  |  | 			'SetControlProperty', | 
					
						
							|  |  |  | 			'GetControlPropertySize', | 
					
						
							| 
									
										
										
										
											2001-06-20 21:31:28 +00:00
										 |  |  | 			'SendControlMessage', # Parameter changed from long to void* from UH3.3 to UH3.4 | 
					
						
							| 
									
										
										
										
											2001-12-12 22:40:27 +00:00
										 |  |  | 			# unavailable in Just's CW6 + UH 3.4 libs | 
					
						
							|  |  |  | 			'CreateDisclosureButtonControl', | 
					
						
							|  |  |  | 			'CreateRelevanceBarControl', | 
					
						
							|  |  |  | 			'DisableControl', | 
					
						
							|  |  |  | 			'EnableControl', | 
					
						
							|  |  |  | 			'IsControlEnabled', | 
					
						
							|  |  |  | 			'CreateEditUnicodeTextControl', | 
					
						
							|  |  |  | 			'CopyDataBrowserEditText', | 
					
						
							| 
									
										
										
										
											1995-01-30 11:53:55 +00:00
										 |  |  | 			] | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-06-02 21:35:07 +00:00
										 |  |  | 	def makegreylist(self): | 
					
						
							|  |  |  | 		return [ | 
					
						
							| 
									
										
										
										
											2000-07-14 22:37:27 +00:00
										 |  |  | 			('#if !TARGET_API_MAC_CARBON', [ | 
					
						
							| 
									
										
										
										
											2000-06-02 21:35:07 +00:00
										 |  |  | 				'GetAuxiliaryControlRecord', | 
					
						
							|  |  |  | 				'SetControlColor', | 
					
						
							| 
									
										
										
										
											2000-07-14 22:16:45 +00:00
										 |  |  | 				# These have suddenly disappeared in UH 3.3.2... | 
					
						
							| 
									
										
										
										
											2000-12-10 23:43:49 +00:00
										 |  |  | ##				'GetBevelButtonMenuValue', | 
					
						
							|  |  |  | ##				'SetBevelButtonMenuValue', | 
					
						
							|  |  |  | ##				'GetBevelButtonMenuHandle', | 
					
						
							|  |  |  | ##				'SetBevelButtonTransform', | 
					
						
							|  |  |  | ##				'SetImageWellTransform', | 
					
						
							|  |  |  | ##				'GetTabContentRect', | 
					
						
							|  |  |  | ##				'SetTabEnabled', | 
					
						
							|  |  |  | ##				'SetDisclosureTriangleLastValue', | 
					
						
							|  |  |  | 			]), | 
					
						
							|  |  |  | 			('#if TARGET_API_MAC_CARBON', [ | 
					
						
							|  |  |  | 				'IsAutomaticControlDragTrackingEnabledForWindow', | 
					
						
							|  |  |  | 				'SetAutomaticControlDragTrackingEnabledForWindow', | 
					
						
							| 
									
										
										
										
											2000-12-12 22:10:21 +00:00
										 |  |  | 				'HandleControlDragReceive', | 
					
						
							|  |  |  | 				'HandleControlDragTracking', | 
					
						
							| 
									
										
										
										
											2000-12-10 23:43:49 +00:00
										 |  |  | 				'GetControlByID', | 
					
						
							|  |  |  | 				'IsControlDragTrackingEnabled', | 
					
						
							|  |  |  | 				'SetControlDragTrackingEnabled', | 
					
						
							|  |  |  | 				'GetControlPropertyAttributes', | 
					
						
							|  |  |  | 				'ChangeControlPropertyAttributes', | 
					
						
							|  |  |  | 				'GetControlID', | 
					
						
							|  |  |  | 				'SetControlID', | 
					
						
							|  |  |  | 				'HandleControlSetCursor', | 
					
						
							|  |  |  | 				'GetControlClickActivation', | 
					
						
							|  |  |  | 				'HandleControlContextualMenuClick', | 
					
						
							| 
									
										
										
										
											2001-12-14 22:47:19 +00:00
										 |  |  | 				"CreateDataBrowserControl", | 
					
						
							|  |  |  | 				"CreateScrollingTextBoxControl", | 
					
						
							|  |  |  | 				"CreateRadioGroupControl", | 
					
						
							|  |  |  | 				"CreatePopupButtonControl", | 
					
						
							|  |  |  | 				"CreateCheckBoxControl", | 
					
						
							|  |  |  | 				"CreateRadioButtonControl", | 
					
						
							|  |  |  | 				"CreatePushButtonControl", | 
					
						
							|  |  |  | 				"CreateWindowHeaderControl", | 
					
						
							|  |  |  | 				"CreateStaticTextControl", | 
					
						
							|  |  |  | 				"CreateEditTextControl", | 
					
						
							|  |  |  | 				"CreateUserPaneControl", | 
					
						
							|  |  |  | 				"CreateClockControl", | 
					
						
							|  |  |  | 				"CreatePlacardControl", | 
					
						
							|  |  |  | 				"CreatePopupArrowControl", | 
					
						
							|  |  |  | 				"CreatePopupGroupBoxControl", | 
					
						
							|  |  |  | 				"CreateCheckGroupBoxControl", | 
					
						
							|  |  |  | 				"CreateGroupBoxControl", | 
					
						
							|  |  |  | 				"CreateSeparatorControl", | 
					
						
							|  |  |  | 				"CreateChasingArrowsControl", | 
					
						
							|  |  |  | 				"CreateLittleArrowsControl", | 
					
						
							|  |  |  | 				"CreateProgressBarControl", | 
					
						
							|  |  |  | 				"CreateDisclosureTriangleControl", | 
					
						
							|  |  |  | 				"GetDataBrowserColumnViewDisplayType", | 
					
						
							|  |  |  | 				"SetDataBrowserColumnViewDisplayType", | 
					
						
							|  |  |  | 				"GetDataBrowserColumnViewPathLength", | 
					
						
							|  |  |  | 				"GetDataBrowserColumnViewPath", | 
					
						
							|  |  |  | 				"GetDataBrowserListViewDisclosureColumn", | 
					
						
							|  |  |  | 				"SetDataBrowserListViewDisclosureColumn", | 
					
						
							|  |  |  | 				"GetDataBrowserListViewUsePlainBackground", | 
					
						
							|  |  |  | 				"SetDataBrowserListViewUsePlainBackground", | 
					
						
							|  |  |  | 				"GetDataBrowserListViewHeaderBtnHeight", | 
					
						
							|  |  |  | 				"SetDataBrowserListViewHeaderBtnHeight", | 
					
						
							|  |  |  | 				"AutoSizeDataBrowserListViewColumns", | 
					
						
							|  |  |  | 				"GetDataBrowserTableViewColumnProperty", | 
					
						
							|  |  |  | 				"GetDataBrowserTableViewColumnPosition", | 
					
						
							|  |  |  | 				"SetDataBrowserTableViewColumnPosition", | 
					
						
							|  |  |  | 				"GetDataBrowserTableViewItemRow", | 
					
						
							|  |  |  | 				"SetDataBrowserTableViewItemRow", | 
					
						
							|  |  |  | 				"GetDataBrowserTableViewItemID", | 
					
						
							|  |  |  | 				"GetDataBrowserTableViewGeometry", | 
					
						
							|  |  |  | 				"SetDataBrowserTableViewGeometry", | 
					
						
							|  |  |  | 				"GetDataBrowserTableViewNamedColumnWidth", | 
					
						
							|  |  |  | 				"SetDataBrowserTableViewNamedColumnWidth", | 
					
						
							|  |  |  | 				"GetDataBrowserTableViewItemRowHeight", | 
					
						
							|  |  |  | 				"SetDataBrowserTableViewItemRowHeight", | 
					
						
							|  |  |  | 				"GetDataBrowserTableViewColumnWidth", | 
					
						
							|  |  |  | 				"SetDataBrowserTableViewColumnWidth", | 
					
						
							|  |  |  | 				"GetDataBrowserTableViewRowHeight", | 
					
						
							|  |  |  | 				"SetDataBrowserTableViewRowHeight", | 
					
						
							|  |  |  | 				"GetDataBrowserTableViewHiliteStyle", | 
					
						
							|  |  |  | 				"SetDataBrowserTableViewHiliteStyle", | 
					
						
							|  |  |  | 				"GetDataBrowserTableViewColumnCount", | 
					
						
							|  |  |  | 				"RemoveDataBrowserTableViewColumn", | 
					
						
							|  |  |  | 				"GetDataBrowserItemPartBounds", | 
					
						
							|  |  |  | 				"GetDataBrowserEditItem", | 
					
						
							|  |  |  | 				"SetDataBrowserEditItem", | 
					
						
							|  |  |  | 				"GetDataBrowserEditText", | 
					
						
							|  |  |  | 				"SetDataBrowserEditText", | 
					
						
							|  |  |  | 				"GetDataBrowserPropertyFlags", | 
					
						
							|  |  |  | 				"SetDataBrowserPropertyFlags", | 
					
						
							|  |  |  | 				"GetDataBrowserSelectionFlags", | 
					
						
							|  |  |  | 				"SetDataBrowserSelectionFlags", | 
					
						
							|  |  |  | 				"GetDataBrowserSortProperty", | 
					
						
							|  |  |  | 				"SetDataBrowserSortProperty", | 
					
						
							|  |  |  | 				"GetDataBrowserHasScrollBars", | 
					
						
							|  |  |  | 				"SetDataBrowserHasScrollBars", | 
					
						
							|  |  |  | 				"GetDataBrowserScrollPosition", | 
					
						
							|  |  |  | 				"SetDataBrowserScrollPosition", | 
					
						
							|  |  |  | 				"GetDataBrowserSortOrder", | 
					
						
							|  |  |  | 				"SetDataBrowserSortOrder", | 
					
						
							|  |  |  | 				"GetDataBrowserTarget", | 
					
						
							|  |  |  | 				"SetDataBrowserTarget", | 
					
						
							|  |  |  | 				"GetDataBrowserScrollBarInset", | 
					
						
							|  |  |  | 				"SetDataBrowserScrollBarInset", | 
					
						
							|  |  |  | 				"GetDataBrowserActiveItems", | 
					
						
							|  |  |  | 				"SetDataBrowserActiveItems", | 
					
						
							|  |  |  | 				"RevealDataBrowserItem", | 
					
						
							|  |  |  | 				"GetDataBrowserItemState", | 
					
						
							|  |  |  | 				"IsDataBrowserItemSelected", | 
					
						
							|  |  |  | 				"GetDataBrowserItemCount", | 
					
						
							|  |  |  | 				"GetDataBrowserItems", | 
					
						
							|  |  |  | 				"SortDataBrowserContainer", | 
					
						
							|  |  |  | 				"CloseDataBrowserContainer", | 
					
						
							|  |  |  | 				"OpenDataBrowserContainer", | 
					
						
							|  |  |  | 				"MoveDataBrowserSelectionAnchor", | 
					
						
							|  |  |  | 				"GetDataBrowserSelectionAnchor", | 
					
						
							|  |  |  | 				"ExecuteDataBrowserEditCommand", | 
					
						
							|  |  |  | 				"EnableDataBrowserEditCommand", | 
					
						
							|  |  |  | 				"SetDataBrowserViewStyle", | 
					
						
							|  |  |  | 				"GetDataBrowserViewStyle", | 
					
						
							|  |  |  | 				"GetControlCommandID", | 
					
						
							|  |  |  | 				"SetControlCommandID", | 
					
						
							|  |  |  | 				"CopyControlTitleAsCFString", | 
					
						
							|  |  |  | 				"SetControlTitleWithCFString", | 
					
						
							| 
									
										
										
										
											2000-12-10 23:43:49 +00:00
										 |  |  | 			]), | 
					
						
							|  |  |  | 			('#if ACCESSOR_CALLS_ARE_FUNCTIONS', [ | 
					
						
							|  |  |  | 				# XXX These are silly, they should be #defined to access the fields | 
					
						
							|  |  |  | 				# directly. Later... | 
					
						
							|  |  |  | 				'GetControlBounds', | 
					
						
							|  |  |  | 				'IsControlHilited', | 
					
						
							|  |  |  | 				'GetControlHilite', | 
					
						
							|  |  |  | 				'GetControlOwner', | 
					
						
							|  |  |  | 				'GetControlDataHandle', | 
					
						
							|  |  |  | 				'GetControlPopupMenuHandle', | 
					
						
							|  |  |  | 				'GetControlPopupMenuID', | 
					
						
							|  |  |  | 				'SetControlDataHandle', | 
					
						
							|  |  |  | 				'SetControlBounds', | 
					
						
							|  |  |  | 				'SetControlPopupMenuHandle', | 
					
						
							|  |  |  | 				'SetControlPopupMenuID', | 
					
						
							| 
									
										
										
										
											2000-06-02 21:35:07 +00:00
										 |  |  | 			])] | 
					
						
							|  |  |  | 			 | 
					
						
							| 
									
										
										
										
											1995-01-30 11:53:55 +00:00
										 |  |  | 	def makeblacklisttypes(self): | 
					
						
							|  |  |  | 		return [ | 
					
						
							|  |  |  | 			'ProcPtr', | 
					
						
							| 
									
										
										
										
											1995-06-06 12:55:40 +00:00
										 |  |  | 			'ControlActionUPP', | 
					
						
							| 
									
										
										
										
											1998-02-20 16:02:09 +00:00
										 |  |  | 			'ControlButtonContentInfoPtr', | 
					
						
							|  |  |  | 			'Ptr', | 
					
						
							| 
									
										
										
										
											2000-12-10 23:43:49 +00:00
										 |  |  | 			'ControlDefSpec', # Don't know how to do this yet | 
					
						
							|  |  |  | 			'ControlDefSpec_ptr', # ditto | 
					
						
							|  |  |  | 			'Collection', # Ditto | 
					
						
							| 
									
										
										
										
											2001-12-12 22:40:27 +00:00
										 |  |  | 			# not-yet-supported stuff in Universal Headers 3.4: | 
					
						
							|  |  |  | 			'ControlColorUPP', | 
					
						
							|  |  |  | 			'ControlKind',  # XXX easy: 2-tuple containing 2 OSType's | 
					
						
							|  |  |  | 			'ControlTabEntry_ptr', # XXX needed for tabs | 
					
						
							|  |  |  | 			'ControlButtonContentInfo',  # XXX ugh: a union | 
					
						
							|  |  |  | 			'ControlButtonContentInfo_ptr',  # XXX ugh: a union | 
					
						
							|  |  |  | 			'ListDefSpec_ptr',  # XXX see _Listmodule.c, tricky but possible | 
					
						
							|  |  |  | 			'DataBrowserItemID_ptr',  # XXX array of UInt32, for BrowserView | 
					
						
							|  |  |  | 			'DataBrowserItemUPP', | 
					
						
							|  |  |  | 			'DataBrowserItemDataRef', # XXX void * | 
					
						
							|  |  |  | 			'DataBrowserCallbacks', # difficult struct | 
					
						
							|  |  |  | 			'DataBrowserCallbacks_ptr', | 
					
						
							|  |  |  | 			'DataBrowserCustomCallbacks', | 
					
						
							|  |  |  | 			'DataBrowserCustomCallbacks_ptr', | 
					
						
							|  |  |  | 			'DataBrowserTableViewColumnDesc', | 
					
						
							|  |  |  | 			'DataBrowserListViewColumnDesc', | 
					
						
							|  |  |  | 			'CFDataRef', | 
					
						
							| 
									
										
										
										
											1995-01-30 11:53:55 +00:00
										 |  |  | 			] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	def makerepairinstructions(self): | 
					
						
							|  |  |  | 		return [ | 
					
						
							|  |  |  | 			([("void_ptr", "*", "InMode"), ("long", "*", "InMode")], | 
					
						
							|  |  |  | 			 [("InBuffer", "*", "*")]), | 
					
						
							| 
									
										
										
										
											1999-12-09 16:03:50 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-01-30 11:53:55 +00:00
										 |  |  | 			([("void", "*", "OutMode"), ("long", "*", "InMode"), | 
					
						
							|  |  |  | 			                            ("long", "*", "OutMode")], | 
					
						
							|  |  |  | 			 [("VarVarOutBuffer", "*", "InOutMode")]), | 
					
						
							| 
									
										
										
										
											1999-12-09 16:03:50 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1998-05-28 14:20:09 +00:00
										 |  |  | ##			# For TrackControl | 
					
						
							|  |  |  | ##			([("ProcPtr", "actionProc", "InMode")], | 
					
						
							|  |  |  | ##			 [("FakeType('(ControlActionUPP)0')", "*", "*")]), | 
					
						
							|  |  |  | ##			([("ControlActionUPP", "actionProc", "InMode")], | 
					
						
							|  |  |  | ##			 [("FakeType('(ControlActionUPP)0')", "*", "*")]), | 
					
						
							| 
									
										
										
										
											1999-12-09 16:03:50 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-03-07 20:05:20 +00:00
										 |  |  | 			# For GetControlTitle | 
					
						
							|  |  |  | 			([('Str255', 'title', 'InMode')], | 
					
						
							|  |  |  | 			 [('Str255', 'title', 'OutMode')]), | 
					
						
							| 
									
										
										
										
											1999-12-09 16:03:50 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-01-30 11:53:55 +00:00
										 |  |  | 			([("ControlHandle", "*", "OutMode")], | 
					
						
							|  |  |  | 			 [("ExistingControlHandle", "*", "*")]), | 
					
						
							| 
									
										
										
										
											1995-06-06 12:55:40 +00:00
										 |  |  | 			([("ControlRef", "*", "OutMode")],	# Ditto, for Universal Headers | 
					
						
							|  |  |  | 			 [("ExistingControlHandle", "*", "*")]), | 
					
						
							| 
									
										
										
										
											2001-01-09 22:10:16 +00:00
										 |  |  | 			  | 
					
						
							|  |  |  | 			([("Rect_ptr", "*", "ReturnMode")], # GetControlBounds | 
					
						
							|  |  |  | 			 [("void", "*", "ReturnMode")]), | 
					
						
							| 
									
										
										
										
											1995-01-30 11:53:55 +00:00
										 |  |  | 			] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if __name__ == "__main__": | 
					
						
							|  |  |  | 	main() |