1 {
2 File: QD/QDOffscreen.h
3
4 Contains: Quickdraw Offscreen GWorld Interfaces.
5
6 Version: Quickdraw-262~1
7
8 Copyright: � 1985-2008 by Apple 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 QDOffscreen;
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,MacErrors,QuickdrawTypes;
217 {$endc} {not MACOSALLINCLUDE}
218
219
220 {$ifc TARGET_OS_MAC}
221
222 {$ALIGN POWER}
223
224
225 {
226 NOTE: With the exception of noNewDeviceBit and nativeEndianPixMapBit,
227 the following definitions for the GWorldFlags parameter in NewGWorld
228 are all obsolete on Mac OS X, and ignored.
229 }
230 const
231 pixPurgeBit = 0;
232 noNewDeviceBit = 1;
233 useTempMemBit = 2;
234 keepLocalBit = 3;
235 useDistantHdwrMemBit = 4;
236 useLocalHdwrMemBit = 5;
237 pixelsPurgeableBit = 6;
238 pixelsLockedBit = 7;
239 nativeEndianPixMapBit = 8;
240 mapPixBit = 16;
241 newDepthBit = 17;
242 alignPixBit = 18;
243 newRowBytesBit = 19;
244 reallocPixBit = 20;
245 clipPixBit = 28;
246 stretchPixBit = 29;
247 ditherPixBit = 30;
248 gwFlagErrBit = 31;
249
250 const
251 pixPurge = 1 shl pixPurgeBit;
252 noNewDevice = 1 shl noNewDeviceBit;
253 useTempMem = 1 shl useTempMemBit;
254 keepLocal = 1 shl keepLocalBit;
255 useDistantHdwrMem = 1 shl useDistantHdwrMemBit;
256 useLocalHdwrMem = 1 shl useLocalHdwrMemBit;
257 pixelsPurgeable = 1 shl pixelsPurgeableBit;
258 pixelsLocked = 1 shl pixelsLockedBit;
259 kNativeEndianPixMap = 1 shl nativeEndianPixMapBit;
260 kAllocDirectDrawSurface = 1 shl 14;
261 mapPix = 1 shl mapPixBit;
262 newDepth = 1 shl newDepthBit;
263 alignPix = 1 shl alignPixBit;
264 newRowBytes = 1 shl newRowBytesBit;
265 reallocPix = 1 shl reallocPixBit;
266 clipPix = 1 shl clipPixBit;
267 stretchPix = 1 shl stretchPixBit;
268 ditherPix = 1 shl ditherPixBit;
269 gwFlagErr = 1 shl gwFlagErrBit;
270
271 type
272 GWorldFlags = UNSIGNEDLONG;
273 { Type definition of a GWorldPtr }
274 type
275 GWorldPtr = CGrafPtr;
276 {$ifc not TARGET_CPU_64}
277 {
278 * NewGWorld() *** DEPRECATED ***
279 *
280 * Availability:
281 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
282 * CarbonLib: in CarbonLib 1.0 and later
283 * Non-Carbon CFM: in InterfaceLib 7.1 and later
284 }
NewGWorldnull285 function NewGWorld( var offscreenGWorld: GWorldPtr; PixelDepth: SInt16; const (*var*) boundsRect: Rect; cTable: CTabHandle { can be NULL }; aGDevice: GDHandle { can be NULL }; flags: GWorldFlags ): QDErr; external name '_NewGWorld';
286 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
287
288
289 { GDevice attribute bits for Carbon and QuickTime 3.0}
290 {$endc} {not TARGET_CPU_64}
291
292 const
293 deviceIsIndirect = 1 shl 0;
294 deviceNeedsLock = 1 shl 1;
295 deviceIsStatic = 1 shl 2;
296 deviceIsExternalBuffer = 1 shl 3;
297 deviceIsDDSurface = 1 shl 4;
298 deviceIsDCISurface = 1 shl 5;
299 deviceIsGDISurface = 1 shl 6;
300 deviceIsAScreen = 1 shl 7;
301 deviceIsOverlaySurface = 1 shl 8;
302
303 {$ifc TARGET_OS_WIN32}
304 {
305 * GetGDeviceSurface()
306 *
307 * Availability:
308 * Mac OS X: not available
309 * CarbonLib: not available
310 * Non-Carbon CFM: not available
311 }
312
313
314 {
315 * GetGDeviceAttributes()
316 *
317 * Availability:
318 * Mac OS X: not available
319 * CarbonLib: not available
320 * Non-Carbon CFM: not available
321 }
322
323
324 { to allocate non-mac-rgb GWorlds use QTNewGWorld (ImageCompression.h) }
325 {
326 * NewGWorldFromHBITMAP()
327 *
328 * Availability:
329 * Mac OS X: not available
330 * CarbonLib: not available
331 * Non-Carbon CFM: not available
332 }
333
334
335 {$endc} {TARGET_OS_WIN32}
336
337 {$ifc not TARGET_CPU_64}
338 {
339 * NewGWorldFromPtr() *** DEPRECATED ***
340 *
341 * Availability:
342 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
343 * CarbonLib: in CarbonLib 1.1 and later
344 * Non-Carbon CFM: not available
345 }
NewGWorldFromPtrnull346 function NewGWorldFromPtr( var offscreenGWorld: GWorldPtr; PixelFormat: UInt32; const (*var*) boundsRect: Rect; cTable: CTabHandle { can be NULL }; aGDevice: GDHandle { can be NULL }; flags: GWorldFlags; newBuffer: Ptr; rowBytes: SInt32 ): QDErr; external name '_NewGWorldFromPtr';
347 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
348
349
350 {
351 * LockPixels() *** DEPRECATED ***
352 *
353 * Availability:
354 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
355 * CarbonLib: in CarbonLib 1.0 and later
356 * Non-Carbon CFM: in InterfaceLib 7.1 and later
357 }
LockPixelsnull358 function LockPixels( pm: PixMapHandle ): Boolean; external name '_LockPixels';
359 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
360
361
362 {
363 * UnlockPixels() *** DEPRECATED ***
364 *
365 * Availability:
366 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
367 * CarbonLib: in CarbonLib 1.0 and later
368 * Non-Carbon CFM: in InterfaceLib 7.1 and later
369 }
370 procedure UnlockPixels( pm: PixMapHandle ); external name '_UnlockPixels';
371 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
372
373
374 {
375 * UpdateGWorld() *** DEPRECATED ***
376 *
377 * Availability:
378 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
379 * CarbonLib: in CarbonLib 1.0 and later
380 * Non-Carbon CFM: in InterfaceLib 7.1 and later
381 }
UpdateGWorldnull382 function UpdateGWorld( var offscreenGWorld: GWorldPtr; pixelDepth: SInt16; const (*var*) boundsRect: Rect; cTable: CTabHandle; aGDevice: GDHandle { can be NULL }; flags: GWorldFlags ): GWorldFlags; external name '_UpdateGWorld';
383 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
384
385
386 {
387 * DisposeGWorld() *** DEPRECATED ***
388 *
389 * Availability:
390 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
391 * CarbonLib: in CarbonLib 1.0 and later
392 * Non-Carbon CFM: in InterfaceLib 7.1 and later
393 }
394 procedure DisposeGWorld( offscreenGWorld: GWorldPtr ); external name '_DisposeGWorld';
395 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
396
397
398 {
399 * GetGWorld() *** DEPRECATED ***
400 *
401 * Availability:
402 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
403 * CarbonLib: in CarbonLib 1.0 and later
404 * Non-Carbon CFM: in InterfaceLib 7.1 and later
405 }
406 procedure GetGWorld( var port: CGrafPtr; var gdh: GDHandle ); external name '_GetGWorld';
407 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
408
409
410 {
411 * SetGWorld() *** DEPRECATED ***
412 *
413 * Availability:
414 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
415 * CarbonLib: in CarbonLib 1.0 and later
416 * Non-Carbon CFM: in InterfaceLib 7.1 and later
417 }
418 procedure SetGWorld( port: CGrafPtr; gdh: GDHandle ); external name '_SetGWorld';
419 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
420
421
422 {
423 * CTabChanged() *** DEPRECATED ***
424 *
425 * Availability:
426 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
427 * CarbonLib: in CarbonLib 1.0 and later
428 * Non-Carbon CFM: in InterfaceLib 7.1 and later
429 }
430 procedure CTabChanged( ctab: CTabHandle ); external name '_CTabChanged';
431 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
432
433
434 {
435 * PixPatChanged() *** DEPRECATED ***
436 *
437 * Availability:
438 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
439 * CarbonLib: in CarbonLib 1.0 and later
440 * Non-Carbon CFM: in InterfaceLib 7.1 and later
441 }
442 procedure PixPatChanged( ppat: PixPatHandle ); external name '_PixPatChanged';
443 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
444
445
446 {
447 * PortChanged() *** DEPRECATED ***
448 *
449 * Availability:
450 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
451 * CarbonLib: in CarbonLib 1.0 and later
452 * Non-Carbon CFM: in InterfaceLib 7.1 and later
453 }
454 procedure PortChanged( port: GrafPtr ); external name '_PortChanged';
455 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
456
457
458 {
459 * GDeviceChanged() *** DEPRECATED ***
460 *
461 * Availability:
462 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
463 * CarbonLib: in CarbonLib 1.0 and later
464 * Non-Carbon CFM: in InterfaceLib 7.1 and later
465 }
466 procedure GDeviceChanged( gdh: GDHandle ); external name '_GDeviceChanged';
467 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
468
469
470 {
471 * AllowPurgePixels() *** DEPRECATED ***
472 *
473 * Availability:
474 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
475 * CarbonLib: in CarbonLib 1.0 and later
476 * Non-Carbon CFM: in InterfaceLib 7.1 and later
477 }
478 procedure AllowPurgePixels( pm: PixMapHandle ); external name '_AllowPurgePixels';
479 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
480
481
482 {
483 * NoPurgePixels() *** DEPRECATED ***
484 *
485 * Availability:
486 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
487 * CarbonLib: in CarbonLib 1.0 and later
488 * Non-Carbon CFM: in InterfaceLib 7.1 and later
489 }
490 procedure NoPurgePixels( pm: PixMapHandle ); external name '_NoPurgePixels';
491 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
492
493
494 {
495 * GetPixelsState() *** DEPRECATED ***
496 *
497 * Availability:
498 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
499 * CarbonLib: in CarbonLib 1.0 and later
500 * Non-Carbon CFM: in InterfaceLib 7.1 and later
501 }
GetPixelsStatenull502 function GetPixelsState( pm: PixMapHandle ): GWorldFlags; external name '_GetPixelsState';
503 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
504
505
506 {
507 * SetPixelsState() *** DEPRECATED ***
508 *
509 * Availability:
510 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
511 * CarbonLib: in CarbonLib 1.0 and later
512 * Non-Carbon CFM: in InterfaceLib 7.1 and later
513 }
514 procedure SetPixelsState( pm: PixMapHandle; state: GWorldFlags ); external name '_SetPixelsState';
515 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
516
517
518 {
519 * GetPixBaseAddr()
520 *
521 * Availability:
522 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
523 * CarbonLib: in CarbonLib 1.0 and later
524 * Non-Carbon CFM: in InterfaceLib 7.1 and later
525 }
GetPixBaseAddrnull526 function GetPixBaseAddr( pm: PixMapHandle ): Ptr; external name '_GetPixBaseAddr';
527 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
528
529
530 {
531 * GetPixRowBytes() *** DEPRECATED ***
532 *
533 * Availability:
534 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
535 * CarbonLib: in CarbonLib 1.0 and later
536 * Non-Carbon CFM: in InterfaceLib 8.5 and later
537 }
GetPixRowBytesnull538 function GetPixRowBytes( pm: PixMapHandle ): SInt32; external name '_GetPixRowBytes';
539 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
540
541
542 {
543 * NewScreenBuffer() *** DEPRECATED ***
544 *
545 * Availability:
546 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
547 * CarbonLib: in CarbonLib 1.0 and later
548 * Non-Carbon CFM: in InterfaceLib 7.1 and later
549 }
NewScreenBuffernull550 function NewScreenBuffer( const (*var*) globalRect: Rect; purgeable: Boolean; var gdh: GDHandle; var offscreenPixMap: PixMapHandle ): QDErr; external name '_NewScreenBuffer';
551 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
552
553
554 {
555 * DisposeScreenBuffer() *** DEPRECATED ***
556 *
557 * Availability:
558 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
559 * CarbonLib: in CarbonLib 1.0 and later
560 * Non-Carbon CFM: in InterfaceLib 7.1 and later
561 }
562 procedure DisposeScreenBuffer( offscreenPixMap: PixMapHandle ); external name '_DisposeScreenBuffer';
563 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
564
565
566 {
567 * GetGWorldDevice() *** DEPRECATED ***
568 *
569 * Availability:
570 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
571 * CarbonLib: in CarbonLib 1.0 and later
572 * Non-Carbon CFM: in InterfaceLib 7.1 and later
573 }
GetGWorldDevicenull574 function GetGWorldDevice( offscreenGWorld: GWorldPtr ): GDHandle; external name '_GetGWorldDevice';
575 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
576
577
578 {
579 * QDDone() *** DEPRECATED ***
580 *
581 * Availability:
582 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
583 * CarbonLib: in CarbonLib 1.0 and later
584 * Non-Carbon CFM: in InterfaceLib 7.1 and later
585 }
QDDonenull586 function QDDone( port: GrafPtr ): Boolean; external name '_QDDone';
587 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
588
589
590 {
591 * OffscreenVersion() *** DEPRECATED ***
592 *
593 * Availability:
594 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
595 * CarbonLib: in CarbonLib 1.0 and later
596 * Non-Carbon CFM: in InterfaceLib 7.1 and later
597 }
OffscreenVersionnull598 function OffscreenVersion: SInt32; external name '_OffscreenVersion';
599 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
600
601
602 {
603 * NewTempScreenBuffer() *** DEPRECATED ***
604 *
605 * Availability:
606 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
607 * CarbonLib: in CarbonLib 1.0 and later
608 * Non-Carbon CFM: in InterfaceLib 7.1 and later
609 }
NewTempScreenBuffernull610 function NewTempScreenBuffer( const (*var*) globalRect: Rect; purgeable: Boolean; var gdh: GDHandle; var offscreenPixMap: PixMapHandle ): QDErr; external name '_NewTempScreenBuffer';
611 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
612
613
614 {
615 * PixMap32Bit() *** DEPRECATED ***
616 *
617 * Availability:
618 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
619 * CarbonLib: in CarbonLib 1.0 and later
620 * Non-Carbon CFM: in InterfaceLib 7.1 and later
621 }
PixMap32Bitnull622 function PixMap32Bit( pmHandle: PixMapHandle ): Boolean; external name '_PixMap32Bit';
623 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
624
625
626 {
627 * GetGWorldPixMap() *** DEPRECATED ***
628 *
629 * Availability:
630 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
631 * CarbonLib: in CarbonLib 1.0 and later
632 * Non-Carbon CFM: in InterfaceLib 7.1 and later
633 }
GetGWorldPixMapnull634 function GetGWorldPixMap( offscreenGWorld: GWorldPtr ): PixMapHandle; external name '_GetGWorldPixMap';
635 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
636
637
638 {$endc} {not TARGET_CPU_64}
639
640 {$endc} {TARGET_OS_MAC}
641 {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
642
643 end.
644 {$endc} {not MACOSALLINCLUDE}
645