1 {
2      File:       DrawSprocket/DrawSprocket.h
3 
4      Contains:   Games Sprockets: DrawSprocket interfaces
5 
6      Version:    DrawSprocket-2.0.85~65
7 
8      Copyright:  � 1999-2008 by Apple Computer, Inc., all rights reserved.
9 
10      Bugs?:      For bug reports, consult the following page on
11                  the World Wide Web:
12 
13                      http://bugs.freepascal.org
14 
15 }
16 {       Pascal Translation Updated:  Jonas Maebe, <jonas@freepascal.org>, October 2009 }
17 {
18     Modified for use with Free Pascal
19     Version 308
20     Please report any bugs to <gpc@microbizz.nl>
21 }
22 
23 {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
24 {$mode macpas}
25 {$modeswitch cblocks}
26 {$packenum 1}
27 {$macro on}
28 {$inline on}
29 {$calling mwpascal}
30 
31 unit DrawSprocket;
32 interface
33 {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
34 {$setc GAP_INTERFACES_VERSION := $0308}
35 
36 {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
37     {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
38 {$endc}
39 
40 {$ifc defined CPUPOWERPC and defined CPUI386}
41 	{$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
42 {$endc}
43 {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
44 	{$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
45 {$endc}
46 
47 {$ifc not defined __ppc__ and defined CPUPOWERPC32}
48 	{$setc __ppc__ := 1}
49 {$elsec}
50 	{$setc __ppc__ := 0}
51 {$endc}
52 {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
53 	{$setc __ppc64__ := 1}
54 {$elsec}
55 	{$setc __ppc64__ := 0}
56 {$endc}
57 {$ifc not defined __i386__ and defined CPUI386}
58 	{$setc __i386__ := 1}
59 {$elsec}
60 	{$setc __i386__ := 0}
61 {$endc}
62 {$ifc not defined __x86_64__ and defined CPUX86_64}
63 	{$setc __x86_64__ := 1}
64 {$elsec}
65 	{$setc __x86_64__ := 0}
66 {$endc}
67 {$ifc not defined __arm__ and defined CPUARM}
68 	{$setc __arm__ := 1}
69 {$elsec}
70 	{$setc __arm__ := 0}
71 {$endc}
72 {$ifc not defined __arm64__ and defined CPUAARCH64}
73   {$setc __arm64__ := 1}
74 {$elsec}
75   {$setc __arm64__ := 0}
76 {$endc}
77 
78 {$ifc defined cpu64}
79   {$setc __LP64__ := 1}
80 {$elsec}
81   {$setc __LP64__ := 0}
82 {$endc}
83 
84 
85 {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
86 	{$error Conflicting definitions for __ppc__ and __i386__}
87 {$endc}
88 
89 {$ifc defined __ppc__ and __ppc__}
90 	{$setc TARGET_CPU_PPC := TRUE}
91 	{$setc TARGET_CPU_PPC64 := FALSE}
92 	{$setc TARGET_CPU_X86 := FALSE}
93 	{$setc TARGET_CPU_X86_64 := FALSE}
94 	{$setc TARGET_CPU_ARM := FALSE}
95 	{$setc TARGET_CPU_ARM64 := FALSE}
96 	{$setc TARGET_OS_MAC := TRUE}
97 	{$setc TARGET_OS_IPHONE := FALSE}
98 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
99 	{$setc TARGET_OS_EMBEDDED := FALSE}
100 {$elifc defined __ppc64__ and __ppc64__}
101 	{$setc TARGET_CPU_PPC := FALSE}
102 	{$setc TARGET_CPU_PPC64 := TRUE}
103 	{$setc TARGET_CPU_X86 := FALSE}
104 	{$setc TARGET_CPU_X86_64 := FALSE}
105 	{$setc TARGET_CPU_ARM := FALSE}
106 	{$setc TARGET_CPU_ARM64 := FALSE}
107 	{$setc TARGET_OS_MAC := TRUE}
108 	{$setc TARGET_OS_IPHONE := FALSE}
109 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
110 	{$setc TARGET_OS_EMBEDDED := FALSE}
111 {$elifc defined __i386__ and __i386__}
112 	{$setc TARGET_CPU_PPC := FALSE}
113 	{$setc TARGET_CPU_PPC64 := FALSE}
114 	{$setc TARGET_CPU_X86 := TRUE}
115 	{$setc TARGET_CPU_X86_64 := FALSE}
116 	{$setc TARGET_CPU_ARM := FALSE}
117 	{$setc TARGET_CPU_ARM64 := FALSE}
118 {$ifc defined iphonesim}
119  	{$setc TARGET_OS_MAC := FALSE}
120 	{$setc TARGET_OS_IPHONE := TRUE}
121 	{$setc TARGET_IPHONE_SIMULATOR := TRUE}
122 {$elsec}
123 	{$setc TARGET_OS_MAC := TRUE}
124 	{$setc TARGET_OS_IPHONE := FALSE}
125 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
126 {$endc}
127 	{$setc TARGET_OS_EMBEDDED := FALSE}
128 {$elifc defined __x86_64__ and __x86_64__}
129 	{$setc TARGET_CPU_PPC := FALSE}
130 	{$setc TARGET_CPU_PPC64 := FALSE}
131 	{$setc TARGET_CPU_X86 := FALSE}
132 	{$setc TARGET_CPU_X86_64 := TRUE}
133 	{$setc TARGET_CPU_ARM := FALSE}
134 	{$setc TARGET_CPU_ARM64 := FALSE}
135 {$ifc defined iphonesim}
136  	{$setc TARGET_OS_MAC := FALSE}
137 	{$setc TARGET_OS_IPHONE := TRUE}
138 	{$setc TARGET_IPHONE_SIMULATOR := TRUE}
139 {$elsec}
140 	{$setc TARGET_OS_MAC := TRUE}
141 	{$setc TARGET_OS_IPHONE := FALSE}
142 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
143 {$endc}
144 	{$setc TARGET_OS_EMBEDDED := FALSE}
145 {$elifc defined __arm__ and __arm__}
146 	{$setc TARGET_CPU_PPC := FALSE}
147 	{$setc TARGET_CPU_PPC64 := FALSE}
148 	{$setc TARGET_CPU_X86 := FALSE}
149 	{$setc TARGET_CPU_X86_64 := FALSE}
150 	{$setc TARGET_CPU_ARM := TRUE}
151 	{$setc TARGET_CPU_ARM64 := FALSE}
152 	{$setc TARGET_OS_MAC := FALSE}
153 	{$setc TARGET_OS_IPHONE := TRUE}
154 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
155 	{$setc TARGET_OS_EMBEDDED := TRUE}
156 {$elifc defined __arm64__ and __arm64__}
157 	{$setc TARGET_CPU_PPC := FALSE}
158 	{$setc TARGET_CPU_PPC64 := FALSE}
159 	{$setc TARGET_CPU_X86 := FALSE}
160 	{$setc TARGET_CPU_X86_64 := FALSE}
161 	{$setc TARGET_CPU_ARM := FALSE}
162 	{$setc TARGET_CPU_ARM64 := TRUE}
163 {$ifc defined ios}
164 	{$setc TARGET_OS_MAC := FALSE}
165 	{$setc TARGET_OS_IPHONE := TRUE}
166 	{$setc TARGET_OS_EMBEDDED := TRUE}
167 {$elsec}
168 	{$setc TARGET_OS_MAC := TRUE}
169 	{$setc TARGET_OS_IPHONE := FALSE}
170 	{$setc TARGET_OS_EMBEDDED := FALSE}
171 {$endc}
172 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
173 {$elsec}
174 	{$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ nor __arm64__ is defined.}
175 {$endc}
176 
177 {$ifc defined __LP64__ and __LP64__ }
178   {$setc TARGET_CPU_64 := TRUE}
179 {$elsec}
180   {$setc TARGET_CPU_64 := FALSE}
181 {$endc}
182 
183 {$ifc defined FPC_BIG_ENDIAN}
184 	{$setc TARGET_RT_BIG_ENDIAN := TRUE}
185 	{$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
186 {$elifc defined FPC_LITTLE_ENDIAN}
187 	{$setc TARGET_RT_BIG_ENDIAN := FALSE}
188 	{$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
189 {$elsec}
190 	{$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
191 {$endc}
192 {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
193 {$setc CALL_NOT_IN_CARBON := FALSE}
194 {$setc OLDROUTINENAMES := FALSE}
195 {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
196 {$setc OPAQUE_UPP_TYPES := TRUE}
197 {$setc OTCARBONAPPLICATION := TRUE}
198 {$setc OTKERNEL := FALSE}
199 {$setc PM_USE_SESSION_APIS := TRUE}
200 {$setc TARGET_API_MAC_CARBON := TRUE}
201 {$setc TARGET_API_MAC_OS8 := FALSE}
202 {$setc TARGET_API_MAC_OSX := TRUE}
203 {$setc TARGET_CARBON := TRUE}
204 {$setc TARGET_CPU_68K := FALSE}
205 {$setc TARGET_CPU_MIPS := FALSE}
206 {$setc TARGET_CPU_SPARC := FALSE}
207 {$setc TARGET_OS_UNIX := FALSE}
208 {$setc TARGET_OS_WIN32 := FALSE}
209 {$setc TARGET_RT_MAC_68881 := FALSE}
210 {$setc TARGET_RT_MAC_CFM := FALSE}
211 {$setc TARGET_RT_MAC_MACHO := TRUE}
212 {$setc TYPED_FUNCTION_POINTERS := TRUE}
213 {$setc TYPE_BOOL := FALSE}
214 {$setc TYPE_EXTENDED := FALSE}
215 {$setc TYPE_LONGLONG := TRUE}
216 uses MacTypes,Video,Events,QuickdrawTypes,QDOffscreen,Displays,MacErrors;
217 {$endc} {not MACOSALLINCLUDE}
218 
219 
220 {$ifc TARGET_OS_MAC}
221 
222 {$ALIGN POWER}
223 
224 
225 {******************* DEPRECATION NOTICE *********************
226  *
227  * The DrawSprocket API is being deprecated, and should be replaced
228  * by the CGDirectDisplay API in the CoreGraphics framework in
229  * ApplicationServices.framework.
230  *
231  ************************************************************}
232 
233 {
234 ********************************************************************************
235 ** constants
236 ********************************************************************************
237 }
238 type
239 	DSpDepthMask = SInt32;
240 const
241 	kDSpDepthMask_1 = 1 shl 0;
242 	kDSpDepthMask_2 = 1 shl 1;
243 	kDSpDepthMask_4 = 1 shl 2;
244 	kDSpDepthMask_8 = 1 shl 3;
245 	kDSpDepthMask_16 = 1 shl 4;
246 	kDSpDepthMask_32 = 1 shl 5;
247 	kDSpDepthMask_All = -1;
248 
249 type
250 	DSpColorNeeds = SInt32;
251 const
252 	kDSpColorNeeds_DontCare = 0;
253 	kDSpColorNeeds_Request = 1;
254 	kDSpColorNeeds_Require = 2;
255 
256 type
257 	DSpContextState = SInt32;
258 const
259 	kDSpContextState_Active = 0;
260 	kDSpContextState_Paused = 1;
261 	kDSpContextState_Inactive = 2;
262 
263 { kDSpContextOption_QD3DAccel not yet implemented }
264 type
265 	DSpContextOption = SInt32;
266 const
267 {    kDSpContextOption_QD3DAccel       = 1<<0,}
268 	kDSpContextOption_PageFlip = 1 shl 1;
269 	kDSpContextOption_DontSyncVBL = 1 shl 2;
270 	kDSpContextOption_Stereoscopic = 1 shl 3;
271 
272 type
273 	DSpAltBufferOption = SInt32;
274 const
275 	kDSpAltBufferOption_RowBytesEqualsWidth = 1 shl 0;
276 
277 type
278 	DSpBufferKind = SInt32;
279 const
280 	kDSpBufferKind_Normal = 0;
281 
282 type
283 	DSpBlitMode = SInt32;
284 const
285 	kDSpBlitMode_Plain = 0;
286 	kDSpBlitMode_SrcKey = 1 shl 0;
287 	kDSpBlitMode_DstKey = 1 shl 1;
288 	kDSpBlitMode_Interpolation = 1 shl 2;
289 
290 {
291 ********************************************************************************
292 ** data types
293 ********************************************************************************
294 }
295 type
296 	DSpAltBufferReference = ^OpaqueDSpAltBufferReference; { an opaque type }
297 	OpaqueDSpAltBufferReference = record end;
298 	DSpAltBufferReferencePtr = ^DSpAltBufferReference;  { when a var xx:DSpAltBufferReference parameter can be nil, it is changed to xx: DSpAltBufferReferencePtr }
299 	DSpContextReference = ^OpaqueDSpContextReference; { an opaque type }
300 	OpaqueDSpContextReference = record end;
301 	DSpContextReferencePtr = ^DSpContextReference;  { when a var xx:DSpContextReference parameter can be nil, it is changed to xx: DSpContextReferencePtr }
302 	DSpContextReferenceConst = ^OpaqueDSpContextReference;
303 	DSpContextReferenceConstPtr = ^DSpContextReferenceConst;  { when a var xx:DSpContextReferenceConst parameter can be nil, it is changed to xx: DSpContextReferenceConstPtr }
304 const
305 	kDSpEveryContext = nil;
306 type
varnull307 	DSpEventProcPtr = function( var inEvent: EventRecord ): Boolean;
inContextnull308 	DSpCallbackProcPtr = function( inContext: DSpContextReference; inRefCon: UnivPtr ): Boolean;
309 	DSpEventUPP = DSpEventProcPtr;
310 	DSpCallbackUPP = DSpCallbackProcPtr;
311 {
312  *  NewDSpEventUPP()
313  *
314  *  Availability:
315  *    Mac OS X:         not available
316  *    CarbonLib:        not available
317  *    Non-Carbon CFM:   available as macro/inline
318  }
319 
320 {
321  *  NewDSpCallbackUPP()
322  *
323  *  Availability:
324  *    Mac OS X:         not available
325  *    CarbonLib:        not available
326  *    Non-Carbon CFM:   available as macro/inline
327  }
328 
329 {
330  *  DisposeDSpEventUPP()
331  *
332  *  Availability:
333  *    Mac OS X:         not available
334  *    CarbonLib:        not available
335  *    Non-Carbon CFM:   available as macro/inline
336  }
337 
338 {
339  *  DisposeDSpCallbackUPP()
340  *
341  *  Availability:
342  *    Mac OS X:         not available
343  *    CarbonLib:        not available
344  *    Non-Carbon CFM:   available as macro/inline
345  }
346 
347 {
348  *  InvokeDSpEventUPP()
349  *
350  *  Availability:
351  *    Mac OS X:         not available
352  *    CarbonLib:        not available
353  *    Non-Carbon CFM:   available as macro/inline
354  }
355 
356 {
357  *  InvokeDSpCallbackUPP()
358  *
359  *  Availability:
360  *    Mac OS X:         not available
361  *    CarbonLib:        not available
362  *    Non-Carbon CFM:   available as macro/inline
363  }
364 
365 type
366 	DSpContextAttributesPtr = ^DSpContextAttributes;
367 	DSpContextAttributes = record
368 		frequency: Fixed;
369 		displayWidth: UInt32;
370 		displayHeight: UInt32;
371 		reserved1: UInt32;
372 		reserved2: UInt32;
373 		colorNeeds: UInt32;
374 		colorTable: CTabHandle;
375 		contextOptions: OptionBits;
376 		backBufferDepthMask: OptionBits;
377 		displayDepthMask: OptionBits;
378 		backBufferBestDepth: UInt32;
379 		displayBestDepth: UInt32;
380 		pageCount: UInt32;
381 		filler1,filler2,filler3: SInt8;
382 		gameMustConfirmSwitch: Boolean;
383 		reserved3: array [0..4-1] of UInt32;
384 	end;
385 type
386 	DSpAltBufferAttributesPtr = ^DSpAltBufferAttributes;
387 	DSpAltBufferAttributes = record
388 		width: UInt32;
389 		height: UInt32;
390 		options: DSpAltBufferOption;
391 		reserved: array [0..4-1] of UInt32;
392 	end;
393 type
394 	DSpBlitInfoPtr = ^DSpBlitInfo;
395 	DSpBlitDoneProc = procedure( info: DSpBlitInfoPtr );
396 	DSpBlitInfo = record
397 		completionFlag: Boolean;
398 		filler1, filler2, filler3: SInt8;
399 		completionProc: DSpBlitDoneProc;
400 		srcContext: DSpContextReference;
401 		srcBuffer: CGrafPtr;
402 		srcRect: Rect;
403 		srcKey: UInt32;
404 
405 		dstContext: DSpContextReference;
406 		dstBuffer: CGrafPtr;
407 		dstRect: Rect;
408 		dstKey: UInt32;
409 
410 		mode: DSpBlitMode;
411 		reserved: array [0..4-1] of UInt32;
412 	end;
413 {
414 ********************************************************************************
415 ** function prototypes
416 ********************************************************************************
417 }
418 
419 {
420 ** global operations
421 }
422 {
423  *  DSpStartup()   *** DEPRECATED ***
424  *
425  *  Availability:
426  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
427  *    CarbonLib:        not available
428  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
429  }
DSpStartupnull430 function DSpStartup: OSStatus; external name '_DSpStartup';
431 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
432 
433 
434 {
435  *  DSpShutdown()   *** DEPRECATED ***
436  *
437  *  Availability:
438  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
439  *    CarbonLib:        not available
440  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
441  }
DSpShutdownnull442 function DSpShutdown: OSStatus; external name '_DSpShutdown';
443 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
444 
445 
446 {
447  *  DSpGetVersion()   *** DEPRECATED ***
448  *
449  *  Availability:
450  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
451  *    CarbonLib:        not available
452  *    Non-Carbon CFM:   in DrawSprocketLib 1.7 and later
453  }
DSpGetVersionnull454 function DSpGetVersion: NumVersion; external name '_DSpGetVersion';
455 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
456 
457 
458 {
459  *  DSpGetFirstContext()   *** DEPRECATED ***
460  *
461  *  Availability:
462  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
463  *    CarbonLib:        not available
464  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
465  }
DSpGetFirstContextnull466 function DSpGetFirstContext( inDisplayID: DisplayIDType; var outContext: DSpContextReference ): OSStatus; external name '_DSpGetFirstContext';
467 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
468 
469 
470 {
471  *  DSpGetNextContext()   *** DEPRECATED ***
472  *
473  *  Availability:
474  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
475  *    CarbonLib:        not available
476  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
477  }
DSpGetNextContextnull478 function DSpGetNextContext( inCurrentContext: DSpContextReference; var outContext: DSpContextReference ): OSStatus; external name '_DSpGetNextContext';
479 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
480 
481 
482 {
483  *  DSpGetCurrentContext()   *** DEPRECATED ***
484  *
485  *  Availability:
486  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
487  *    CarbonLib:        not available
488  *    Non-Carbon CFM:   in DrawSprocketLib 1.7 and later
489  }
DSpGetCurrentContextnull490 function DSpGetCurrentContext( inDisplayID: DisplayIDType; var outContext: DSpContextReference ): OSStatus; external name '_DSpGetCurrentContext';
491 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
492 
493 
494 {
495  *  DSpFindBestContext()   *** DEPRECATED ***
496  *
497  *  Availability:
498  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
499  *    CarbonLib:        not available
500  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
501  }
DSpFindBestContextnull502 function DSpFindBestContext( inDesiredAttributes: DSpContextAttributesPtr; var outContext: DSpContextReference ): OSStatus; external name '_DSpFindBestContext';
503 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
504 
505 
506 {
507  *  DSpFindBestContextOnDisplayID()   *** DEPRECATED ***
508  *
509  *  Availability:
510  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
511  *    CarbonLib:        not available
512  *    Non-Carbon CFM:   in DrawSprocketLib 1.7 and later
513  }
DSpFindBestContextOnDisplayIDnull514 function DSpFindBestContextOnDisplayID( inDesiredAttributes: DSpContextAttributesPtr; var outContext: DSpContextReference; inDisplayID: DisplayIDType ): OSStatus; external name '_DSpFindBestContextOnDisplayID';
515 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
516 
517 
518 {
519  *  DSpCanUserSelectContext()
520  *
521  *  Availability:
522  *    Mac OS X:         not available
523  *    CarbonLib:        not available
524  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
525  }
526 
527 
528 {
529  *  DSpUserSelectContext()
530  *
531  *  Availability:
532  *    Mac OS X:         not available
533  *    CarbonLib:        not available
534  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
535  }
536 
537 
538 {
539  *  DSpProcessEvent()   *** DEPRECATED ***
540  *
541  *  Availability:
542  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
543  *    CarbonLib:        not available
544  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
545  }
DSpProcessEventnull546 function DSpProcessEvent( var inEvent: EventRecord; var outEventWasProcessed: Boolean ): OSStatus; external name '_DSpProcessEvent';
547 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
548 
549 
550 {
551  *  DSpSetBlankingColor()   *** DEPRECATED ***
552  *
553  *  Availability:
554  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
555  *    CarbonLib:        not available
556  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
557  }
DSpSetBlankingColornull558 function DSpSetBlankingColor( const (*var*) inRGBColor: RGBColor ): OSStatus; external name '_DSpSetBlankingColor';
559 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
560 
561 
562 {
563  *  DSpSetDebugMode()   *** DEPRECATED ***
564  *
565  *  Availability:
566  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
567  *    CarbonLib:        not available
568  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
569  }
DSpSetDebugModenull570 function DSpSetDebugMode( inDebugMode: Boolean ): OSStatus; external name '_DSpSetDebugMode';
571 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
572 
573 
574 {
575  *  DSpFindContextFromPoint()   *** DEPRECATED ***
576  *
577  *  Availability:
578  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
579  *    CarbonLib:        not available
580  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
581  }
DSpFindContextFromPointnull582 function DSpFindContextFromPoint( inGlobalPoint: Point; var outContext: DSpContextReference ): OSStatus; external name '_DSpFindContextFromPoint';
583 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
584 
585 
586 {
587  *  DSpGetMouse()   *** DEPRECATED ***
588  *
589  *  Availability:
590  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
591  *    CarbonLib:        not available
592  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
593  }
DSpGetMousenull594 function DSpGetMouse( var outGlobalPoint: Point ): OSStatus; external name '_DSpGetMouse';
595 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
596 
597 
598 {
599 ** alternate buffer operations
600 }
601 {
602  *  DSpAltBuffer_New()
603  *
604  *  Availability:
605  *    Mac OS X:         not available
606  *    CarbonLib:        not available
607  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
608  }
609 
610 
611 {
612  *  DSpAltBuffer_Dispose()
613  *
614  *  Availability:
615  *    Mac OS X:         not available
616  *    CarbonLib:        not available
617  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
618  }
619 
620 
621 {
622  *  DSpAltBuffer_InvalRect()
623  *
624  *  Availability:
625  *    Mac OS X:         not available
626  *    CarbonLib:        not available
627  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
628  }
629 
630 
631 {
632  *  DSpAltBuffer_GetCGrafPtr()
633  *
634  *  Availability:
635  *    Mac OS X:         not available
636  *    CarbonLib:        not available
637  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
638  }
639 
640 
641 {
642 ** context operations
643 }
644 { general }
645 {
646  *  DSpContext_GetAttributes()   *** DEPRECATED ***
647  *
648  *  Availability:
649  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
650  *    CarbonLib:        not available
651  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
652  }
DSpContext_GetAttributesnull653 function DSpContext_GetAttributes( inContext: DSpContextReferenceConst; outAttributes: DSpContextAttributesPtr ): OSStatus; external name '_DSpContext_GetAttributes';
654 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
655 
656 
657 {
658  *  DSpContext_Reserve()   *** DEPRECATED ***
659  *
660  *  Availability:
661  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
662  *    CarbonLib:        not available
663  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
664  }
DSpContext_Reservenull665 function DSpContext_Reserve( inContext: DSpContextReference; inDesiredAttributes: DSpContextAttributesPtr ): OSStatus; external name '_DSpContext_Reserve';
666 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
667 
668 
669 {
670  *  DSpContext_Queue()   *** DEPRECATED ***
671  *
672  *  Availability:
673  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
674  *    CarbonLib:        not available
675  *    Non-Carbon CFM:   in DrawSprocketLib 1.7 and later
676  }
DSpContext_Queuenull677 function DSpContext_Queue( inParentContext: DSpContextReference; inChildContext: DSpContextReference; inDesiredAttributes: DSpContextAttributesPtr ): OSStatus; external name '_DSpContext_Queue';
678 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
679 
680 
681 {
682  *  DSpContext_Switch()   *** DEPRECATED ***
683  *
684  *  Availability:
685  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
686  *    CarbonLib:        not available
687  *    Non-Carbon CFM:   in DrawSprocketLib 1.7 and later
688  }
DSpContext_Switchnull689 function DSpContext_Switch( inOldContext: DSpContextReference; inNewContext: DSpContextReference ): OSStatus; external name '_DSpContext_Switch';
690 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
691 
692 
693 {
694  *  DSpContext_Release()   *** DEPRECATED ***
695  *
696  *  Availability:
697  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
698  *    CarbonLib:        not available
699  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
700  }
DSpContext_Releasenull701 function DSpContext_Release( inContext: DSpContextReference ): OSStatus; external name '_DSpContext_Release';
702 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
703 
704 
705 {
706  *  DSpContext_Dispose()   *** DEPRECATED ***
707  *
708  *  Availability:
709  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
710  *    CarbonLib:        not available
711  *    Non-Carbon CFM:   not available
712  }
DSpContext_Disposenull713 function DSpContext_Dispose( inContext: DSpContextReference ): OSStatus; external name '_DSpContext_Dispose';
714 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
715 
716 
717 {
718  *  DSpContext_GetDisplayID()   *** DEPRECATED ***
719  *
720  *  Availability:
721  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
722  *    CarbonLib:        not available
723  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
724  }
DSpContext_GetDisplayIDnull725 function DSpContext_GetDisplayID( inContext: DSpContextReferenceConst; var outDisplayID: DisplayIDType ): OSStatus; external name '_DSpContext_GetDisplayID';
726 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
727 
728 
729 {
730  *  DSpContext_GlobalToLocal()   *** DEPRECATED ***
731  *
732  *  Availability:
733  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
734  *    CarbonLib:        not available
735  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
736  }
DSpContext_GlobalToLocalnull737 function DSpContext_GlobalToLocal( inContext: DSpContextReferenceConst; var ioPoint: Point ): OSStatus; external name '_DSpContext_GlobalToLocal';
738 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
739 
740 
741 {
742  *  DSpContext_LocalToGlobal()   *** DEPRECATED ***
743  *
744  *  Availability:
745  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
746  *    CarbonLib:        not available
747  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
748  }
DSpContext_LocalToGlobalnull749 function DSpContext_LocalToGlobal( inContext: DSpContextReferenceConst; var ioPoint: Point ): OSStatus; external name '_DSpContext_LocalToGlobal';
750 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
751 
752 
753 {
754  *  DSpContext_SetVBLProc()
755  *
756  *  Availability:
757  *    Mac OS X:         not available
758  *    CarbonLib:        not available
759  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
760  }
761 
762 
763 {
764  *  DSpContext_GetFlattenedSize()
765  *
766  *  Availability:
767  *    Mac OS X:         not available
768  *    CarbonLib:        not available
769  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
770  }
771 
772 
773 {
774  *  DSpContext_Flatten()
775  *
776  *  Availability:
777  *    Mac OS X:         not available
778  *    CarbonLib:        not available
779  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
780  }
781 
782 
783 {
784  *  DSpContext_Restore()
785  *
786  *  Availability:
787  *    Mac OS X:         not available
788  *    CarbonLib:        not available
789  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
790  }
791 
792 
793 {
794  *  DSpContext_GetMonitorFrequency()   *** DEPRECATED ***
795  *
796  *  Availability:
797  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
798  *    CarbonLib:        not available
799  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
800  }
DSpContext_GetMonitorFrequencynull801 function DSpContext_GetMonitorFrequency( inContext: DSpContextReferenceConst; var outFrequency: Fixed ): OSStatus; external name '_DSpContext_GetMonitorFrequency';
802 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
803 
804 
805 {
806  *  DSpContext_SetMaxFrameRate()
807  *
808  *  Availability:
809  *    Mac OS X:         not available
810  *    CarbonLib:        not available
811  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
812  }
813 
814 
815 {
816  *  DSpContext_GetMaxFrameRate()
817  *
818  *  Availability:
819  *    Mac OS X:         not available
820  *    CarbonLib:        not available
821  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
822  }
823 
824 
825 {
826  *  DSpContext_SetState()   *** DEPRECATED ***
827  *
828  *  Availability:
829  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
830  *    CarbonLib:        not available
831  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
832  }
DSpContext_SetStatenull833 function DSpContext_SetState( inContext: DSpContextReference; inState: DSpContextState ): OSStatus; external name '_DSpContext_SetState';
834 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
835 
836 
837 {
838  *  DSpContext_GetState()   *** DEPRECATED ***
839  *
840  *  Availability:
841  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
842  *    CarbonLib:        not available
843  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
844  }
DSpContext_GetStatenull845 function DSpContext_GetState( inContext: DSpContextReferenceConst; var outState: DSpContextState ): OSStatus; external name '_DSpContext_GetState';
846 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
847 
848 
849 {
850  *  DSpContext_IsBusy()   *** DEPRECATED ***
851  *
852  *  Availability:
853  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
854  *    CarbonLib:        not available
855  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
856  }
DSpContext_IsBusynull857 function DSpContext_IsBusy( inContext: DSpContextReferenceConst; var outBusyFlag: Boolean ): OSStatus; external name '_DSpContext_IsBusy';
858 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
859 
860 
861 { dirty rectangles }
862 {
863  *  DSpContext_SetDirtyRectGridSize()
864  *
865  *  Availability:
866  *    Mac OS X:         not available
867  *    CarbonLib:        not available
868  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
869  }
870 
871 
872 {
873  *  DSpContext_GetDirtyRectGridSize()
874  *
875  *  Availability:
876  *    Mac OS X:         not available
877  *    CarbonLib:        not available
878  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
879  }
880 
881 
882 {
883  *  DSpContext_GetDirtyRectGridUnits()
884  *
885  *  Availability:
886  *    Mac OS X:         not available
887  *    CarbonLib:        not available
888  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
889  }
890 
891 
892 {
893  *  DSpContext_InvalBackBufferRect()
894  *
895  *  Availability:
896  *    Mac OS X:         not available
897  *    CarbonLib:        not available
898  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
899  }
900 
901 
902 { underlays }
903 {
904  *  DSpContext_SetUnderlayAltBuffer()
905  *
906  *  Availability:
907  *    Mac OS X:         not available
908  *    CarbonLib:        not available
909  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
910  }
911 
912 
913 {
914  *  DSpContext_GetUnderlayAltBuffer()
915  *
916  *  Availability:
917  *    Mac OS X:         not available
918  *    CarbonLib:        not available
919  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
920  }
921 
922 
923 { gamma }
924 {
925  *  DSpContext_FadeGammaOut()   *** DEPRECATED ***
926  *
927  *  Availability:
928  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
929  *    CarbonLib:        not available
930  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
931  }
DSpContext_FadeGammaOutnull932 function DSpContext_FadeGammaOut( inContext: DSpContextReference; var inZeroIntensityColor: RGBColor ): OSStatus; external name '_DSpContext_FadeGammaOut';
933 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
934 
935 
936 {
937  *  DSpContext_FadeGammaIn()   *** DEPRECATED ***
938  *
939  *  Availability:
940  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
941  *    CarbonLib:        not available
942  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
943  }
DSpContext_FadeGammaInnull944 function DSpContext_FadeGammaIn( inContext: DSpContextReference; var inZeroIntensityColor: RGBColor ): OSStatus; external name '_DSpContext_FadeGammaIn';
945 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
946 
947 
948 {
949  *  DSpContext_FadeGamma()   *** DEPRECATED ***
950  *
951  *  Availability:
952  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
953  *    CarbonLib:        not available
954  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
955  }
DSpContext_FadeGammanull956 function DSpContext_FadeGamma( inContext: DSpContextReference; inPercentOfOriginalIntensity: SInt32; var inZeroIntensityColor: RGBColor ): OSStatus; external name '_DSpContext_FadeGamma';
957 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
958 
959 
960 { buffering }
961 {
962  *  DSpContext_SwapBuffers()   *** DEPRECATED ***
963  *
964  *  Availability:
965  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
966  *    CarbonLib:        not available
967  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
968  }
DSpContext_SwapBuffersnull969 function DSpContext_SwapBuffers( inContext: DSpContextReference; inBusyProc: DSpCallbackUPP; inUserRefCon: UnivPtr ): OSStatus; external name '_DSpContext_SwapBuffers';
970 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
971 
972 
973 {
974  *  DSpContext_GetBackBuffer()   *** DEPRECATED ***
975  *
976  *  Availability:
977  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
978  *    CarbonLib:        not available
979  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
980  }
DSpContext_GetBackBuffernull981 function DSpContext_GetBackBuffer( inContext: DSpContextReference; inBufferKind: DSpBufferKind; var outBackBuffer: CGrafPtr ): OSStatus; external name '_DSpContext_GetBackBuffer';
982 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
983 
984 
985 {
986  *  DSpContext_GetFrontBuffer()   *** DEPRECATED ***
987  *
988  *  Availability:
989  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
990  *    CarbonLib:        not available
991  *    Non-Carbon CFM:   in DrawSprocketLib 1.1 and later
992  }
DSpContext_GetFrontBuffernull993 function DSpContext_GetFrontBuffer( inContext: DSpContextReferenceConst; var outFrontBuffer: CGrafPtr ): OSStatus; external name '_DSpContext_GetFrontBuffer';
994 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
995 
996 
997 { clut operations }
998 {
999  *  DSpContext_SetCLUTEntries()   *** DEPRECATED ***
1000  *
1001  *  Availability:
1002  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
1003  *    CarbonLib:        not available
1004  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
1005  }
DSpContext_SetCLUTEntriesnull1006 function DSpContext_SetCLUTEntries( inContext: DSpContextReference; const (*var*) inEntries: ColorSpec; inStartingEntry: UInt16; inLastEntry: UInt16 ): OSStatus; external name '_DSpContext_SetCLUTEntries';
1007 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1008 
1009 
1010 {
1011  *  DSpContext_GetCLUTEntries()   *** DEPRECATED ***
1012  *
1013  *  Availability:
1014  *    Mac OS X:         in version 10.0 and later in DrawSprocket.framework but deprecated in 10.4
1015  *    CarbonLib:        not available
1016  *    Non-Carbon CFM:   in DrawSprocketLib 1.0 and later
1017  }
DSpContext_GetCLUTEntriesnull1018 function DSpContext_GetCLUTEntries( inContext: DSpContextReferenceConst; var outEntries: ColorSpec; inStartingEntry: UInt16; inLastEntry: UInt16 ): OSStatus; external name '_DSpContext_GetCLUTEntries';
1019 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1020 
1021 
1022 { blit operations }
1023 {
1024  *  DSpBlit_Faster()
1025  *
1026  *  Availability:
1027  *    Mac OS X:         not available
1028  *    CarbonLib:        not available
1029  *    Non-Carbon CFM:   in DrawSprocketLib 1.1 and later
1030  }
1031 
1032 
1033 {
1034  *  DSpBlit_Fastest()
1035  *
1036  *  Availability:
1037  *    Mac OS X:         not available
1038  *    CarbonLib:        not available
1039  *    Non-Carbon CFM:   in DrawSprocketLib 1.1 and later
1040  }
1041 
1042 
1043 {$endc} {TARGET_OS_MAC}
1044 {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
1045 
1046 end.
1047 {$endc} {not MACOSALLINCLUDE}
1048