1 {
2 File: QD/QuickdrawAPI.h
3
4 Contains: API Prototypes from the former Quickdraw.i
5
6 Version: Quickdraw-262~1
7
8 Copyright: � 2005-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: Gale R Paeper, <gpaeper@empirenet.com>, 2007 }
17 { Pascal Translation Updated: Jonas Maebe, <jonas@freepascal.org>, October 2009 }
18 {
19 Modified for use with Free Pascal
20 Version 308
21 Please report any bugs to <gpc@microbizz.nl>
22 }
23
24 {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
25 {$mode macpas}
26 {$modeswitch cblocks}
27 {$packenum 1}
28 {$macro on}
29 {$inline on}
30 {$calling mwpascal}
31
32 unit Quickdraw;
33 interface
34 {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
35 {$setc GAP_INTERFACES_VERSION := $0308}
36
37 {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
38 {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
39 {$endc}
40
41 {$ifc defined CPUPOWERPC and defined CPUI386}
42 {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
43 {$endc}
44 {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
45 {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
46 {$endc}
47
48 {$ifc not defined __ppc__ and defined CPUPOWERPC32}
49 {$setc __ppc__ := 1}
50 {$elsec}
51 {$setc __ppc__ := 0}
52 {$endc}
53 {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
54 {$setc __ppc64__ := 1}
55 {$elsec}
56 {$setc __ppc64__ := 0}
57 {$endc}
58 {$ifc not defined __i386__ and defined CPUI386}
59 {$setc __i386__ := 1}
60 {$elsec}
61 {$setc __i386__ := 0}
62 {$endc}
63 {$ifc not defined __x86_64__ and defined CPUX86_64}
64 {$setc __x86_64__ := 1}
65 {$elsec}
66 {$setc __x86_64__ := 0}
67 {$endc}
68 {$ifc not defined __arm__ and defined CPUARM}
69 {$setc __arm__ := 1}
70 {$elsec}
71 {$setc __arm__ := 0}
72 {$endc}
73 {$ifc not defined __arm64__ and defined CPUAARCH64}
74 {$setc __arm64__ := 1}
75 {$elsec}
76 {$setc __arm64__ := 0}
77 {$endc}
78
79 {$ifc defined cpu64}
80 {$setc __LP64__ := 1}
81 {$elsec}
82 {$setc __LP64__ := 0}
83 {$endc}
84
85
86 {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
87 {$error Conflicting definitions for __ppc__ and __i386__}
88 {$endc}
89
90 {$ifc defined __ppc__ and __ppc__}
91 {$setc TARGET_CPU_PPC := TRUE}
92 {$setc TARGET_CPU_PPC64 := FALSE}
93 {$setc TARGET_CPU_X86 := FALSE}
94 {$setc TARGET_CPU_X86_64 := FALSE}
95 {$setc TARGET_CPU_ARM := FALSE}
96 {$setc TARGET_CPU_ARM64 := FALSE}
97 {$setc TARGET_OS_MAC := TRUE}
98 {$setc TARGET_OS_IPHONE := FALSE}
99 {$setc TARGET_IPHONE_SIMULATOR := FALSE}
100 {$setc TARGET_OS_EMBEDDED := FALSE}
101 {$elifc defined __ppc64__ and __ppc64__}
102 {$setc TARGET_CPU_PPC := FALSE}
103 {$setc TARGET_CPU_PPC64 := TRUE}
104 {$setc TARGET_CPU_X86 := FALSE}
105 {$setc TARGET_CPU_X86_64 := FALSE}
106 {$setc TARGET_CPU_ARM := FALSE}
107 {$setc TARGET_CPU_ARM64 := FALSE}
108 {$setc TARGET_OS_MAC := TRUE}
109 {$setc TARGET_OS_IPHONE := FALSE}
110 {$setc TARGET_IPHONE_SIMULATOR := FALSE}
111 {$setc TARGET_OS_EMBEDDED := FALSE}
112 {$elifc defined __i386__ and __i386__}
113 {$setc TARGET_CPU_PPC := FALSE}
114 {$setc TARGET_CPU_PPC64 := FALSE}
115 {$setc TARGET_CPU_X86 := TRUE}
116 {$setc TARGET_CPU_X86_64 := FALSE}
117 {$setc TARGET_CPU_ARM := FALSE}
118 {$setc TARGET_CPU_ARM64 := FALSE}
119 {$ifc defined iphonesim}
120 {$setc TARGET_OS_MAC := FALSE}
121 {$setc TARGET_OS_IPHONE := TRUE}
122 {$setc TARGET_IPHONE_SIMULATOR := TRUE}
123 {$elsec}
124 {$setc TARGET_OS_MAC := TRUE}
125 {$setc TARGET_OS_IPHONE := FALSE}
126 {$setc TARGET_IPHONE_SIMULATOR := FALSE}
127 {$endc}
128 {$setc TARGET_OS_EMBEDDED := FALSE}
129 {$elifc defined __x86_64__ and __x86_64__}
130 {$setc TARGET_CPU_PPC := FALSE}
131 {$setc TARGET_CPU_PPC64 := FALSE}
132 {$setc TARGET_CPU_X86 := FALSE}
133 {$setc TARGET_CPU_X86_64 := TRUE}
134 {$setc TARGET_CPU_ARM := FALSE}
135 {$setc TARGET_CPU_ARM64 := FALSE}
136 {$ifc defined iphonesim}
137 {$setc TARGET_OS_MAC := FALSE}
138 {$setc TARGET_OS_IPHONE := TRUE}
139 {$setc TARGET_IPHONE_SIMULATOR := TRUE}
140 {$elsec}
141 {$setc TARGET_OS_MAC := TRUE}
142 {$setc TARGET_OS_IPHONE := FALSE}
143 {$setc TARGET_IPHONE_SIMULATOR := FALSE}
144 {$endc}
145 {$setc TARGET_OS_EMBEDDED := FALSE}
146 {$elifc defined __arm__ and __arm__}
147 {$setc TARGET_CPU_PPC := FALSE}
148 {$setc TARGET_CPU_PPC64 := FALSE}
149 {$setc TARGET_CPU_X86 := FALSE}
150 {$setc TARGET_CPU_X86_64 := FALSE}
151 {$setc TARGET_CPU_ARM := TRUE}
152 {$setc TARGET_CPU_ARM64 := FALSE}
153 {$setc TARGET_OS_MAC := FALSE}
154 {$setc TARGET_OS_IPHONE := TRUE}
155 {$setc TARGET_IPHONE_SIMULATOR := FALSE}
156 {$setc TARGET_OS_EMBEDDED := TRUE}
157 {$elifc defined __arm64__ and __arm64__}
158 {$setc TARGET_CPU_PPC := FALSE}
159 {$setc TARGET_CPU_PPC64 := FALSE}
160 {$setc TARGET_CPU_X86 := FALSE}
161 {$setc TARGET_CPU_X86_64 := FALSE}
162 {$setc TARGET_CPU_ARM := FALSE}
163 {$setc TARGET_CPU_ARM64 := TRUE}
164 {$ifc defined ios}
165 {$setc TARGET_OS_MAC := FALSE}
166 {$setc TARGET_OS_IPHONE := TRUE}
167 {$setc TARGET_OS_EMBEDDED := TRUE}
168 {$elsec}
169 {$setc TARGET_OS_MAC := TRUE}
170 {$setc TARGET_OS_IPHONE := FALSE}
171 {$setc TARGET_OS_EMBEDDED := FALSE}
172 {$endc}
173 {$setc TARGET_IPHONE_SIMULATOR := FALSE}
174 {$elsec}
175 {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ nor __arm64__ is defined.}
176 {$endc}
177
178 {$ifc defined __LP64__ and __LP64__ }
179 {$setc TARGET_CPU_64 := TRUE}
180 {$elsec}
181 {$setc TARGET_CPU_64 := FALSE}
182 {$endc}
183
184 {$ifc defined FPC_BIG_ENDIAN}
185 {$setc TARGET_RT_BIG_ENDIAN := TRUE}
186 {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
187 {$elifc defined FPC_LITTLE_ENDIAN}
188 {$setc TARGET_RT_BIG_ENDIAN := FALSE}
189 {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
190 {$elsec}
191 {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
192 {$endc}
193 {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
194 {$setc CALL_NOT_IN_CARBON := FALSE}
195 {$setc OLDROUTINENAMES := FALSE}
196 {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
197 {$setc OPAQUE_UPP_TYPES := TRUE}
198 {$setc OTCARBONAPPLICATION := TRUE}
199 {$setc OTKERNEL := FALSE}
200 {$setc PM_USE_SESSION_APIS := TRUE}
201 {$setc TARGET_API_MAC_CARBON := TRUE}
202 {$setc TARGET_API_MAC_OS8 := FALSE}
203 {$setc TARGET_API_MAC_OSX := TRUE}
204 {$setc TARGET_CARBON := TRUE}
205 {$setc TARGET_CPU_68K := FALSE}
206 {$setc TARGET_CPU_MIPS := FALSE}
207 {$setc TARGET_CPU_SPARC := FALSE}
208 {$setc TARGET_OS_UNIX := FALSE}
209 {$setc TARGET_OS_WIN32 := FALSE}
210 {$setc TARGET_RT_MAC_68881 := FALSE}
211 {$setc TARGET_RT_MAC_CFM := FALSE}
212 {$setc TARGET_RT_MAC_MACHO := TRUE}
213 {$setc TYPED_FUNCTION_POINTERS := TRUE}
214 {$setc TYPE_BOOL := FALSE}
215 {$setc TYPE_EXTENDED := FALSE}
216 {$setc TYPE_LONGLONG := TRUE}
217 uses MacTypes,QDCMCommon,QuickdrawTypes,ColorSyncDeprecated,CGDirectDisplay,Components,MixedMode,QuickdrawText,CGContext;
218 {$endc} {not MACOSALLINCLUDE}
219
220
221 {$ifc TARGET_OS_MAC}
222
223 {$ALIGN MAC68K}
224
225 {*********************************************************************************
226 // NOTE: Quickdraw has been deprecated for deployment targets 10.4 and later.
227 // The replacement API is Quartz (CoreGraphics).
228 // Because of the fundamental differences in the imaging models and design
229 // goals between Quickdraw and Quartz, there is no direct correspondence
230 // possible (or even desirable) between Quickdraw and Quartz APIs and concepts.
231 // For certain purposes, some Quickdraw functions may even still be needed during
232 // a transition period; nevertheless, they have all been tagged as deprecated
233 // to express the overriding goal of eliminating all Quickdraw usage in the future.
234 |********************************************************************************}
235
236
237 {
238 General comments about thread-safety of Quickdraw
239 -------------------------------------------------
240
241 The original design and implementation principles of Quickdraw seriously
242 conflict with the goal of making Quickdraw thread-safe. Many Quickdraw
243 functions rely on globals instead of explicit parameters. Even though the
244 current port (and the current GDevice) are being maintained per-thread,
245 a simple call like "MoveTo(x, y)" just doesn't make sense with preemptive threads,
246 if two different threads use the same port. Also, as soon as a client replaces
247 bottleneck procedures (SetStdCProcs), thread-safety is compromised.
248 That's why we maintain by default the "Not thread safe" attribute in Quickdraw APIs,
249 even though they may appear to be thread-safe.
250 }
251 { Break a region up into rectangles.}
252
253 const
254 kQDRegionToRectsMsgInit = 1;
255 kQDRegionToRectsMsgParse = 2;
256 kQDRegionToRectsMsgTerminate = 3;
257
258 const
259 kQDParseRegionFromTop = 1 shl 0;
260 kQDParseRegionFromBottom = 1 shl 1;
261 kQDParseRegionFromLeft = 1 shl 2;
262 kQDParseRegionFromRight = 1 shl 3;
263 kQDParseRegionFromTopLeft = kQDParseRegionFromTop or kQDParseRegionFromLeft;
264 kQDParseRegionFromBottomRight = kQDParseRegionFromBottom or kQDParseRegionFromRight;
265
266 type
267 QDRegionParseDirection = SInt32;
messagenull268 RegionToRectsProcPtr = function( message: UInt16; rgn: RgnHandle; const (*var*) rect_: Rect; refCon: UnivPtr ): OSStatus;
269 RegionToRectsUPP = RegionToRectsProcPtr;
270 {
271 * NewRegionToRectsUPP()
272 *
273 * Availability:
274 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
275 * CarbonLib: in CarbonLib 1.0 and later
276 * Non-Carbon CFM: available as macro/inline
277 }
NewRegionToRectsUPPnull278 function NewRegionToRectsUPP( userRoutine: RegionToRectsProcPtr ): RegionToRectsUPP; external name '_NewRegionToRectsUPP';
279 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
280
281 {
282 * DisposeRegionToRectsUPP()
283 *
284 * Availability:
285 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
286 * CarbonLib: in CarbonLib 1.0 and later
287 * Non-Carbon CFM: available as macro/inline
288 }
289 procedure DisposeRegionToRectsUPP( userUPP: RegionToRectsUPP ); external name '_DisposeRegionToRectsUPP';
290 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
291
292 {
293 * InvokeRegionToRectsUPP()
294 *
295 * Availability:
296 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
297 * CarbonLib: in CarbonLib 1.0 and later
298 * Non-Carbon CFM: available as macro/inline
299 }
InvokeRegionToRectsUPPnull300 function InvokeRegionToRectsUPP( message: UInt16; rgn: RgnHandle; const (*var*) rect_: Rect; refCon: UnivPtr; userUPP: RegionToRectsUPP ): OSStatus; external name '_InvokeRegionToRectsUPP';
301 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
302
303 {
304 * QDRegionToRects()
305 *
306 * Mac OS X threading:
307 * Not thread safe
308 *
309 * Availability:
310 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
311 * CarbonLib: in CarbonLib 1.0 and later
312 * Non-Carbon CFM: not available
313 }
QDRegionToRectsnull314 function QDRegionToRects( rgn: RgnHandle; dir: QDRegionParseDirection; proc: RegionToRectsUPP; userData: UnivPtr ): OSStatus; external name '_QDRegionToRects';
315 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
316
317
318 {$ifc not TARGET_CPU_64}
319 {
320 * LockPortBits() *** DEPRECATED ***
321 *
322 * Mac OS X threading:
323 * Not thread safe
324 *
325 * Availability:
326 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
327 * CarbonLib: in CarbonLib 1.0 and later
328 * Non-Carbon CFM: not available
329 }
LockPortBitsnull330 function LockPortBits( port: GrafPtr ): OSErr; external name '_LockPortBits';
331 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
332
333
334 {
335 * UnlockPortBits() *** DEPRECATED ***
336 *
337 * Mac OS X threading:
338 * Not thread safe
339 *
340 * Availability:
341 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
342 * CarbonLib: in CarbonLib 1.0 and later
343 * Non-Carbon CFM: not available
344 }
UnlockPortBitsnull345 function UnlockPortBits( port: GrafPtr ): OSErr; external name '_UnlockPortBits';
346 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
347
348
349 {$endc} {not TARGET_CPU_64}
350
351 {$ifc TARGET_OS_WIN32}
352 {
353 * GetPortHWND()
354 *
355 * Availability:
356 * Mac OS X: not available
357 * CarbonLib: not available
358 * Non-Carbon CFM: not available
359 }
360
361
362 {
363 * GetHWNDPort()
364 *
365 * Availability:
366 * Mac OS X: not available
367 * CarbonLib: not available
368 * Non-Carbon CFM: not available
369 }
370
371
372 // #define GetPortHWND(port) (HWND)GetPortNativeWindow(port)
373 // #define GetHWNDPort(theHWND) GetNativeWindowPort(theHWND)
374 {
375 * GetPortHDC()
376 *
377 * Availability:
378 * Mac OS X: not available
379 * CarbonLib: not available
380 * Non-Carbon CFM: not available
381 }
382
383
384 {
385 * GetPortHBITMAP()
386 *
387 * Availability:
388 * Mac OS X: not available
389 * CarbonLib: not available
390 * Non-Carbon CFM: not available
391 }
392
393
394 {
395 * GetPortHPALETTE()
396 *
397 * Availability:
398 * Mac OS X: not available
399 * CarbonLib: not available
400 * Non-Carbon CFM: not available
401 }
402
403
404 {
405 * GetPortHFONT()
406 *
407 * Availability:
408 * Mac OS X: not available
409 * CarbonLib: not available
410 * Non-Carbon CFM: not available
411 }
412
413
414 {
415 * GetDIBFromPICT()
416 *
417 * Availability:
418 * Mac OS X: not available
419 * CarbonLib: not available
420 * Non-Carbon CFM: not available
421 }
422
423
424 {
425 * GetPICTFromDIB()
426 *
427 * Availability:
428 * Mac OS X: not available
429 * CarbonLib: not available
430 * Non-Carbon CFM: not available
431 }
432
433
434 {$endc} {TARGET_OS_WIN32}
435
436 {$ifc not TARGET_CPU_64}
437 {
438 * [Mac]SetPort() *** DEPRECATED ***
439 *
440 * Mac OS X threading:
441 * Not thread safe
442 *
443 * Availability:
444 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
445 * CarbonLib: in CarbonLib 1.0 and later
446 * Non-Carbon CFM: not available
447 }
448 procedure MacSetPort( port: GrafPtr ); external name '_SetPort';
449 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
450 procedure SetPort( port: GrafPtr ); external name '_SetPort';
451 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
452
453
454 {
455 * GetPort() *** DEPRECATED ***
456 *
457 * Mac OS X threading:
458 * Not thread safe
459 *
460 * Availability:
461 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
462 * CarbonLib: in CarbonLib 1.0 and later
463 * Non-Carbon CFM: not available
464 }
465 procedure GetPort( var port: GrafPtr ); external name '_GetPort';
466 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
467
468
469 {
470 * QDSwapPort() *** DEPRECATED ***
471 *
472 * Summary:
473 * Combines a GetPort(&savePort); SetPort(newPort) sequence.
474 *
475 * Discussion:
476 * On X, the GetPort/SetPort calls act on per-thread globals, and
477 * cost more processor cycles than in the past, where they were
478 * simple memory accessors. To optimize, use the QDSwapPort call
479 * which combines both, and returns a Boolean indicating if the port
480 * actually did change. Typical usage: Boolean portChanged =
481 * QDSwapPort(newPort, &savePort); (... some drawing into newPort
482 * ...) if (portChanged) QDSwapPort(savePort, NULL);
483 *
484 * Mac OS X threading:
485 * Not thread safe
486 *
487 * Parameters:
488 *
489 * inNewPort:
490 * The new port to be set.
491 *
492 * outOldPort:
493 * Receives the previous port. Can be NULL.
494 *
495 * Result:
496 * A Boolean indicating whether the port was changed, i.e.
497 * (inNewPort != *outOldPort)
498 *
499 * Availability:
500 * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
501 * CarbonLib: in CarbonLib 1.5 and later
502 * Non-Carbon CFM: not available
503 }
QDSwapPortnull504 function QDSwapPort( inNewPort: CGrafPtr; outOldPort: CGrafPtrPtr ): Boolean; external name '_QDSwapPort';
505 (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
506
507
508 {
509 * GrafDevice() *** DEPRECATED ***
510 *
511 * Mac OS X threading:
512 * Not thread safe
513 *
514 * Availability:
515 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
516 * CarbonLib: in CarbonLib 1.0 and later
517 * Non-Carbon CFM: not available
518 }
519 procedure GrafDevice( device: SInt16 ); external name '_GrafDevice';
520 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
521
522
523 {
524 * SetPortBits() *** DEPRECATED ***
525 *
526 * Mac OS X threading:
527 * Not thread safe
528 *
529 * Availability:
530 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
531 * CarbonLib: in CarbonLib 1.0 and later
532 * Non-Carbon CFM: not available
533 }
534 procedure SetPortBits( const (*var*) bm: BitMap ); external name '_SetPortBits';
535 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
536
537
538 {
539 * PortSize() *** DEPRECATED ***
540 *
541 * Mac OS X threading:
542 * Not thread safe
543 *
544 * Availability:
545 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
546 * CarbonLib: in CarbonLib 1.0 and later
547 * Non-Carbon CFM: not available
548 }
549 procedure PortSize( width: SInt16; height: SInt16 ); external name '_PortSize';
550 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
551
552
553 {
554 * MovePortTo() *** DEPRECATED ***
555 *
556 * Mac OS X threading:
557 * Not thread safe
558 *
559 * Availability:
560 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
561 * CarbonLib: in CarbonLib 1.0 and later
562 * Non-Carbon CFM: not available
563 }
564 procedure MovePortTo( leftGlobal: SInt16; topGlobal: SInt16 ); external name '_MovePortTo';
565 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
566
567
568 {
569 * SetOrigin() *** DEPRECATED ***
570 *
571 * Mac OS X threading:
572 * Not thread safe
573 *
574 * Availability:
575 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
576 * CarbonLib: in CarbonLib 1.0 and later
577 * Non-Carbon CFM: not available
578 }
579 procedure SetOrigin( h: SInt16; v: SInt16 ); external name '_SetOrigin';
580 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
581
582
583 {
584 * SetClip() *** DEPRECATED ***
585 *
586 * Mac OS X threading:
587 * Not thread safe
588 *
589 * Availability:
590 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
591 * CarbonLib: in CarbonLib 1.0 and later
592 * Non-Carbon CFM: not available
593 }
594 procedure SetClip( rgn: RgnHandle ); external name '_SetClip';
595 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
596
597
598 {
599 * GetClip() *** DEPRECATED ***
600 *
601 * Mac OS X threading:
602 * Not thread safe
603 *
604 * Availability:
605 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
606 * CarbonLib: in CarbonLib 1.0 and later
607 * Non-Carbon CFM: not available
608 }
609 procedure GetClip( rgn: RgnHandle ); external name '_GetClip';
610 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
611
612
613 {
614 * ClipRect() *** DEPRECATED ***
615 *
616 * Mac OS X threading:
617 * Not thread safe
618 *
619 * Availability:
620 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
621 * CarbonLib: in CarbonLib 1.0 and later
622 * Non-Carbon CFM: not available
623 }
624 procedure ClipRect( const (*var*) r: Rect ); external name '_ClipRect';
625 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
626
627
628 {
629 * BackPat() *** DEPRECATED ***
630 *
631 * Mac OS X threading:
632 * Not thread safe
633 *
634 * Availability:
635 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
636 * CarbonLib: in CarbonLib 1.0 and later
637 * Non-Carbon CFM: not available
638 }
639 procedure BackPat( const (*var*) pat: Pattern ); external name '_BackPat';
640 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
641
642
643 {
644 * InitCursor()
645 *
646 * Mac OS X threading:
647 * Not thread safe
648 *
649 * Availability:
650 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
651 * CarbonLib: in CarbonLib 1.0 and later
652 * Non-Carbon CFM: not available
653 }
654 procedure InitCursor; external name '_InitCursor';
655 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
656
657
658 { NOTE: InitCursor used to be called to initialize Quickdraw. This is not necessary
659 on Mac OS X. Use SetThemeCursor (in Appearance.h) to set the cursor to one of the predefined
660 system cursors.
661 }
662 {
663 * [Mac]SetCursor() *** DEPRECATED ***
664 *
665 * Mac OS X threading:
666 * Not thread safe
667 *
668 * Availability:
669 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
670 * CarbonLib: in CarbonLib 1.0 and later
671 * Non-Carbon CFM: not available
672 }
673 procedure MacSetCursor( const (*var*) crsr: Cursor ); external name '_SetCursor';
674 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
675 procedure SetCursor( const (*var*) crsr: Cursor ); external name '_SetCursor';
676 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
677
678
679 {
680 * HideCursor()
681 *
682 * Mac OS X threading:
683 * Not thread safe
684 *
685 * Availability:
686 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
687 * CarbonLib: in CarbonLib 1.0 and later
688 * Non-Carbon CFM: not available
689 }
690 procedure HideCursor; external name '_HideCursor';
691 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
692
693
694 {
695 * [Mac]ShowCursor()
696 *
697 * Mac OS X threading:
698 * Not thread safe
699 *
700 * Availability:
701 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
702 * CarbonLib: in CarbonLib 1.0 and later
703 * Non-Carbon CFM: not available
704 }
705 procedure MacShowCursor__NAMED_ShowCursor; external name '_MacShowCursor__NAMED_ShowCursor';
706 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
707 procedure ShowCursor; external name '_ShowCursor';
708 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
709
710
711 {
712 * ObscureCursor()
713 *
714 * Mac OS X threading:
715 * Not thread safe
716 *
717 * Availability:
718 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
719 * CarbonLib: in CarbonLib 1.0 and later
720 * Non-Carbon CFM: not available
721 }
722 procedure ObscureCursor; external name '_ObscureCursor';
723 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
724
725
726 {
727 * HidePen() *** DEPRECATED ***
728 *
729 * Mac OS X threading:
730 * Not thread safe
731 *
732 * Availability:
733 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
734 * CarbonLib: in CarbonLib 1.0 and later
735 * Non-Carbon CFM: not available
736 }
737 procedure HidePen; external name '_HidePen';
738 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
739
740
741 {
742 * ShowPen() *** DEPRECATED ***
743 *
744 * Mac OS X threading:
745 * Not thread safe
746 *
747 * Availability:
748 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
749 * CarbonLib: in CarbonLib 1.0 and later
750 * Non-Carbon CFM: not available
751 }
752 procedure ShowPen; external name '_ShowPen';
753 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
754
755
756 {
757 * GetPen() *** DEPRECATED ***
758 *
759 * Mac OS X threading:
760 * Not thread safe
761 *
762 * Availability:
763 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
764 * CarbonLib: in CarbonLib 1.0 and later
765 * Non-Carbon CFM: not available
766 }
767 procedure GetPen( var pt: Point ); external name '_GetPen';
768 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
769
770
771 {
772 * GetPenState() *** DEPRECATED ***
773 *
774 * Mac OS X threading:
775 * Not thread safe
776 *
777 * Availability:
778 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
779 * CarbonLib: in CarbonLib 1.0 and later
780 * Non-Carbon CFM: not available
781 }
782 procedure GetPenState( var pnState: PenState ); external name '_GetPenState';
783 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
784
785
786 {
787 * SetPenState() *** DEPRECATED ***
788 *
789 * Mac OS X threading:
790 * Not thread safe
791 *
792 * Availability:
793 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
794 * CarbonLib: in CarbonLib 1.0 and later
795 * Non-Carbon CFM: not available
796 }
797 procedure SetPenState( const (*var*) pnState: PenState ); external name '_SetPenState';
798 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
799
800
801 {
802 * PenSize() *** DEPRECATED ***
803 *
804 * Mac OS X threading:
805 * Not thread safe
806 *
807 * Availability:
808 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
809 * CarbonLib: in CarbonLib 1.0 and later
810 * Non-Carbon CFM: not available
811 }
812 procedure PenSize( width: SInt16; height: SInt16 ); external name '_PenSize';
813 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
814
815
816 {
817 * PenMode() *** DEPRECATED ***
818 *
819 * Mac OS X threading:
820 * Not thread safe
821 *
822 * Availability:
823 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
824 * CarbonLib: in CarbonLib 1.0 and later
825 * Non-Carbon CFM: not available
826 }
827 procedure PenMode( mode: SInt16 ); external name '_PenMode';
828 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
829
830
831 {
832 * PenPat() *** DEPRECATED ***
833 *
834 * Mac OS X threading:
835 * Not thread safe
836 *
837 * Availability:
838 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
839 * CarbonLib: in CarbonLib 1.0 and later
840 * Non-Carbon CFM: not available
841 }
842 procedure PenPat( const (*var*) pat: Pattern ); external name '_PenPat';
843 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
844
845
846 {
847 * PenNormal() *** DEPRECATED ***
848 *
849 * Mac OS X threading:
850 * Not thread safe
851 *
852 * Availability:
853 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
854 * CarbonLib: in CarbonLib 1.0 and later
855 * Non-Carbon CFM: not available
856 }
857 procedure PenNormal; external name '_PenNormal';
858 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
859
860
861 {
862 * MoveTo() *** DEPRECATED ***
863 *
864 * Mac OS X threading:
865 * Not thread safe
866 *
867 * Availability:
868 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
869 * CarbonLib: in CarbonLib 1.0 and later
870 * Non-Carbon CFM: not available
871 }
872 procedure MoveTo( h: SInt16; v: SInt16 ); external name '_MoveTo';
873 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
874
875
876 {
877 * Move() *** DEPRECATED ***
878 *
879 * Mac OS X threading:
880 * Not thread safe
881 *
882 * Availability:
883 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
884 * CarbonLib: in CarbonLib 1.0 and later
885 * Non-Carbon CFM: not available
886 }
887 procedure Move( dh: SInt16; dv: SInt16 ); external name '_Move';
888 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
889
890
891 {
892 * [Mac]LineTo() *** DEPRECATED ***
893 *
894 * Mac OS X threading:
895 * Not thread safe
896 *
897 * Availability:
898 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
899 * CarbonLib: in CarbonLib 1.0 and later
900 * Non-Carbon CFM: not available
901 }
902 procedure MacLineTo__NAMED_LineTo( h: SInt16; v: SInt16 ); external name '_MacLineTo__NAMED_LineTo';
903 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
904 procedure LineTo( h: SInt16; v: SInt16 ); external name '_LineTo';
905 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
906
907
908 {
909 * Line() *** DEPRECATED ***
910 *
911 * Mac OS X threading:
912 * Not thread safe
913 *
914 * Availability:
915 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
916 * CarbonLib: in CarbonLib 1.0 and later
917 * Non-Carbon CFM: not available
918 }
919 procedure Line( dh: SInt16; dv: SInt16 ); external name '_Line';
920 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
921
922
923 {
924 * ForeColor() *** DEPRECATED ***
925 *
926 * Mac OS X threading:
927 * Not thread safe
928 *
929 * Availability:
930 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
931 * CarbonLib: in CarbonLib 1.0 and later
932 * Non-Carbon CFM: not available
933 }
934 procedure ForeColor( color: SIGNEDLONG ); external name '_ForeColor';
935 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
936
937
938 {
939 * BackColor() *** DEPRECATED ***
940 *
941 * Mac OS X threading:
942 * Not thread safe
943 *
944 * Availability:
945 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
946 * CarbonLib: in CarbonLib 1.0 and later
947 * Non-Carbon CFM: not available
948 }
949 procedure BackColor( color: SIGNEDLONG ); external name '_BackColor';
950 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
951
952
953 {
954 * ColorBit() *** DEPRECATED ***
955 *
956 * Mac OS X threading:
957 * Not thread safe
958 *
959 * Availability:
960 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
961 * CarbonLib: in CarbonLib 1.0 and later
962 * Non-Carbon CFM: not available
963 }
964 procedure ColorBit( whichBit: SInt16 ); external name '_ColorBit';
965 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
966
967
968 {$endc} {not TARGET_CPU_64}
969
970 {
971 * [Mac]SetRect()
972 *
973 * Mac OS X threading:
974 * Not thread safe
975 *
976 * Availability:
977 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
978 * CarbonLib: in CarbonLib 1.0 and later
979 * Non-Carbon CFM: not available
980 }
981 procedure MacSetRect( var r: Rect; left: SInt16; top: SInt16; right: SInt16; bottom: SInt16 ); external name '_SetRect';
982 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
983 procedure SetRect( var r: Rect; left: SInt16; top: SInt16; right: SInt16; bottom: SInt16 ); external name '_SetRect';
984 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
985
986
987 {
988 * [Mac]OffsetRect()
989 *
990 * Mac OS X threading:
991 * Not thread safe
992 *
993 * Availability:
994 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
995 * CarbonLib: in CarbonLib 1.0 and later
996 * Non-Carbon CFM: not available
997 }
998 procedure MacOffsetRect( var r: Rect; dh: SInt16; dv: SInt16 ); external name '_OffsetRect';
999 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1000 procedure OffsetRect( var r: Rect; dh: SInt16; dv: SInt16 ); external name '_OffsetRect';
1001 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1002
1003
1004 {
1005 * [Mac]InsetRect()
1006 *
1007 * Mac OS X threading:
1008 * Not thread safe
1009 *
1010 * Availability:
1011 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
1012 * CarbonLib: in CarbonLib 1.0 and later
1013 * Non-Carbon CFM: not available
1014 }
1015 procedure MacInsetRect( var r: Rect; dh: SInt16; dv: SInt16 ); external name '_InsetRect';
1016 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1017 procedure InsetRect( var r: Rect; dh: SInt16; dv: SInt16 ); external name '_InsetRect';
1018 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1019
1020
1021 {
1022 * SectRect()
1023 *
1024 * Mac OS X threading:
1025 * Not thread safe
1026 *
1027 * Availability:
1028 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
1029 * CarbonLib: in CarbonLib 1.0 and later
1030 * Non-Carbon CFM: not available
1031 }
SectRectnull1032 function SectRect( const (*var*) src1: Rect; const (*var*) src2: Rect; var dstRect: Rect ): Boolean; external name '_SectRect';
1033 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1034
1035
1036 {
1037 * [Mac]UnionRect()
1038 *
1039 * Mac OS X threading:
1040 * Not thread safe
1041 *
1042 * Availability:
1043 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
1044 * CarbonLib: in CarbonLib 1.0 and later
1045 * Non-Carbon CFM: not available
1046 }
1047 procedure MacUnionRect( const (*var*) src1: Rect; const (*var*) src2: Rect; var dstRect: Rect ); external name '_UnionRect';
1048 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1049 procedure UnionRect( const (*var*) src1: Rect; const (*var*) src2: Rect; var dstRect: Rect ); external name '_UnionRect';
1050 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1051
1052
1053 {
1054 * [Mac]EqualRect()
1055 *
1056 * Mac OS X threading:
1057 * Not thread safe
1058 *
1059 * Availability:
1060 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
1061 * CarbonLib: in CarbonLib 1.0 and later
1062 * Non-Carbon CFM: not available
1063 }
MacEqualRectnull1064 function MacEqualRect( const (*var*) rect1: Rect; const (*var*) rect2: Rect ): Boolean; external name '_EqualRect';
1065 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
EqualRectnull1066 function EqualRect( const (*var*) rect1: Rect; const (*var*) rect2: Rect ): Boolean; external name '_EqualRect';
1067 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1068
1069
1070 {
1071 * EmptyRect()
1072 *
1073 * Mac OS X threading:
1074 * Not thread safe
1075 *
1076 * Availability:
1077 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
1078 * CarbonLib: in CarbonLib 1.0 and later
1079 * Non-Carbon CFM: not available
1080 }
EmptyRectnull1081 function EmptyRect( const (*var*) r: Rect ): Boolean; external name '_EmptyRect';
1082 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1083
1084
1085 {$ifc not TARGET_CPU_64}
1086 {
1087 * [Mac]FrameRect() *** DEPRECATED ***
1088 *
1089 * Mac OS X threading:
1090 * Not thread safe
1091 *
1092 * Availability:
1093 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1094 * CarbonLib: in CarbonLib 1.0 and later
1095 * Non-Carbon CFM: not available
1096 }
1097 procedure MacFrameRect( const (*var*) r: Rect ); external name '_FrameRect';
1098 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1099 procedure FrameRect( const (*var*) r: Rect ); external name '_FrameRect';
1100 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1101
1102
1103 {
1104 * PaintRect() *** DEPRECATED ***
1105 *
1106 * Mac OS X threading:
1107 * Not thread safe
1108 *
1109 * Availability:
1110 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1111 * CarbonLib: in CarbonLib 1.0 and later
1112 * Non-Carbon CFM: not available
1113 }
1114 procedure PaintRect( const (*var*) r: Rect ); external name '_PaintRect';
1115 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1116
1117
1118 {
1119 * EraseRect() *** DEPRECATED ***
1120 *
1121 * Mac OS X threading:
1122 * Not thread safe
1123 *
1124 * Availability:
1125 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1126 * CarbonLib: in CarbonLib 1.0 and later
1127 * Non-Carbon CFM: not available
1128 }
1129 procedure EraseRect( const (*var*) r: Rect ); external name '_EraseRect';
1130 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1131
1132
1133 {
1134 * [Mac]InvertRect() *** DEPRECATED ***
1135 *
1136 * Mac OS X threading:
1137 * Not thread safe
1138 *
1139 * Availability:
1140 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1141 * CarbonLib: in CarbonLib 1.0 and later
1142 * Non-Carbon CFM: not available
1143 }
1144 procedure MacInvertRect( const (*var*) r: Rect ); external name '_InvertRect';
1145 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1146 procedure InvertRect( const (*var*) r: Rect ); external name '_InvertRect';
1147 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1148
1149
1150 {
1151 * [Mac]FillRect() *** DEPRECATED ***
1152 *
1153 * Mac OS X threading:
1154 * Not thread safe
1155 *
1156 * Availability:
1157 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1158 * CarbonLib: in CarbonLib 1.0 and later
1159 * Non-Carbon CFM: not available
1160 }
1161 procedure MacFillRect( const (*var*) r: Rect; const (*var*) pat: Pattern ); external name '_FillRect';
1162 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1163 procedure FillRect( const (*var*) r: Rect; const (*var*) pat: Pattern ); external name '_FillRect';
1164 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1165
1166
1167 {
1168 * FrameOval() *** DEPRECATED ***
1169 *
1170 * Mac OS X threading:
1171 * Not thread safe
1172 *
1173 * Availability:
1174 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1175 * CarbonLib: in CarbonLib 1.0 and later
1176 * Non-Carbon CFM: not available
1177 }
1178 procedure FrameOval( const (*var*) r: Rect ); external name '_FrameOval';
1179 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1180
1181
1182 {
1183 * PaintOval() *** DEPRECATED ***
1184 *
1185 * Mac OS X threading:
1186 * Not thread safe
1187 *
1188 * Availability:
1189 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1190 * CarbonLib: in CarbonLib 1.0 and later
1191 * Non-Carbon CFM: not available
1192 }
1193 procedure PaintOval( const (*var*) r: Rect ); external name '_PaintOval';
1194 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1195
1196
1197 {
1198 * EraseOval() *** DEPRECATED ***
1199 *
1200 * Mac OS X threading:
1201 * Not thread safe
1202 *
1203 * Availability:
1204 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1205 * CarbonLib: in CarbonLib 1.0 and later
1206 * Non-Carbon CFM: not available
1207 }
1208 procedure EraseOval( const (*var*) r: Rect ); external name '_EraseOval';
1209 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1210
1211
1212 {
1213 * InvertOval() *** DEPRECATED ***
1214 *
1215 * Mac OS X threading:
1216 * Not thread safe
1217 *
1218 * Availability:
1219 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1220 * CarbonLib: in CarbonLib 1.0 and later
1221 * Non-Carbon CFM: not available
1222 }
1223 procedure InvertOval( const (*var*) r: Rect ); external name '_InvertOval';
1224 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1225
1226
1227 {
1228 * FillOval() *** DEPRECATED ***
1229 *
1230 * Mac OS X threading:
1231 * Not thread safe
1232 *
1233 * Availability:
1234 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1235 * CarbonLib: in CarbonLib 1.0 and later
1236 * Non-Carbon CFM: not available
1237 }
1238 procedure FillOval( const (*var*) r: Rect; const (*var*) pat: Pattern ); external name '_FillOval';
1239 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1240
1241
1242 {
1243 * FrameRoundRect() *** DEPRECATED ***
1244 *
1245 * Mac OS X threading:
1246 * Not thread safe
1247 *
1248 * Availability:
1249 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1250 * CarbonLib: in CarbonLib 1.0 and later
1251 * Non-Carbon CFM: not available
1252 }
1253 procedure FrameRoundRect( const (*var*) r: Rect; ovalWidth: SInt16; ovalHeight: SInt16 ); external name '_FrameRoundRect';
1254 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1255
1256
1257 {
1258 * PaintRoundRect() *** DEPRECATED ***
1259 *
1260 * Mac OS X threading:
1261 * Not thread safe
1262 *
1263 * Availability:
1264 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1265 * CarbonLib: in CarbonLib 1.0 and later
1266 * Non-Carbon CFM: not available
1267 }
1268 procedure PaintRoundRect( const (*var*) r: Rect; ovalWidth: SInt16; ovalHeight: SInt16 ); external name '_PaintRoundRect';
1269 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1270
1271
1272 {
1273 * EraseRoundRect() *** DEPRECATED ***
1274 *
1275 * Mac OS X threading:
1276 * Not thread safe
1277 *
1278 * Availability:
1279 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1280 * CarbonLib: in CarbonLib 1.0 and later
1281 * Non-Carbon CFM: not available
1282 }
1283 procedure EraseRoundRect( const (*var*) r: Rect; ovalWidth: SInt16; ovalHeight: SInt16 ); external name '_EraseRoundRect';
1284 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1285
1286
1287 {
1288 * InvertRoundRect() *** DEPRECATED ***
1289 *
1290 * Mac OS X threading:
1291 * Not thread safe
1292 *
1293 * Availability:
1294 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1295 * CarbonLib: in CarbonLib 1.0 and later
1296 * Non-Carbon CFM: not available
1297 }
1298 procedure InvertRoundRect( const (*var*) r: Rect; ovalWidth: SInt16; ovalHeight: SInt16 ); external name '_InvertRoundRect';
1299 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1300
1301
1302 {
1303 * FillRoundRect() *** DEPRECATED ***
1304 *
1305 * Mac OS X threading:
1306 * Not thread safe
1307 *
1308 * Availability:
1309 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1310 * CarbonLib: in CarbonLib 1.0 and later
1311 * Non-Carbon CFM: not available
1312 }
1313 procedure FillRoundRect( const (*var*) r: Rect; ovalWidth: SInt16; ovalHeight: SInt16; const (*var*) pat: Pattern ); external name '_FillRoundRect';
1314 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1315
1316
1317 {
1318 * FrameArc() *** DEPRECATED ***
1319 *
1320 * Mac OS X threading:
1321 * Not thread safe
1322 *
1323 * Availability:
1324 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1325 * CarbonLib: in CarbonLib 1.0 and later
1326 * Non-Carbon CFM: not available
1327 }
1328 procedure FrameArc( const (*var*) r: Rect; startAngle: SInt16; arcAngle: SInt16 ); external name '_FrameArc';
1329 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1330
1331
1332 {
1333 * PaintArc() *** DEPRECATED ***
1334 *
1335 * Mac OS X threading:
1336 * Not thread safe
1337 *
1338 * Availability:
1339 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1340 * CarbonLib: in CarbonLib 1.0 and later
1341 * Non-Carbon CFM: not available
1342 }
1343 procedure PaintArc( const (*var*) r: Rect; startAngle: SInt16; arcAngle: SInt16 ); external name '_PaintArc';
1344 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1345
1346
1347 {
1348 * EraseArc() *** DEPRECATED ***
1349 *
1350 * Mac OS X threading:
1351 * Not thread safe
1352 *
1353 * Availability:
1354 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1355 * CarbonLib: in CarbonLib 1.0 and later
1356 * Non-Carbon CFM: not available
1357 }
1358 procedure EraseArc( const (*var*) r: Rect; startAngle: SInt16; arcAngle: SInt16 ); external name '_EraseArc';
1359 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1360
1361
1362 {
1363 * InvertArc() *** DEPRECATED ***
1364 *
1365 * Mac OS X threading:
1366 * Not thread safe
1367 *
1368 * Availability:
1369 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1370 * CarbonLib: in CarbonLib 1.0 and later
1371 * Non-Carbon CFM: not available
1372 }
1373 procedure InvertArc( const (*var*) r: Rect; startAngle: SInt16; arcAngle: SInt16 ); external name '_InvertArc';
1374 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1375
1376
1377 {
1378 * FillArc() *** DEPRECATED ***
1379 *
1380 * Mac OS X threading:
1381 * Not thread safe
1382 *
1383 * Availability:
1384 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1385 * CarbonLib: in CarbonLib 1.0 and later
1386 * Non-Carbon CFM: not available
1387 }
1388 procedure FillArc( const (*var*) r: Rect; startAngle: SInt16; arcAngle: SInt16; const (*var*) pat: Pattern ); external name '_FillArc';
1389 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1390
1391
1392 {
1393 * NewRgn()
1394 *
1395 * Mac OS X threading:
1396 * Not thread safe
1397 *
1398 * Availability:
1399 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
1400 * CarbonLib: in CarbonLib 1.0 and later
1401 * Non-Carbon CFM: not available
1402 }
NewRgnnull1403 function NewRgn: RgnHandle; external name '_NewRgn';
1404 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1405
1406
1407 {
1408 * OpenRgn() *** DEPRECATED ***
1409 *
1410 * Mac OS X threading:
1411 * Not thread safe
1412 *
1413 * Availability:
1414 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1415 * CarbonLib: in CarbonLib 1.0 and later
1416 * Non-Carbon CFM: not available
1417 }
1418 procedure OpenRgn; external name '_OpenRgn';
1419 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1420
1421
1422 {
1423 * CloseRgn() *** DEPRECATED ***
1424 *
1425 * Mac OS X threading:
1426 * Not thread safe
1427 *
1428 * Availability:
1429 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1430 * CarbonLib: in CarbonLib 1.0 and later
1431 * Non-Carbon CFM: not available
1432 }
1433 procedure CloseRgn( dstRgn: RgnHandle ); external name '_CloseRgn';
1434 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1435
1436
1437 {
1438 * BitMapToRegion() *** DEPRECATED ***
1439 *
1440 * Mac OS X threading:
1441 * Not thread safe
1442 *
1443 * Availability:
1444 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1445 * CarbonLib: in CarbonLib 1.0 and later
1446 * Non-Carbon CFM: not available
1447 }
BitMapToRegionnull1448 function BitMapToRegion( region: RgnHandle; const (*var*) bMap: BitMap ): OSErr; external name '_BitMapToRegion';
1449 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1450
1451
1452 {
1453 * RgnToHandle()
1454 *
1455 * Summary:
1456 * Allows to "flatten" the opaque region data, for persistent
1457 * storage. HandleToRgn is the reciprocal call.
1458 *
1459 * Discussion:
1460 * These calls were introduced to facilitate Carbonization of
1461 * applications, that relied on the undocumented format of region
1462 * data. Since the internal (opaque) region format changed in 10.3,
1463 * the purpose of these functions became questionable at best. They
1464 * should be considered deprecated. Applications that need to
1465 * preserve region data within their documents should convert the
1466 * regions to a sequence of rectangles, using QDRegionToRects. The
1467 * original region can then be rebuilt using RectRgn() and
1468 * UnionRgn() calls.
1469 *
1470 * Mac OS X threading:
1471 * Not thread safe
1472 *
1473 * Parameters:
1474 *
1475 * region:
1476 * The input RgnHandle
1477 *
1478 * flattenedRgnDataHdl:
1479 * A valid Handle that gets resized and filled with the region
1480 * data.
1481 *
1482 * Availability:
1483 * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only]
1484 * CarbonLib: in CarbonLib 1.3 and later
1485 * Non-Carbon CFM: not available
1486 }
1487 procedure RgnToHandle( region: RgnHandle; flattenedRgnDataHdl: Handle ); external name '_RgnToHandle';
1488 (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *)
1489
1490
1491 {
1492 * HandleToRgn()
1493 *
1494 * Mac OS X threading:
1495 * Not thread safe
1496 *
1497 * Availability:
1498 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
1499 * CarbonLib: in CarbonLib 1.1 and later
1500 * Non-Carbon CFM: not available
1501 }
1502 procedure HandleToRgn( oldRegion: Handle; region: RgnHandle ); external name '_HandleToRgn';
1503 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1504
1505
1506 {
1507 * DisposeRgn()
1508 *
1509 * Mac OS X threading:
1510 * Not thread safe
1511 *
1512 * Availability:
1513 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
1514 * CarbonLib: in CarbonLib 1.0 and later
1515 * Non-Carbon CFM: not available
1516 }
1517 procedure DisposeRgn( rgn: RgnHandle ); external name '_DisposeRgn';
1518 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1519
1520
1521 {
1522 * [Mac]CopyRgn()
1523 *
1524 * Mac OS X threading:
1525 * Not thread safe
1526 *
1527 * Availability:
1528 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
1529 * CarbonLib: in CarbonLib 1.0 and later
1530 * Non-Carbon CFM: not available
1531 }
1532 procedure MacCopyRgn( srcRgn: RgnHandle; dstRgn: RgnHandle ); external name '_CopyRgn';
1533 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1534 procedure CopyRgn( srcRgn: RgnHandle; dstRgn: RgnHandle ); external name '_CopyRgn';
1535 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1536
1537
1538 {
1539 * SetEmptyRgn()
1540 *
1541 * Mac OS X threading:
1542 * Not thread safe
1543 *
1544 * Availability:
1545 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
1546 * CarbonLib: in CarbonLib 1.0 and later
1547 * Non-Carbon CFM: not available
1548 }
1549 procedure SetEmptyRgn( rgn: RgnHandle ); external name '_SetEmptyRgn';
1550 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1551
1552
1553 {
1554 * [Mac]SetRectRgn()
1555 *
1556 * Mac OS X threading:
1557 * Not thread safe
1558 *
1559 * Availability:
1560 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
1561 * CarbonLib: in CarbonLib 1.0 and later
1562 * Non-Carbon CFM: not available
1563 }
1564 procedure MacSetRectRgn( rgn: RgnHandle; left: SInt16; top: SInt16; right: SInt16; bottom: SInt16 ); external name '_SetRectRgn';
1565 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1566 procedure SetRectRgn( rgn: RgnHandle; left: SInt16; top: SInt16; right: SInt16; bottom: SInt16 ); external name '_SetRectRgn';
1567 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1568
1569
1570 {
1571 * RectRgn()
1572 *
1573 * Mac OS X threading:
1574 * Not thread safe
1575 *
1576 * Availability:
1577 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
1578 * CarbonLib: in CarbonLib 1.0 and later
1579 * Non-Carbon CFM: not available
1580 }
1581 procedure RectRgn( rgn: RgnHandle; const (*var*) r: Rect ); external name '_RectRgn';
1582 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1583
1584
1585 {
1586 * [Mac]OffsetRgn()
1587 *
1588 * Mac OS X threading:
1589 * Not thread safe
1590 *
1591 * Availability:
1592 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
1593 * CarbonLib: in CarbonLib 1.0 and later
1594 * Non-Carbon CFM: not available
1595 }
1596 procedure MacOffsetRgn( rgn: RgnHandle; dh: SInt16; dv: SInt16 ); external name '_OffsetRgn';
1597 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1598 procedure OffsetRgn( rgn: RgnHandle; dh: SInt16; dv: SInt16 ); external name '_OffsetRgn';
1599 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1600
1601
1602 {
1603 * InsetRgn()
1604 *
1605 * Mac OS X threading:
1606 * Not thread safe
1607 *
1608 * Availability:
1609 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
1610 * CarbonLib: in CarbonLib 1.0 and later
1611 * Non-Carbon CFM: not available
1612 }
1613 procedure InsetRgn( rgn: RgnHandle; dh: SInt16; dv: SInt16 ); external name '_InsetRgn';
1614 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1615
1616
1617 {
1618 * SectRgn()
1619 *
1620 * Mac OS X threading:
1621 * Not thread safe
1622 *
1623 * Availability:
1624 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
1625 * CarbonLib: in CarbonLib 1.0 and later
1626 * Non-Carbon CFM: not available
1627 }
1628 procedure SectRgn( srcRgnA: RgnHandle; srcRgnB: RgnHandle; dstRgn: RgnHandle ); external name '_SectRgn';
1629 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1630
1631
1632 {
1633 * [Mac]UnionRgn()
1634 *
1635 * Mac OS X threading:
1636 * Not thread safe
1637 *
1638 * Availability:
1639 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
1640 * CarbonLib: in CarbonLib 1.0 and later
1641 * Non-Carbon CFM: not available
1642 }
1643 procedure MacUnionRgn( srcRgnA: RgnHandle; srcRgnB: RgnHandle; dstRgn: RgnHandle ); external name '_UnionRgn';
1644 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1645 procedure UnionRgn( srcRgnA: RgnHandle; srcRgnB: RgnHandle; dstRgn: RgnHandle ); external name '_UnionRgn';
1646 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1647
1648
1649 {
1650 * DiffRgn()
1651 *
1652 * Mac OS X threading:
1653 * Not thread safe
1654 *
1655 * Availability:
1656 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
1657 * CarbonLib: in CarbonLib 1.0 and later
1658 * Non-Carbon CFM: not available
1659 }
1660 procedure DiffRgn( srcRgnA: RgnHandle; srcRgnB: RgnHandle; dstRgn: RgnHandle ); external name '_DiffRgn';
1661 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1662
1663
1664 {
1665 * [Mac]XorRgn()
1666 *
1667 * Mac OS X threading:
1668 * Not thread safe
1669 *
1670 * Availability:
1671 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
1672 * CarbonLib: in CarbonLib 1.0 and later
1673 * Non-Carbon CFM: not available
1674 }
1675 procedure MacXorRgn( srcRgnA: RgnHandle; srcRgnB: RgnHandle; dstRgn: RgnHandle ); external name '_XorRgn';
1676 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1677 procedure XorRgn( srcRgnA: RgnHandle; srcRgnB: RgnHandle; dstRgn: RgnHandle ); external name '_XorRgn';
1678 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1679
1680
1681 {
1682 * RectInRgn()
1683 *
1684 * Mac OS X threading:
1685 * Not thread safe
1686 *
1687 * Availability:
1688 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
1689 * CarbonLib: in CarbonLib 1.0 and later
1690 * Non-Carbon CFM: not available
1691 }
RectInRgnnull1692 function RectInRgn( const (*var*) r: Rect; rgn: RgnHandle ): Boolean; external name '_RectInRgn';
1693 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1694
1695
1696 {
1697 * [Mac]EqualRgn()
1698 *
1699 * Mac OS X threading:
1700 * Not thread safe
1701 *
1702 * Availability:
1703 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
1704 * CarbonLib: in CarbonLib 1.0 and later
1705 * Non-Carbon CFM: not available
1706 }
MacEqualRgnnull1707 function MacEqualRgn( rgnA: RgnHandle; rgnB: RgnHandle ): Boolean; external name '_EqualRgn';
1708 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
EqualRgnnull1709 function EqualRgn( rgnA: RgnHandle; rgnB: RgnHandle ): Boolean; external name '_EqualRgn';
1710 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1711
1712
1713 {
1714 * EmptyRgn()
1715 *
1716 * Mac OS X threading:
1717 * Not thread safe
1718 *
1719 * Availability:
1720 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
1721 * CarbonLib: in CarbonLib 1.0 and later
1722 * Non-Carbon CFM: not available
1723 }
EmptyRgnnull1724 function EmptyRgn( rgn: RgnHandle ): Boolean; external name '_EmptyRgn';
1725 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
1726
1727
1728 {
1729 * [Mac]FrameRgn() *** DEPRECATED ***
1730 *
1731 * Mac OS X threading:
1732 * Not thread safe
1733 *
1734 * Availability:
1735 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1736 * CarbonLib: in CarbonLib 1.0 and later
1737 * Non-Carbon CFM: not available
1738 }
1739 procedure MacFrameRgn( rgn: RgnHandle ); external name '_FrameRgn';
1740 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1741 procedure FrameRgn( rgn: RgnHandle ); external name '_FrameRgn';
1742 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1743
1744
1745 {
1746 * [Mac]PaintRgn() *** DEPRECATED ***
1747 *
1748 * Mac OS X threading:
1749 * Not thread safe
1750 *
1751 * Availability:
1752 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1753 * CarbonLib: in CarbonLib 1.0 and later
1754 * Non-Carbon CFM: not available
1755 }
1756 procedure MacPaintRgn( rgn: RgnHandle ); external name '_PaintRgn';
1757 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1758 procedure PaintRgn( rgn: RgnHandle ); external name '_PaintRgn';
1759 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1760
1761
1762 {
1763 * EraseRgn() *** DEPRECATED ***
1764 *
1765 * Mac OS X threading:
1766 * Not thread safe
1767 *
1768 * Availability:
1769 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1770 * CarbonLib: in CarbonLib 1.0 and later
1771 * Non-Carbon CFM: not available
1772 }
1773 procedure EraseRgn( rgn: RgnHandle ); external name '_EraseRgn';
1774 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1775
1776
1777 {
1778 * [Mac]InvertRgn() *** DEPRECATED ***
1779 *
1780 * Mac OS X threading:
1781 * Not thread safe
1782 *
1783 * Availability:
1784 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1785 * CarbonLib: in CarbonLib 1.0 and later
1786 * Non-Carbon CFM: not available
1787 }
1788 procedure MacInvertRgn( rgn: RgnHandle ); external name '_InvertRgn';
1789 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1790 procedure InvertRgn( rgn: RgnHandle ); external name '_InvertRgn';
1791 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1792
1793
1794 {
1795 * [Mac]FillRgn() *** DEPRECATED ***
1796 *
1797 * Mac OS X threading:
1798 * Not thread safe
1799 *
1800 * Availability:
1801 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1802 * CarbonLib: in CarbonLib 1.0 and later
1803 * Non-Carbon CFM: not available
1804 }
1805 procedure MacFillRgn( rgn: RgnHandle; const (*var*) pat: Pattern ); external name '_FillRgn';
1806 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1807 procedure FillRgn( rgn: RgnHandle; const (*var*) pat: Pattern ); external name '_FillRgn';
1808 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1809
1810
1811 {
1812 * ScrollRect() *** DEPRECATED ***
1813 *
1814 * Mac OS X threading:
1815 * Not thread safe
1816 *
1817 * Availability:
1818 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1819 * CarbonLib: in CarbonLib 1.0 and later
1820 * Non-Carbon CFM: not available
1821 }
1822 procedure ScrollRect( const (*var*) r: Rect; dh: SInt16; dv: SInt16; updateRgn: RgnHandle ); external name '_ScrollRect';
1823 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1824
1825
1826 {
1827 * CopyBits() *** DEPRECATED ***
1828 *
1829 * Mac OS X threading:
1830 * Not thread safe
1831 *
1832 * Availability:
1833 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1834 * CarbonLib: in CarbonLib 1.0 and later
1835 * Non-Carbon CFM: not available
1836 }
1837 procedure CopyBits( const (*var*) srcBits: BitMap; const (*var*) dstBits: BitMap; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect; mode: SInt16; maskRgn: RgnHandle { can be NULL } ); external name '_CopyBits';
1838 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1839
1840
1841 {$endc} {not TARGET_CPU_64}
1842
1843 {$ifc not TARGET_CPU_64}
1844 {
1845 * SeedFill() *** DEPRECATED ***
1846 *
1847 * Mac OS X threading:
1848 * Not thread safe
1849 *
1850 * Availability:
1851 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1852 * CarbonLib: in CarbonLib 1.0 and later
1853 * Non-Carbon CFM: not available
1854 }
1855 procedure SeedFill( srcPtr: {const} UnivPtr; dstPtr: UnivPtr; srcRow: SInt16; dstRow: SInt16; height: SInt16; words: SInt16; seedH: SInt16; seedV: SInt16 ); external name '_SeedFill';
1856 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1857
1858
1859 {
1860 * CalcMask() *** DEPRECATED ***
1861 *
1862 * Mac OS X threading:
1863 * Not thread safe
1864 *
1865 * Availability:
1866 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1867 * CarbonLib: in CarbonLib 1.0 and later
1868 * Non-Carbon CFM: not available
1869 }
1870 procedure CalcMask( srcPtr: {const} UnivPtr; dstPtr: UnivPtr; srcRow: SInt16; dstRow: SInt16; height: SInt16; words: SInt16 ); external name '_CalcMask';
1871 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1872
1873
1874 {
1875 * CopyMask() *** DEPRECATED ***
1876 *
1877 * Mac OS X threading:
1878 * Not thread safe
1879 *
1880 * Availability:
1881 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1882 * CarbonLib: in CarbonLib 1.0 and later
1883 * Non-Carbon CFM: not available
1884 }
1885 procedure CopyMask( const (*var*) srcBits: BitMap; const (*var*) maskBits: BitMap; const (*var*) dstBits: BitMap; const (*var*) srcRect: Rect; const (*var*) maskRect: Rect; const (*var*) dstRect: Rect ); external name '_CopyMask';
1886 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1887
1888
1889 {$endc} {not TARGET_CPU_64}
1890
1891 {$ifc not TARGET_CPU_64}
1892 {
1893 * OpenPicture() *** DEPRECATED ***
1894 *
1895 * Mac OS X threading:
1896 * Not thread safe
1897 *
1898 * Availability:
1899 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1900 * CarbonLib: in CarbonLib 1.0 and later
1901 * Non-Carbon CFM: not available
1902 }
OpenPicturenull1903 function OpenPicture( const (*var*) picFrame: Rect ): PicHandle; external name '_OpenPicture';
1904 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1905
1906
1907 {
1908 * PicComment() *** DEPRECATED ***
1909 *
1910 * Mac OS X threading:
1911 * Not thread safe
1912 *
1913 * Availability:
1914 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1915 * CarbonLib: in CarbonLib 1.0 and later
1916 * Non-Carbon CFM: not available
1917 }
1918 procedure PicComment( kind: SInt16; dataSize: SInt16; dataHandle: Handle ); external name '_PicComment';
1919 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1920
1921
1922 {
1923 * ClosePicture() *** DEPRECATED ***
1924 *
1925 * Mac OS X threading:
1926 * Not thread safe
1927 *
1928 * Availability:
1929 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1930 * CarbonLib: in CarbonLib 1.0 and later
1931 * Non-Carbon CFM: not available
1932 }
1933 procedure ClosePicture; external name '_ClosePicture';
1934 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1935
1936
1937 {
1938 * QDGetPictureBounds() *** DEPRECATED ***
1939 *
1940 * Mac OS X threading:
1941 * Not thread safe
1942 *
1943 * Availability:
1944 * Mac OS X: in version 10.3 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1945 * CarbonLib: not available
1946 * Non-Carbon CFM: not available
1947 }
QDGetPictureBoundsnull1948 function QDGetPictureBounds( picH: PicHandle; var outRect: Rect ): RectPtr; external name '_QDGetPictureBounds'; (* attribute ignoreable *)
1949 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1950
1951
1952 {
1953 * DrawPicture() *** DEPRECATED ***
1954 *
1955 * Mac OS X threading:
1956 * Not thread safe
1957 *
1958 * Availability:
1959 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1960 * CarbonLib: in CarbonLib 1.0 and later
1961 * Non-Carbon CFM: not available
1962 }
1963 procedure DrawPicture( myPicture: PicHandle; const (*var*) dstRect: Rect ); external name '_DrawPicture';
1964 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1965
1966
1967 {
1968 * KillPicture() *** DEPRECATED ***
1969 *
1970 * Mac OS X threading:
1971 * Not thread safe
1972 *
1973 * Availability:
1974 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1975 * CarbonLib: in CarbonLib 1.0 and later
1976 * Non-Carbon CFM: not available
1977 }
1978 procedure KillPicture( myPicture: PicHandle ); external name '_KillPicture';
1979 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1980
1981
1982 {
1983 * OpenPoly() *** DEPRECATED ***
1984 *
1985 * Mac OS X threading:
1986 * Not thread safe
1987 *
1988 * Availability:
1989 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
1990 * CarbonLib: in CarbonLib 1.0 and later
1991 * Non-Carbon CFM: not available
1992 }
OpenPolynull1993 function OpenPoly: PolyHandle; external name '_OpenPoly';
1994 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
1995
1996
1997 {
1998 * ClosePoly() *** DEPRECATED ***
1999 *
2000 * Mac OS X threading:
2001 * Not thread safe
2002 *
2003 * Availability:
2004 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2005 * CarbonLib: in CarbonLib 1.0 and later
2006 * Non-Carbon CFM: not available
2007 }
2008 procedure ClosePoly; external name '_ClosePoly';
2009 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2010
2011
2012 {
2013 * KillPoly() *** DEPRECATED ***
2014 *
2015 * Mac OS X threading:
2016 * Not thread safe
2017 *
2018 * Availability:
2019 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2020 * CarbonLib: in CarbonLib 1.0 and later
2021 * Non-Carbon CFM: not available
2022 }
2023 procedure KillPoly( poly: PolyHandle ); external name '_KillPoly';
2024 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2025
2026
2027 {
2028 * OffsetPoly() *** DEPRECATED ***
2029 *
2030 * Mac OS X threading:
2031 * Not thread safe
2032 *
2033 * Availability:
2034 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2035 * CarbonLib: in CarbonLib 1.0 and later
2036 * Non-Carbon CFM: not available
2037 }
2038 procedure OffsetPoly( poly: PolyHandle; dh: SInt16; dv: SInt16 ); external name '_OffsetPoly';
2039 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2040
2041
2042 {
2043 * FramePoly() *** DEPRECATED ***
2044 *
2045 * Mac OS X threading:
2046 * Not thread safe
2047 *
2048 * Availability:
2049 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2050 * CarbonLib: in CarbonLib 1.0 and later
2051 * Non-Carbon CFM: not available
2052 }
2053 procedure FramePoly( poly: PolyHandle ); external name '_FramePoly';
2054 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2055
2056
2057 {
2058 * PaintPoly() *** DEPRECATED ***
2059 *
2060 * Mac OS X threading:
2061 * Not thread safe
2062 *
2063 * Availability:
2064 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2065 * CarbonLib: in CarbonLib 1.0 and later
2066 * Non-Carbon CFM: not available
2067 }
2068 procedure PaintPoly( poly: PolyHandle ); external name '_PaintPoly';
2069 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2070
2071
2072 {
2073 * ErasePoly() *** DEPRECATED ***
2074 *
2075 * Mac OS X threading:
2076 * Not thread safe
2077 *
2078 * Availability:
2079 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2080 * CarbonLib: in CarbonLib 1.0 and later
2081 * Non-Carbon CFM: not available
2082 }
2083 procedure ErasePoly( poly: PolyHandle ); external name '_ErasePoly';
2084 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2085
2086
2087 {
2088 * InvertPoly() *** DEPRECATED ***
2089 *
2090 * Mac OS X threading:
2091 * Not thread safe
2092 *
2093 * Availability:
2094 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2095 * CarbonLib: in CarbonLib 1.0 and later
2096 * Non-Carbon CFM: not available
2097 }
2098 procedure InvertPoly( poly: PolyHandle ); external name '_InvertPoly';
2099 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2100
2101
2102 {
2103 * FillPoly() *** DEPRECATED ***
2104 *
2105 * Mac OS X threading:
2106 * Not thread safe
2107 *
2108 * Availability:
2109 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2110 * CarbonLib: in CarbonLib 1.0 and later
2111 * Non-Carbon CFM: not available
2112 }
2113 procedure FillPoly( poly: PolyHandle; const (*var*) pat: Pattern ); external name '_FillPoly';
2114 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2115
2116
2117 {$endc} {not TARGET_CPU_64}
2118
2119 {
2120 * SetPt()
2121 *
2122 * Mac OS X threading:
2123 * Not thread safe
2124 *
2125 * Availability:
2126 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
2127 * CarbonLib: in CarbonLib 1.0 and later
2128 * Non-Carbon CFM: not available
2129 }
2130 procedure SetPt( var pt: Point; h: SInt16; v: SInt16 ); external name '_SetPt';
2131 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
2132
2133
2134 {$ifc not TARGET_CPU_64}
2135 {
2136 * LocalToGlobal() *** DEPRECATED ***
2137 *
2138 * Mac OS X threading:
2139 * Not thread safe
2140 *
2141 * Availability:
2142 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2143 * CarbonLib: in CarbonLib 1.0 and later
2144 * Non-Carbon CFM: not available
2145 }
2146 procedure LocalToGlobal( var pt: Point ); external name '_LocalToGlobal';
2147 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2148
2149
2150 {
2151 * GlobalToLocal() *** DEPRECATED ***
2152 *
2153 * Mac OS X threading:
2154 * Not thread safe
2155 *
2156 * Availability:
2157 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2158 * CarbonLib: in CarbonLib 1.0 and later
2159 * Non-Carbon CFM: not available
2160 }
2161 procedure GlobalToLocal( var pt: Point ); external name '_GlobalToLocal';
2162 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2163
2164
2165 { For a replacement, read the man pages of rand, random, arc4random in <stdlib.h> }
2166 {
2167 * Random() *** DEPRECATED ***
2168 *
2169 * Mac OS X threading:
2170 * Not thread safe
2171 *
2172 * Availability:
2173 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2174 * CarbonLib: in CarbonLib 1.0 and later
2175 * Non-Carbon CFM: not available
2176 }
Randomnull2177 function Random: SInt16; external name '_Random';
2178 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2179
2180
2181 {
2182 * StuffHex() *** DEPRECATED ***
2183 *
2184 * Mac OS X threading:
2185 * Not thread safe
2186 *
2187 * Availability:
2188 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2189 * CarbonLib: in CarbonLib 1.0 and later
2190 * Non-Carbon CFM: not available
2191 }
2192 procedure StuffHex( thingPtr: UnivPtr; const (*var*) s: Str255 ); external name '_StuffHex';
2193 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2194
2195
2196 {
2197 * [Mac]GetPixel() *** DEPRECATED ***
2198 *
2199 * Mac OS X threading:
2200 * Not thread safe
2201 *
2202 * Availability:
2203 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2204 * CarbonLib: in CarbonLib 1.0 and later
2205 * Non-Carbon CFM: not available
2206 }
MacGetPixelnull2207 function MacGetPixel( h: SInt16; v: SInt16 ): Boolean; external name '_GetPixel';
2208 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
GetPixelnull2209 function GetPixel( h: SInt16; v: SInt16 ): Boolean; external name '_GetPixel';
2210 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2211
2212
2213 {$endc} {not TARGET_CPU_64}
2214
2215 {
2216 * ScalePt()
2217 *
2218 * Mac OS X threading:
2219 * Not thread safe
2220 *
2221 * Availability:
2222 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
2223 * CarbonLib: in CarbonLib 1.0 and later
2224 * Non-Carbon CFM: not available
2225 }
2226 procedure ScalePt( var pt: Point; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect ); external name '_ScalePt';
2227 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
2228
2229
2230 {
2231 * MapPt()
2232 *
2233 * Mac OS X threading:
2234 * Not thread safe
2235 *
2236 * Availability:
2237 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
2238 * CarbonLib: in CarbonLib 1.0 and later
2239 * Non-Carbon CFM: not available
2240 }
2241 procedure MapPt( var pt: Point; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect ); external name '_MapPt';
2242 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
2243
2244
2245 {
2246 * MapRect()
2247 *
2248 * Mac OS X threading:
2249 * Not thread safe
2250 *
2251 * Availability:
2252 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
2253 * CarbonLib: in CarbonLib 1.0 and later
2254 * Non-Carbon CFM: not available
2255 }
2256 procedure MapRect( var r: Rect; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect ); external name '_MapRect';
2257 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
2258
2259
2260 {$ifc not TARGET_CPU_64}
2261 {
2262 * MapRgn()
2263 *
2264 * Mac OS X threading:
2265 * Not thread safe
2266 *
2267 * Availability:
2268 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
2269 * CarbonLib: in CarbonLib 1.0 and later
2270 * Non-Carbon CFM: not available
2271 }
2272 procedure MapRgn( rgn: RgnHandle; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect ); external name '_MapRgn';
2273 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
2274
2275
2276 {
2277 * MapPoly() *** DEPRECATED ***
2278 *
2279 * Mac OS X threading:
2280 * Not thread safe
2281 *
2282 * Availability:
2283 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2284 * CarbonLib: in CarbonLib 1.0 and later
2285 * Non-Carbon CFM: not available
2286 }
2287 procedure MapPoly( poly: PolyHandle; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect ); external name '_MapPoly';
2288 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2289
2290
2291 {
2292 * SetStdProcs() *** DEPRECATED ***
2293 *
2294 * Mac OS X threading:
2295 * Not thread safe
2296 *
2297 * Availability:
2298 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2299 * CarbonLib: in CarbonLib 1.0 and later
2300 * Non-Carbon CFM: not available
2301 }
2302 procedure SetStdProcs( var procs: QDProcs ); external name '_SetStdProcs';
2303 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2304
2305
2306 {
2307 * StdRect() *** DEPRECATED ***
2308 *
2309 * Mac OS X threading:
2310 * Not thread safe
2311 *
2312 * Availability:
2313 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2314 * CarbonLib: in CarbonLib 1.0 and later
2315 * Non-Carbon CFM: not available
2316 }
2317 procedure StdRect( verb: GrafVerb; const (*var*) r: Rect ); external name '_StdRect';
2318 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2319
2320
2321 {
2322 * StdRRect() *** DEPRECATED ***
2323 *
2324 * Mac OS X threading:
2325 * Not thread safe
2326 *
2327 * Availability:
2328 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2329 * CarbonLib: in CarbonLib 1.0 and later
2330 * Non-Carbon CFM: not available
2331 }
2332 procedure StdRRect( verb: GrafVerb; const (*var*) r: Rect; ovalWidth: SInt16; ovalHeight: SInt16 ); external name '_StdRRect';
2333 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2334
2335
2336 {
2337 * StdOval() *** DEPRECATED ***
2338 *
2339 * Mac OS X threading:
2340 * Not thread safe
2341 *
2342 * Availability:
2343 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2344 * CarbonLib: in CarbonLib 1.0 and later
2345 * Non-Carbon CFM: not available
2346 }
2347 procedure StdOval( verb: GrafVerb; const (*var*) r: Rect ); external name '_StdOval';
2348 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2349
2350
2351 {
2352 * StdArc() *** DEPRECATED ***
2353 *
2354 * Mac OS X threading:
2355 * Not thread safe
2356 *
2357 * Availability:
2358 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2359 * CarbonLib: in CarbonLib 1.0 and later
2360 * Non-Carbon CFM: not available
2361 }
2362 procedure StdArc( verb: GrafVerb; const (*var*) r: Rect; startAngle: SInt16; arcAngle: SInt16 ); external name '_StdArc';
2363 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2364
2365
2366 {
2367 * StdPoly() *** DEPRECATED ***
2368 *
2369 * Mac OS X threading:
2370 * Not thread safe
2371 *
2372 * Availability:
2373 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2374 * CarbonLib: in CarbonLib 1.0 and later
2375 * Non-Carbon CFM: not available
2376 }
2377 procedure StdPoly( verb: GrafVerb; poly: PolyHandle ); external name '_StdPoly';
2378 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2379
2380
2381 {
2382 * StdRgn() *** DEPRECATED ***
2383 *
2384 * Mac OS X threading:
2385 * Not thread safe
2386 *
2387 * Availability:
2388 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2389 * CarbonLib: in CarbonLib 1.0 and later
2390 * Non-Carbon CFM: not available
2391 }
2392 procedure StdRgn( verb: GrafVerb; rgn: RgnHandle ); external name '_StdRgn';
2393 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2394
2395
2396 {
2397 * StdBits() *** DEPRECATED ***
2398 *
2399 * Mac OS X threading:
2400 * Not thread safe
2401 *
2402 * Availability:
2403 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2404 * CarbonLib: in CarbonLib 1.0 and later
2405 * Non-Carbon CFM: not available
2406 }
2407 procedure StdBits( const (*var*) srcBits: BitMap; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect; mode: SInt16; maskRgn: RgnHandle ); external name '_StdBits';
2408 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2409
2410
2411 {
2412 * StdComment() *** DEPRECATED ***
2413 *
2414 * Mac OS X threading:
2415 * Not thread safe
2416 *
2417 * Availability:
2418 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2419 * CarbonLib: in CarbonLib 1.0 and later
2420 * Non-Carbon CFM: not available
2421 }
2422 procedure StdComment( kind: SInt16; dataSize: SInt16; dataHandle: Handle ); external name '_StdComment';
2423 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2424
2425
2426 {
2427 * StdGetPic() *** DEPRECATED ***
2428 *
2429 * Mac OS X threading:
2430 * Not thread safe
2431 *
2432 * Availability:
2433 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2434 * CarbonLib: in CarbonLib 1.0 and later
2435 * Non-Carbon CFM: not available
2436 }
2437 procedure StdGetPic( dataPtr: UnivPtr; byteCount: SInt16 ); external name '_StdGetPic';
2438 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2439
2440
2441 {
2442 * StdPutPic() *** DEPRECATED ***
2443 *
2444 * Mac OS X threading:
2445 * Not thread safe
2446 *
2447 * Availability:
2448 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2449 * CarbonLib: in CarbonLib 1.0 and later
2450 * Non-Carbon CFM: not available
2451 }
2452 procedure StdPutPic( dataPtr: {const} UnivPtr; byteCount: SInt16 ); external name '_StdPutPic';
2453 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2454
2455
2456 {
2457 * StdOpcode() *** DEPRECATED ***
2458 *
2459 * Mac OS X threading:
2460 * Not thread safe
2461 *
2462 * Availability:
2463 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2464 * CarbonLib: in CarbonLib 1.0 and later
2465 * Non-Carbon CFM: not available
2466 }
2467 procedure StdOpcode( const (*var*) fromRect: Rect; const (*var*) toRect: Rect; opcode: UInt16; version: SInt16 ); external name '_StdOpcode';
2468 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2469
2470
2471 {$endc} {not TARGET_CPU_64}
2472
2473 {
2474 * AddPt()
2475 *
2476 * Mac OS X threading:
2477 * Not thread safe
2478 *
2479 * Availability:
2480 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
2481 * CarbonLib: in CarbonLib 1.0 and later
2482 * Non-Carbon CFM: not available
2483 }
2484 procedure AddPt( src: Point; var dst: Point ); external name '_AddPt';
2485 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
2486
2487
2488 {
2489 * EqualPt()
2490 *
2491 * Mac OS X threading:
2492 * Not thread safe
2493 *
2494 * Availability:
2495 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
2496 * CarbonLib: in CarbonLib 1.0 and later
2497 * Non-Carbon CFM: not available
2498 }
EqualPtnull2499 function EqualPt( pt1: Point; pt2: Point ): Boolean; external name '_EqualPt';
2500 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
2501
2502
2503 {
2504 * [Mac]PtInRect()
2505 *
2506 * Mac OS X threading:
2507 * Not thread safe
2508 *
2509 * Availability:
2510 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
2511 * CarbonLib: in CarbonLib 1.0 and later
2512 * Non-Carbon CFM: not available
2513 }
MacPtInRectnull2514 function MacPtInRect( pt: Point; const (*var*) r: Rect ): Boolean; external name '_PtInRect';
2515 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
PtInRectnull2516 function PtInRect( pt: Point; const (*var*) r: Rect ): Boolean; external name '_PtInRect';
2517 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
2518
2519
2520 {
2521 * Pt2Rect()
2522 *
2523 * Mac OS X threading:
2524 * Not thread safe
2525 *
2526 * Availability:
2527 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
2528 * CarbonLib: in CarbonLib 1.0 and later
2529 * Non-Carbon CFM: not available
2530 }
2531 procedure Pt2Rect( pt1: Point; pt2: Point; var dstRect: Rect ); external name '_Pt2Rect';
2532 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
2533
2534
2535 {
2536 * PtToAngle()
2537 *
2538 * Mac OS X threading:
2539 * Not thread safe
2540 *
2541 * Availability:
2542 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
2543 * CarbonLib: in CarbonLib 1.0 and later
2544 * Non-Carbon CFM: not available
2545 }
2546 procedure PtToAngle( const (*var*) r: Rect; pt: Point; var angle: SInt16 ); external name '_PtToAngle';
2547 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
2548
2549
2550 {
2551 * SubPt()
2552 *
2553 * Mac OS X threading:
2554 * Not thread safe
2555 *
2556 * Availability:
2557 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
2558 * CarbonLib: in CarbonLib 1.0 and later
2559 * Non-Carbon CFM: not available
2560 }
2561 procedure SubPt( src: Point; var dst: Point ); external name '_SubPt';
2562 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
2563
2564
2565 {$ifc not TARGET_CPU_64}
2566 {
2567 * PtInRgn()
2568 *
2569 * Mac OS X threading:
2570 * Not thread safe
2571 *
2572 * Availability:
2573 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
2574 * CarbonLib: in CarbonLib 1.0 and later
2575 * Non-Carbon CFM: not available
2576 }
PtInRgnnull2577 function PtInRgn( pt: Point; rgn: RgnHandle ): Boolean; external name '_PtInRgn';
2578 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
2579
2580
2581 {
2582 * StdLine() *** DEPRECATED ***
2583 *
2584 * Mac OS X threading:
2585 * Not thread safe
2586 *
2587 * Availability:
2588 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2589 * CarbonLib: in CarbonLib 1.0 and later
2590 * Non-Carbon CFM: not available
2591 }
2592 procedure StdLine( newPt: Point ); external name '_StdLine';
2593 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2594
2595
2596 {
2597 * NewPixMap() *** DEPRECATED ***
2598 *
2599 * Mac OS X threading:
2600 * Not thread safe
2601 *
2602 * Availability:
2603 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2604 * CarbonLib: in CarbonLib 1.0 and later
2605 * Non-Carbon CFM: not available
2606 }
NewPixMapnull2607 function NewPixMap: PixMapHandle; external name '_NewPixMap';
2608 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2609
2610
2611 {
2612 * DisposePixMap() *** DEPRECATED ***
2613 *
2614 * Mac OS X threading:
2615 * Not thread safe
2616 *
2617 * Availability:
2618 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2619 * CarbonLib: in CarbonLib 1.0 and later
2620 * Non-Carbon CFM: not available
2621 }
2622 procedure DisposePixMap( pm: PixMapHandle ); external name '_DisposePixMap';
2623 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2624
2625
2626 {
2627 * CopyPixMap() *** DEPRECATED ***
2628 *
2629 * Mac OS X threading:
2630 * Not thread safe
2631 *
2632 * Availability:
2633 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2634 * CarbonLib: in CarbonLib 1.0 and later
2635 * Non-Carbon CFM: not available
2636 }
2637 procedure CopyPixMap( srcPM: PixMapHandle; dstPM: PixMapHandle ); external name '_CopyPixMap';
2638 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2639
2640
2641 {
2642 * NewPixPat() *** DEPRECATED ***
2643 *
2644 * Mac OS X threading:
2645 * Not thread safe
2646 *
2647 * Availability:
2648 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2649 * CarbonLib: in CarbonLib 1.0 and later
2650 * Non-Carbon CFM: not available
2651 }
NewPixPatnull2652 function NewPixPat: PixPatHandle; external name '_NewPixPat';
2653 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2654
2655
2656 {
2657 * DisposePixPat() *** DEPRECATED ***
2658 *
2659 * Mac OS X threading:
2660 * Not thread safe
2661 *
2662 * Availability:
2663 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2664 * CarbonLib: in CarbonLib 1.0 and later
2665 * Non-Carbon CFM: not available
2666 }
2667 procedure DisposePixPat( pp: PixPatHandle ); external name '_DisposePixPat';
2668 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2669
2670
2671 {
2672 * CopyPixPat() *** DEPRECATED ***
2673 *
2674 * Mac OS X threading:
2675 * Not thread safe
2676 *
2677 * Availability:
2678 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2679 * CarbonLib: in CarbonLib 1.0 and later
2680 * Non-Carbon CFM: not available
2681 }
2682 procedure CopyPixPat( srcPP: PixPatHandle; dstPP: PixPatHandle ); external name '_CopyPixPat';
2683 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2684
2685
2686 {
2687 * PenPixPat() *** DEPRECATED ***
2688 *
2689 * Mac OS X threading:
2690 * Not thread safe
2691 *
2692 * Availability:
2693 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2694 * CarbonLib: in CarbonLib 1.0 and later
2695 * Non-Carbon CFM: not available
2696 }
2697 procedure PenPixPat( pp: PixPatHandle ); external name '_PenPixPat';
2698 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2699
2700
2701 {
2702 * BackPixPat() *** DEPRECATED ***
2703 *
2704 * Mac OS X threading:
2705 * Not thread safe
2706 *
2707 * Availability:
2708 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2709 * CarbonLib: in CarbonLib 1.0 and later
2710 * Non-Carbon CFM: not available
2711 }
2712 procedure BackPixPat( pp: PixPatHandle ); external name '_BackPixPat';
2713 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2714
2715
2716 {
2717 * GetPixPat() *** DEPRECATED ***
2718 *
2719 * Mac OS X threading:
2720 * Not thread safe
2721 *
2722 * Availability:
2723 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2724 * CarbonLib: in CarbonLib 1.0 and later
2725 * Non-Carbon CFM: not available
2726 }
GetPixPatnull2727 function GetPixPat( patID: SInt16 ): PixPatHandle; external name '_GetPixPat';
2728 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2729
2730
2731 {
2732 * MakeRGBPat() *** DEPRECATED ***
2733 *
2734 * Mac OS X threading:
2735 * Not thread safe
2736 *
2737 * Availability:
2738 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2739 * CarbonLib: in CarbonLib 1.0 and later
2740 * Non-Carbon CFM: not available
2741 }
2742 procedure MakeRGBPat( pp: PixPatHandle; const (*var*) myColor: RGBColor ); external name '_MakeRGBPat';
2743 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2744
2745
2746 {
2747 * FillCRect() *** DEPRECATED ***
2748 *
2749 * Mac OS X threading:
2750 * Not thread safe
2751 *
2752 * Availability:
2753 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2754 * CarbonLib: in CarbonLib 1.0 and later
2755 * Non-Carbon CFM: not available
2756 }
2757 procedure FillCRect( const (*var*) r: Rect; pp: PixPatHandle ); external name '_FillCRect';
2758 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2759
2760
2761 {
2762 * FillCOval() *** DEPRECATED ***
2763 *
2764 * Mac OS X threading:
2765 * Not thread safe
2766 *
2767 * Availability:
2768 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2769 * CarbonLib: in CarbonLib 1.0 and later
2770 * Non-Carbon CFM: not available
2771 }
2772 procedure FillCOval( const (*var*) r: Rect; pp: PixPatHandle ); external name '_FillCOval';
2773 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2774
2775
2776 {
2777 * FillCRoundRect() *** DEPRECATED ***
2778 *
2779 * Mac OS X threading:
2780 * Not thread safe
2781 *
2782 * Availability:
2783 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2784 * CarbonLib: in CarbonLib 1.0 and later
2785 * Non-Carbon CFM: not available
2786 }
2787 procedure FillCRoundRect( const (*var*) r: Rect; ovalWidth: SInt16; ovalHeight: SInt16; pp: PixPatHandle ); external name '_FillCRoundRect';
2788 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2789
2790
2791 {
2792 * FillCArc() *** DEPRECATED ***
2793 *
2794 * Mac OS X threading:
2795 * Not thread safe
2796 *
2797 * Availability:
2798 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2799 * CarbonLib: in CarbonLib 1.0 and later
2800 * Non-Carbon CFM: not available
2801 }
2802 procedure FillCArc( const (*var*) r: Rect; startAngle: SInt16; arcAngle: SInt16; pp: PixPatHandle ); external name '_FillCArc';
2803 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2804
2805
2806 {
2807 * FillCRgn() *** DEPRECATED ***
2808 *
2809 * Mac OS X threading:
2810 * Not thread safe
2811 *
2812 * Availability:
2813 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2814 * CarbonLib: in CarbonLib 1.0 and later
2815 * Non-Carbon CFM: not available
2816 }
2817 procedure FillCRgn( rgn: RgnHandle; pp: PixPatHandle ); external name '_FillCRgn';
2818 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2819
2820
2821 {
2822 * FillCPoly() *** DEPRECATED ***
2823 *
2824 * Mac OS X threading:
2825 * Not thread safe
2826 *
2827 * Availability:
2828 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2829 * CarbonLib: in CarbonLib 1.0 and later
2830 * Non-Carbon CFM: not available
2831 }
2832 procedure FillCPoly( poly: PolyHandle; pp: PixPatHandle ); external name '_FillCPoly';
2833 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2834
2835
2836 {
2837 * RGBForeColor() *** DEPRECATED ***
2838 *
2839 * Mac OS X threading:
2840 * Not thread safe
2841 *
2842 * Availability:
2843 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2844 * CarbonLib: in CarbonLib 1.0 and later
2845 * Non-Carbon CFM: not available
2846 }
2847 procedure RGBForeColor( const (*var*) color: RGBColor ); external name '_RGBForeColor';
2848 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2849
2850
2851 {
2852 * RGBBackColor() *** DEPRECATED ***
2853 *
2854 * Mac OS X threading:
2855 * Not thread safe
2856 *
2857 * Availability:
2858 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2859 * CarbonLib: in CarbonLib 1.0 and later
2860 * Non-Carbon CFM: not available
2861 }
2862 procedure RGBBackColor( const (*var*) color: RGBColor ); external name '_RGBBackColor';
2863 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2864
2865
2866 {
2867 * SetCPixel() *** DEPRECATED ***
2868 *
2869 * Mac OS X threading:
2870 * Not thread safe
2871 *
2872 * Availability:
2873 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2874 * CarbonLib: in CarbonLib 1.0 and later
2875 * Non-Carbon CFM: not available
2876 }
2877 procedure SetCPixel( h: SInt16; v: SInt16; const (*var*) cPix: RGBColor ); external name '_SetCPixel';
2878 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2879
2880
2881 {
2882 * SetPortPix() *** DEPRECATED ***
2883 *
2884 * Mac OS X threading:
2885 * Not thread safe
2886 *
2887 * Availability:
2888 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2889 * CarbonLib: in CarbonLib 1.0 and later
2890 * Non-Carbon CFM: not available
2891 }
2892 procedure SetPortPix( pm: PixMapHandle ); external name '_SetPortPix';
2893 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2894
2895
2896 {
2897 * GetCPixel() *** DEPRECATED ***
2898 *
2899 * Mac OS X threading:
2900 * Not thread safe
2901 *
2902 * Availability:
2903 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2904 * CarbonLib: in CarbonLib 1.0 and later
2905 * Non-Carbon CFM: not available
2906 }
2907 procedure GetCPixel( h: SInt16; v: SInt16; var cPix: RGBColor ); external name '_GetCPixel';
2908 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2909
2910
2911 {
2912 * GetForeColor() *** DEPRECATED ***
2913 *
2914 * Mac OS X threading:
2915 * Not thread safe
2916 *
2917 * Availability:
2918 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2919 * CarbonLib: in CarbonLib 1.0 and later
2920 * Non-Carbon CFM: not available
2921 }
2922 procedure GetForeColor( var color: RGBColor ); external name '_GetForeColor';
2923 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2924
2925
2926 {
2927 * GetBackColor() *** DEPRECATED ***
2928 *
2929 * Mac OS X threading:
2930 * Not thread safe
2931 *
2932 * Availability:
2933 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2934 * CarbonLib: in CarbonLib 1.0 and later
2935 * Non-Carbon CFM: not available
2936 }
2937 procedure GetBackColor( var color: RGBColor ); external name '_GetBackColor';
2938 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2939
2940
2941 {
2942 * SeedCFill() *** DEPRECATED ***
2943 *
2944 * Mac OS X threading:
2945 * Not thread safe
2946 *
2947 * Availability:
2948 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2949 * CarbonLib: in CarbonLib 1.0 and later
2950 * Non-Carbon CFM: not available
2951 }
2952 procedure SeedCFill( const (*var*) srcBits: BitMap; const (*var*) dstBits: BitMap; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect; seedH: SInt16; seedV: SInt16; matchProc: ColorSearchUPP; matchData: SIGNEDLONG ); external name '_SeedCFill';
2953 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2954
2955
2956 {
2957 * CalcCMask() *** DEPRECATED ***
2958 *
2959 * Mac OS X threading:
2960 * Not thread safe
2961 *
2962 * Availability:
2963 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2964 * CarbonLib: in CarbonLib 1.0 and later
2965 * Non-Carbon CFM: not available
2966 }
2967 procedure CalcCMask( const (*var*) srcBits: BitMap; const (*var*) dstBits: BitMap; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect; const (*var*) seedRGB: RGBColor; matchProc: ColorSearchUPP; matchData: SIGNEDLONG ); external name '_CalcCMask';
2968 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2969
2970
2971 {
2972 * OpenCPicture() *** DEPRECATED ***
2973 *
2974 * Mac OS X threading:
2975 * Not thread safe
2976 *
2977 * Availability:
2978 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2979 * CarbonLib: in CarbonLib 1.0 and later
2980 * Non-Carbon CFM: not available
2981 }
OpenCPicturenull2982 function OpenCPicture( const (*var*) newHeader: OpenCPicParams ): PicHandle; external name '_OpenCPicture';
2983 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2984
2985
2986 {
2987 * OpColor() *** DEPRECATED ***
2988 *
2989 * Mac OS X threading:
2990 * Not thread safe
2991 *
2992 * Availability:
2993 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
2994 * CarbonLib: in CarbonLib 1.0 and later
2995 * Non-Carbon CFM: not available
2996 }
2997 procedure OpColor( const (*var*) color: RGBColor ); external name '_OpColor';
2998 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
2999
3000
3001 {
3002 * HiliteColor() *** DEPRECATED ***
3003 *
3004 * Mac OS X threading:
3005 * Not thread safe
3006 *
3007 * Availability:
3008 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3009 * CarbonLib: in CarbonLib 1.0 and later
3010 * Non-Carbon CFM: not available
3011 }
3012 procedure HiliteColor( const (*var*) color: RGBColor ); external name '_HiliteColor';
3013 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3014
3015
3016 {
3017 * DisposeCTable() *** DEPRECATED ***
3018 *
3019 * Mac OS X threading:
3020 * Not thread safe
3021 *
3022 * Availability:
3023 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3024 * CarbonLib: in CarbonLib 1.0 and later
3025 * Non-Carbon CFM: not available
3026 }
3027 procedure DisposeCTable( cTable: CTabHandle ); external name '_DisposeCTable';
3028 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3029
3030
3031 {
3032 * GetCTable() *** DEPRECATED ***
3033 *
3034 * Mac OS X threading:
3035 * Not thread safe
3036 *
3037 * Availability:
3038 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3039 * CarbonLib: in CarbonLib 1.0 and later
3040 * Non-Carbon CFM: not available
3041 }
GetCTablenull3042 function GetCTable( ctID: SInt16 ): CTabHandle; external name '_GetCTable';
3043 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3044
3045
3046 {
3047 * GetCCursor() *** DEPRECATED ***
3048 *
3049 * Mac OS X threading:
3050 * Not thread safe
3051 *
3052 * Availability:
3053 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3054 * CarbonLib: in CarbonLib 1.0 and later
3055 * Non-Carbon CFM: not available
3056 }
GetCCursornull3057 function GetCCursor( crsrID: SInt16 ): CCrsrHandle; external name '_GetCCursor';
3058 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3059
3060
3061 {
3062 * SetCCursor() *** DEPRECATED ***
3063 *
3064 * Mac OS X threading:
3065 * Not thread safe
3066 *
3067 * Availability:
3068 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3069 * CarbonLib: in CarbonLib 1.0 and later
3070 * Non-Carbon CFM: not available
3071 }
3072 procedure SetCCursor( cCrsr: CCrsrHandle ); external name '_SetCCursor';
3073 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3074
3075
3076 {
3077 * AllocCursor() *** DEPRECATED ***
3078 *
3079 * Mac OS X threading:
3080 * Not thread safe
3081 *
3082 * Availability:
3083 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3084 * CarbonLib: in CarbonLib 1.0 and later
3085 * Non-Carbon CFM: not available
3086 }
3087 procedure AllocCursor; external name '_AllocCursor';
3088 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3089
3090
3091 {
3092 * DisposeCCursor() *** DEPRECATED ***
3093 *
3094 * Mac OS X threading:
3095 * Not thread safe
3096 *
3097 * Availability:
3098 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3099 * CarbonLib: in CarbonLib 1.0 and later
3100 * Non-Carbon CFM: not available
3101 }
3102 procedure DisposeCCursor( cCrsr: CCrsrHandle ); external name '_DisposeCCursor';
3103 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3104
3105
3106 { GetCIcon(), PlotCIcon(), and DisposeCIcon() moved to Icons.h}
3107
3108 {
3109 * SetStdCProcs() *** DEPRECATED ***
3110 *
3111 * Mac OS X threading:
3112 * Not thread safe
3113 *
3114 * Availability:
3115 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3116 * CarbonLib: in CarbonLib 1.0 and later
3117 * Non-Carbon CFM: not available
3118 }
3119 procedure SetStdCProcs( var procs: CQDProcs ); external name '_SetStdCProcs';
3120 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3121
3122
3123 {
3124 * GetMaxDevice() *** DEPRECATED ***
3125 *
3126 * Mac OS X threading:
3127 * Not thread safe
3128 *
3129 * Availability:
3130 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3131 * CarbonLib: in CarbonLib 1.0 and later
3132 * Non-Carbon CFM: not available
3133 }
GetMaxDevicenull3134 function GetMaxDevice( const (*var*) globalRect: Rect ): GDHandle; external name '_GetMaxDevice';
3135 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3136
3137
3138 {
3139 * GetCTSeed() *** DEPRECATED ***
3140 *
3141 * Mac OS X threading:
3142 * Not thread safe
3143 *
3144 * Availability:
3145 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3146 * CarbonLib: in CarbonLib 1.0 and later
3147 * Non-Carbon CFM: not available
3148 }
GetCTSeednull3149 function GetCTSeed: SIGNEDLONG; external name '_GetCTSeed';
3150 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3151
3152
3153 { Replacements for the following (as far as still needed in a QD-free world)
3154 * can be found in CoreGraphics/CGDirectDisplay.h:
3155 * CGGetActiveDisplayList, CGMainDisplayID, CGDisplayBounds, etc.
3156 }
3157 {
3158 * GetDeviceList() *** DEPRECATED ***
3159 *
3160 * Mac OS X threading:
3161 * Not thread safe
3162 *
3163 * Availability:
3164 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3165 * CarbonLib: in CarbonLib 1.0 and later
3166 * Non-Carbon CFM: not available
3167 }
GetDeviceListnull3168 function GetDeviceList: GDHandle; external name '_GetDeviceList';
3169 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3170
3171
3172 {
3173 * GetMainDevice() *** DEPRECATED ***
3174 *
3175 * Mac OS X threading:
3176 * Not thread safe
3177 *
3178 * Availability:
3179 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3180 * CarbonLib: in CarbonLib 1.0 and later
3181 * Non-Carbon CFM: not available
3182 }
GetMainDevicenull3183 function GetMainDevice: GDHandle; external name '_GetMainDevice';
3184 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3185
3186
3187 {
3188 * GetNextDevice() *** DEPRECATED ***
3189 *
3190 * Mac OS X threading:
3191 * Not thread safe
3192 *
3193 * Availability:
3194 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3195 * CarbonLib: in CarbonLib 1.0 and later
3196 * Non-Carbon CFM: not available
3197 }
GetNextDevicenull3198 function GetNextDevice( curDevice: GDHandle ): GDHandle; external name '_GetNextDevice';
3199 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3200
3201
3202 {
3203 * TestDeviceAttribute() *** DEPRECATED ***
3204 *
3205 * Mac OS X threading:
3206 * Not thread safe
3207 *
3208 * Availability:
3209 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3210 * CarbonLib: in CarbonLib 1.0 and later
3211 * Non-Carbon CFM: not available
3212 }
TestDeviceAttributenull3213 function TestDeviceAttribute( gdh: GDHandle; attribute: SInt16 ): Boolean; external name '_TestDeviceAttribute';
3214 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3215
3216
3217 {
3218 * SetDeviceAttribute() *** DEPRECATED ***
3219 *
3220 * Mac OS X threading:
3221 * Not thread safe
3222 *
3223 * Availability:
3224 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3225 * CarbonLib: in CarbonLib 1.0 and later
3226 * Non-Carbon CFM: not available
3227 }
3228 procedure SetDeviceAttribute( gdh: GDHandle; attribute: SInt16; value: Boolean ); external name '_SetDeviceAttribute';
3229 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3230
3231
3232 {
3233 * InitGDevice() *** DEPRECATED ***
3234 *
3235 * Mac OS X threading:
3236 * Not thread safe
3237 *
3238 * Availability:
3239 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3240 * CarbonLib: in CarbonLib 1.0 and later
3241 * Non-Carbon CFM: not available
3242 }
3243 procedure InitGDevice( qdRefNum: SInt16; mode: SIGNEDLONG; gdh: GDHandle ); external name '_InitGDevice';
3244 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3245
3246
3247 {
3248 * NewGDevice() *** DEPRECATED ***
3249 *
3250 * Mac OS X threading:
3251 * Not thread safe
3252 *
3253 * Availability:
3254 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3255 * CarbonLib: in CarbonLib 1.0 and later
3256 * Non-Carbon CFM: not available
3257 }
NewGDevicenull3258 function NewGDevice( refNum: SInt16; mode: SIGNEDLONG ): GDHandle; external name '_NewGDevice';
3259 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3260
3261
3262 {
3263 * DisposeGDevice() *** DEPRECATED ***
3264 *
3265 * Mac OS X threading:
3266 * Not thread safe
3267 *
3268 * Availability:
3269 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3270 * CarbonLib: in CarbonLib 1.0 and later
3271 * Non-Carbon CFM: not available
3272 }
3273 procedure DisposeGDevice( gdh: GDHandle ); external name '_DisposeGDevice';
3274 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3275
3276
3277 {
3278 * SetGDevice() *** DEPRECATED ***
3279 *
3280 * Mac OS X threading:
3281 * Not thread safe
3282 *
3283 * Availability:
3284 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3285 * CarbonLib: in CarbonLib 1.0 and later
3286 * Non-Carbon CFM: not available
3287 }
3288 procedure SetGDevice( gd: GDHandle ); external name '_SetGDevice';
3289 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3290
3291
3292 {
3293 * GetGDevice() *** DEPRECATED ***
3294 *
3295 * Mac OS X threading:
3296 * Not thread safe
3297 *
3298 * Availability:
3299 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3300 * CarbonLib: in CarbonLib 1.0 and later
3301 * Non-Carbon CFM: not available
3302 }
GetGDevicenull3303 function GetGDevice: GDHandle; external name '_GetGDevice';
3304 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3305
3306
3307 {
3308 * Color2Index() *** DEPRECATED ***
3309 *
3310 * Mac OS X threading:
3311 * Not thread safe
3312 *
3313 * Availability:
3314 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3315 * CarbonLib: in CarbonLib 1.0 and later
3316 * Non-Carbon CFM: not available
3317 }
Color2Indexnull3318 function Color2Index( const (*var*) myColor: RGBColor ): SIGNEDLONG; external name '_Color2Index';
3319 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3320
3321
3322 {
3323 * Index2Color() *** DEPRECATED ***
3324 *
3325 * Mac OS X threading:
3326 * Not thread safe
3327 *
3328 * Availability:
3329 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3330 * CarbonLib: in CarbonLib 1.0 and later
3331 * Non-Carbon CFM: not available
3332 }
3333 procedure Index2Color( index: SIGNEDLONG; var aColor: RGBColor ); external name '_Index2Color';
3334 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3335
3336
3337 {
3338 * InvertColor() *** DEPRECATED ***
3339 *
3340 * Mac OS X threading:
3341 * Not thread safe
3342 *
3343 * Availability:
3344 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3345 * CarbonLib: in CarbonLib 1.0 and later
3346 * Non-Carbon CFM: not available
3347 }
3348 procedure InvertColor( var myColor: RGBColor ); external name '_InvertColor';
3349 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3350
3351
3352 {
3353 * RealColor() *** DEPRECATED ***
3354 *
3355 * Mac OS X threading:
3356 * Not thread safe
3357 *
3358 * Availability:
3359 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3360 * CarbonLib: in CarbonLib 1.0 and later
3361 * Non-Carbon CFM: not available
3362 }
RealColornull3363 function RealColor( const (*var*) color: RGBColor ): Boolean; external name '_RealColor';
3364 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3365
3366
3367 {
3368 * GetSubTable() *** DEPRECATED ***
3369 *
3370 * Mac OS X threading:
3371 * Not thread safe
3372 *
3373 * Availability:
3374 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3375 * CarbonLib: in CarbonLib 1.0 and later
3376 * Non-Carbon CFM: not available
3377 }
3378 procedure GetSubTable( myColors: CTabHandle; iTabRes: SInt16; targetTbl: CTabHandle ); external name '_GetSubTable';
3379 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3380
3381
3382 {
3383 * MakeITable() *** DEPRECATED ***
3384 *
3385 * Mac OS X threading:
3386 * Not thread safe
3387 *
3388 * Availability:
3389 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3390 * CarbonLib: in CarbonLib 1.0 and later
3391 * Non-Carbon CFM: not available
3392 }
3393 procedure MakeITable( cTabH: CTabHandle; iTabH: ITabHandle; res: SInt16 ); external name '_MakeITable';
3394 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3395
3396
3397 {
3398 * AddSearch() *** DEPRECATED ***
3399 *
3400 * Mac OS X threading:
3401 * Not thread safe
3402 *
3403 * Availability:
3404 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3405 * CarbonLib: in CarbonLib 1.0 and later
3406 * Non-Carbon CFM: not available
3407 }
3408 procedure AddSearch( searchProc: ColorSearchUPP ); external name '_AddSearch';
3409 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3410
3411
3412 {
3413 * AddComp() *** DEPRECATED ***
3414 *
3415 * Mac OS X threading:
3416 * Not thread safe
3417 *
3418 * Availability:
3419 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3420 * CarbonLib: in CarbonLib 1.0 and later
3421 * Non-Carbon CFM: not available
3422 }
3423 procedure AddComp( compProc: ColorComplementUPP ); external name '_AddComp';
3424 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3425
3426
3427 {
3428 * DelSearch() *** DEPRECATED ***
3429 *
3430 * Mac OS X threading:
3431 * Not thread safe
3432 *
3433 * Availability:
3434 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3435 * CarbonLib: in CarbonLib 1.0 and later
3436 * Non-Carbon CFM: not available
3437 }
3438 procedure DelSearch( searchProc: ColorSearchUPP ); external name '_DelSearch';
3439 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3440
3441
3442 {
3443 * DelComp() *** DEPRECATED ***
3444 *
3445 * Mac OS X threading:
3446 * Not thread safe
3447 *
3448 * Availability:
3449 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3450 * CarbonLib: in CarbonLib 1.0 and later
3451 * Non-Carbon CFM: not available
3452 }
3453 procedure DelComp( compProc: ColorComplementUPP ); external name '_DelComp';
3454 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3455
3456
3457 {
3458 * SetClientID() *** DEPRECATED ***
3459 *
3460 * Mac OS X threading:
3461 * Not thread safe
3462 *
3463 * Availability:
3464 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3465 * CarbonLib: in CarbonLib 1.0 and later
3466 * Non-Carbon CFM: not available
3467 }
3468 procedure SetClientID( id: SInt16 ); external name '_SetClientID';
3469 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3470
3471
3472 {
3473 * ProtectEntry() *** DEPRECATED ***
3474 *
3475 * Mac OS X threading:
3476 * Not thread safe
3477 *
3478 * Availability:
3479 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3480 * CarbonLib: in CarbonLib 1.0 and later
3481 * Non-Carbon CFM: not available
3482 }
3483 procedure ProtectEntry( index: SInt16; protect: Boolean ); external name '_ProtectEntry';
3484 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3485
3486
3487 {
3488 * ReserveEntry() *** DEPRECATED ***
3489 *
3490 * Mac OS X threading:
3491 * Not thread safe
3492 *
3493 * Availability:
3494 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3495 * CarbonLib: in CarbonLib 1.0 and later
3496 * Non-Carbon CFM: not available
3497 }
3498 procedure ReserveEntry( index: SInt16; reserve: Boolean ); external name '_ReserveEntry';
3499 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3500
3501
3502 {
3503 * SetEntries() *** DEPRECATED ***
3504 *
3505 * Mac OS X threading:
3506 * Not thread safe
3507 *
3508 * Availability:
3509 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3510 * CarbonLib: in CarbonLib 1.0 and later
3511 * Non-Carbon CFM: not available
3512 }
3513 procedure SetEntries( start: SInt16; count: SInt16; var aTable: CSpecArray ); external name '_SetEntries';
3514 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3515
3516
3517 {
3518 * SaveEntries() *** DEPRECATED ***
3519 *
3520 * Mac OS X threading:
3521 * Not thread safe
3522 *
3523 * Availability:
3524 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3525 * CarbonLib: in CarbonLib 1.0 and later
3526 * Non-Carbon CFM: not available
3527 }
3528 procedure SaveEntries( srcTable: CTabHandle; resultTable: CTabHandle; var selection: ReqListRec ); external name '_SaveEntries';
3529 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3530
3531
3532 {
3533 * RestoreEntries() *** DEPRECATED ***
3534 *
3535 * Mac OS X threading:
3536 * Not thread safe
3537 *
3538 * Availability:
3539 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3540 * CarbonLib: in CarbonLib 1.0 and later
3541 * Non-Carbon CFM: not available
3542 }
3543 procedure RestoreEntries( srcTable: CTabHandle; dstTable: CTabHandle; var selection: ReqListRec ); external name '_RestoreEntries';
3544 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3545
3546
3547 {
3548 * QDError() *** DEPRECATED ***
3549 *
3550 * Mac OS X threading:
3551 * Not thread safe
3552 *
3553 * Availability:
3554 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3555 * CarbonLib: in CarbonLib 1.0 and later
3556 * Non-Carbon CFM: not available
3557 }
QDErrornull3558 function QDError: SInt16; external name '_QDError';
3559 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3560
3561
3562 {
3563 * CopyDeepMask() *** DEPRECATED ***
3564 *
3565 * Mac OS X threading:
3566 * Not thread safe
3567 *
3568 * Availability:
3569 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3570 * CarbonLib: in CarbonLib 1.0 and later
3571 * Non-Carbon CFM: not available
3572 }
3573 procedure CopyDeepMask( const (*var*) srcBits: BitMap; const (*var*) maskBits: BitMap; const (*var*) dstBits: BitMap; const (*var*) srcRect: Rect; const (*var*) maskRect: Rect; const (*var*) dstRect: Rect; mode: SInt16; maskRgn: RgnHandle { can be NULL } ); external name '_CopyDeepMask';
3574 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3575
3576
3577 {$endc} {not TARGET_CPU_64}
3578
3579 {$ifc not TARGET_CPU_64}
3580 {
3581 * DeviceLoop() *** DEPRECATED ***
3582 *
3583 * Mac OS X threading:
3584 * Not thread safe
3585 *
3586 * Availability:
3587 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3588 * CarbonLib: in CarbonLib 1.0 and later
3589 * Non-Carbon CFM: not available
3590 }
3591 procedure DeviceLoop( drawingRgn: RgnHandle; drawingProc: DeviceLoopDrawingUPP; userData: SIGNEDLONG; flags: DeviceLoopFlags ); external name '_DeviceLoop';
3592 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3593
3594
3595 {
3596 * GetMaskTable() *** DEPRECATED ***
3597 *
3598 * Mac OS X threading:
3599 * Not thread safe
3600 *
3601 * Availability:
3602 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3603 * CarbonLib: in CarbonLib 1.0 and later
3604 * Non-Carbon CFM: not available
3605 }
GetMaskTablenull3606 function GetMaskTable: Ptr; external name '_GetMaskTable';
3607 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3608
3609
3610 {
3611 * GetPattern() *** DEPRECATED ***
3612 *
3613 * Mac OS X threading:
3614 * Not thread safe
3615 *
3616 * Availability:
3617 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3618 * CarbonLib: in CarbonLib 1.0 and later
3619 * Non-Carbon CFM: not available
3620 }
GetPatternnull3621 function GetPattern( patternID: SInt16 ): PatHandle; external name '_GetPattern';
3622 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3623
3624
3625 {
3626 * [Mac]GetCursor() *** DEPRECATED ***
3627 *
3628 * Mac OS X threading:
3629 * Not thread safe
3630 *
3631 * Availability:
3632 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3633 * CarbonLib: in CarbonLib 1.0 and later
3634 * Non-Carbon CFM: not available
3635 }
MacGetCursornull3636 function MacGetCursor( cursorID: SInt16 ): CursHandle; external name '_GetCursor';
3637 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
GetCursornull3638 function GetCursor( cursorID: SInt16 ): CursHandle; external name '_GetCursor';
3639 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3640
3641
3642 {
3643 * GetPicture() *** DEPRECATED ***
3644 *
3645 * Mac OS X threading:
3646 * Not thread safe
3647 *
3648 * Availability:
3649 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3650 * CarbonLib: in CarbonLib 1.0 and later
3651 * Non-Carbon CFM: not available
3652 }
GetPicturenull3653 function GetPicture( pictureID: SInt16 ): PicHandle; external name '_GetPicture';
3654 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3655
3656
3657 {
3658 * DeltaPoint() *** DEPRECATED ***
3659 *
3660 * Mac OS X threading:
3661 * Not thread safe
3662 *
3663 * Availability:
3664 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3665 * CarbonLib: in CarbonLib 1.0 and later
3666 * Non-Carbon CFM: not available
3667 }
DeltaPointnull3668 function DeltaPoint( ptA: Point; ptB: Point ): SIGNEDLONG; external name '_DeltaPoint';
3669 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3670
3671
3672 {
3673 * ShieldCursor()
3674 *
3675 * Mac OS X threading:
3676 * Not thread safe
3677 *
3678 * Availability:
3679 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
3680 * CarbonLib: in CarbonLib 1.0 and later
3681 * Non-Carbon CFM: not available
3682 }
3683 procedure ShieldCursor( const (*var*) shieldRect: Rect; offsetPt: Point ); external name '_ShieldCursor';
3684 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
3685
3686
3687 {
3688 * ScreenRes() *** DEPRECATED ***
3689 *
3690 * Mac OS X threading:
3691 * Not thread safe
3692 *
3693 * Availability:
3694 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3695 * CarbonLib: in CarbonLib 1.0 and later
3696 * Non-Carbon CFM: not available
3697 }
3698 procedure ScreenRes( var scrnHRes: SInt16; var scrnVRes: SInt16 ); external name '_ScreenRes';
3699 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3700
3701
3702 {
3703 * GetIndPattern() *** DEPRECATED ***
3704 *
3705 * Mac OS X threading:
3706 * Not thread safe
3707 *
3708 * Availability:
3709 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3710 * CarbonLib: in CarbonLib 1.0 and later
3711 * Non-Carbon CFM: not available
3712 }
3713 procedure GetIndPattern( var thePat: Pattern; patternListID: SInt16; index: SInt16 ); external name '_GetIndPattern';
3714 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3715
3716
3717 {$endc} {not TARGET_CPU_64}
3718
3719 {$ifc not TARGET_CPU_64}
3720 {
3721 * deltapoint() *** DEPRECATED ***
3722 *
3723 * Mac OS X threading:
3724 * Not thread safe
3725 *
3726 * Availability:
3727 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3728 * CarbonLib: in CarbonLib 1.0 and later
3729 * Non-Carbon CFM: not available
3730 }
3731 // overloading not possible
deltapointnull3732 // function deltapoint( var ptA: Point; var ptB: Point ): SIGNEDLONG;
3733 // AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4;
3734
3735
3736 {$endc} {not TARGET_CPU_64}
3737
3738 {
3739 From ToolUtils.i
3740 }
3741 {$ifc not TARGET_CPU_64}
3742 {
3743 * PackBits() *** DEPRECATED ***
3744 *
3745 * Mac OS X threading:
3746 * Not thread safe
3747 *
3748 * Availability:
3749 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3750 * CarbonLib: in CarbonLib 1.0 and later
3751 * Non-Carbon CFM: not available
3752 }
3753 procedure PackBits( var srcPtr: Ptr; var dstPtr: Ptr; srcBytes: SInt16 ); external name '_PackBits';
3754 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3755
3756
3757 {
3758 * UnpackBits() *** DEPRECATED ***
3759 *
3760 * Mac OS X threading:
3761 * Not thread safe
3762 *
3763 * Availability:
3764 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3765 * CarbonLib: in CarbonLib 1.0 and later
3766 * Non-Carbon CFM: not available
3767 }
3768 procedure UnpackBits( var srcPtr: Ptr; var dstPtr: Ptr; dstBytes: SInt16 ); external name '_UnpackBits';
3769 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3770
3771
3772 {
3773 * SlopeFromAngle()
3774 *
3775 * Mac OS X threading:
3776 * Not thread safe
3777 *
3778 * Availability:
3779 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
3780 * CarbonLib: in CarbonLib 1.0 and later
3781 * Non-Carbon CFM: not available
3782 }
SlopeFromAnglenull3783 function SlopeFromAngle( angle: SInt16 ): Fixed; external name '_SlopeFromAngle';
3784 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
3785
3786
3787 {
3788 * AngleFromSlope()
3789 *
3790 * Mac OS X threading:
3791 * Not thread safe
3792 *
3793 * Availability:
3794 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
3795 * CarbonLib: in CarbonLib 1.0 and later
3796 * Non-Carbon CFM: not available
3797 }
AngleFromSlopenull3798 function AngleFromSlope( slope: Fixed ): SInt16; external name '_AngleFromSlope';
3799 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
3800
3801
3802 { New transfer modes }
3803 {$endc} {not TARGET_CPU_64}
3804
3805 const
3806 colorXorXFer = 52;
3807 noiseXFer = 53;
3808 customXFer = 54;
3809
3810 { Custom XFer flags }
3811 const
3812 kXFer1PixelAtATime = $00000001; { 1 pixel passed to custom XFer proc}
3813 kXFerConvertPixelToRGB32 = $00000002; { All color depths converted to 32 bit RGB}
3814
3815 type
3816 CustomXFerRec = record
3817 version: UInt32;
3818 srcPixels: UnivPtr;
3819 destPixels: UnivPtr;
3820 resultPixels: UnivPtr;
3821 refCon: UInt32;
3822 pixelSize: UInt32;
3823 pixelCount: UInt32;
3824 firstPixelHV: Point;
3825 destBounds: Rect;
3826 end;
3827 CustomXFerRecPtr = ^CustomXFerRec;
3828 type
3829 CustomXFerProcPtr = procedure( info: CustomXFerRecPtr );
3830 {$ifc not TARGET_CPU_64}
3831 {
3832 * GetPortCustomXFerProc() *** DEPRECATED ***
3833 *
3834 * Mac OS X threading:
3835 * Not thread safe
3836 *
3837 * Availability:
3838 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3839 * CarbonLib: in CarbonLib 1.0 and later
3840 * Non-Carbon CFM: not available
3841 }
GetPortCustomXFerProcnull3842 function GetPortCustomXFerProc( port: CGrafPtr; var proc: CustomXFerProcPtr; var flags: UInt32; var refCon: UInt32 ): OSErr; external name '_GetPortCustomXFerProc';
3843 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3844
3845
3846 {
3847 * SetPortCustomXFerProc() *** DEPRECATED ***
3848 *
3849 * Mac OS X threading:
3850 * Not thread safe
3851 *
3852 * Availability:
3853 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3854 * CarbonLib: in CarbonLib 1.0 and later
3855 * Non-Carbon CFM: not available
3856 }
SetPortCustomXFerProcnull3857 function SetPortCustomXFerProc( port: CGrafPtr; proc: CustomXFerProcPtr; flags: UInt32; refCon: UInt32 ): OSErr; external name '_SetPortCustomXFerProc';
3858 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3859
3860
3861 {$endc} {not TARGET_CPU_64}
3862
3863 const
3864 kCursorComponentsVersion = $00010001;
3865
3866 const
3867 kCursorComponentType = FourCharCode('curs');
3868
3869 { Cursor Component capabilities flags }
3870 const
3871 cursorDoesAnimate = 1 shl 0;
3872 cursorDoesHardware = 1 shl 1;
3873 cursorDoesUnreadableScreenBits = 1 shl 2;
3874
3875 { Cursor Component output mode flags }
3876 const
3877 kRenderCursorInHardware = 1 shl 0;
3878 kRenderCursorInSoftware = 1 shl 1;
3879
3880 { Cursor Component Info }
3881 type
3882 CursorInfoPtr = ^CursorInfo;
3883 CursorInfo = record
3884 version: SIGNEDLONG; { use kCursorComponentsVersion }
3885 capabilities: SIGNEDLONG;
3886 animateDuration: SIGNEDLONG; { approximate time between animate tickles }
3887 bounds: Rect;
3888 hotspot: Point;
3889 reserved: SIGNEDLONG; { must set to zero }
3890 end;
3891 { Cursor Component Selectors }
3892 const
3893 kCursorComponentInit = $0001;
3894 kCursorComponentGetInfo = $0002;
3895 kCursorComponentSetOutputMode = $0003;
3896 kCursorComponentSetData = $0004;
3897 kCursorComponentReconfigure = $0005;
3898 kCursorComponentDraw = $0006;
3899 kCursorComponentErase = $0007;
3900 kCursorComponentMove = $0008;
3901 kCursorComponentAnimate = $0009;
3902 kCursorComponentLastReserved = $0050;
3903
3904 {$ifc not TARGET_CPU_64}
3905 {
3906 * OpenCursorComponent() *** DEPRECATED ***
3907 *
3908 * Mac OS X threading:
3909 * Not thread safe
3910 *
3911 * Availability:
3912 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3913 * CarbonLib: in CarbonLib 1.0 and later
3914 * Non-Carbon CFM: not available
3915 }
OpenCursorComponentnull3916 function OpenCursorComponent( c: Component; var ci: ComponentInstance ): OSErr; external name '_OpenCursorComponent';
3917 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3918
3919
3920 {
3921 * CloseCursorComponent() *** DEPRECATED ***
3922 *
3923 * Mac OS X threading:
3924 * Not thread safe
3925 *
3926 * Availability:
3927 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3928 * CarbonLib: in CarbonLib 1.0 and later
3929 * Non-Carbon CFM: not available
3930 }
CloseCursorComponentnull3931 function CloseCursorComponent( ci: ComponentInstance ): OSErr; external name '_CloseCursorComponent';
3932 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3933
3934
3935 {
3936 * SetCursorComponent() *** DEPRECATED ***
3937 *
3938 * Mac OS X threading:
3939 * Not thread safe
3940 *
3941 * Availability:
3942 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3943 * CarbonLib: in CarbonLib 1.0 and later
3944 * Non-Carbon CFM: not available
3945 }
SetCursorComponentnull3946 function SetCursorComponent( ci: ComponentInstance ): OSErr; external name '_SetCursorComponent';
3947 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3948
3949
3950 {
3951 * CursorComponentChanged() *** DEPRECATED ***
3952 *
3953 * Mac OS X threading:
3954 * Not thread safe
3955 *
3956 * Availability:
3957 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3958 * CarbonLib: in CarbonLib 1.0 and later
3959 * Non-Carbon CFM: not available
3960 }
CursorComponentChangednull3961 function CursorComponentChanged( ci: ComponentInstance ): OSErr; external name '_CursorComponentChanged';
3962 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3963
3964
3965 {
3966 * CursorComponentSetData() *** DEPRECATED ***
3967 *
3968 * Mac OS X threading:
3969 * Not thread safe
3970 *
3971 * Availability:
3972 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3973 * CarbonLib: in CarbonLib 1.0 and later
3974 * Non-Carbon CFM: not available
3975 }
CursorComponentSetDatanull3976 function CursorComponentSetData( ci: ComponentInstance; data: SIGNEDLONG ): OSErr; external name '_CursorComponentSetData';
3977 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3978
3979
3980 { Quickdraw-specific ColorSync matching }
3981 {$endc} {not TARGET_CPU_64}
3982
3983 {$ifc not TARGET_CPU_64}
3984 {
3985 * CWMatchPixMap() *** DEPRECATED ***
3986 *
3987 * Mac OS X threading:
3988 * Not thread safe
3989 *
3990 * Availability:
3991 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
3992 * CarbonLib: not available
3993 * Non-Carbon CFM: not available
3994 }
CWMatchPixMapnull3995 function CWMatchPixMap( cw: CMWorldRef; var myPixMap: PixMap; progressProc: CMBitmapCallBackUPP; refCon: UnivPtr ): CMError; external name '_CWMatchPixMap';
3996 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
3997
3998
3999 {
4000 * CWCheckPixMap() *** DEPRECATED ***
4001 *
4002 * Mac OS X threading:
4003 * Not thread safe
4004 *
4005 * Availability:
4006 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4007 * CarbonLib: not available
4008 * Non-Carbon CFM: not available
4009 }
CWCheckPixMapnull4010 function CWCheckPixMap( cw: CMWorldRef; var myPixMap: PixMap; progressProc: CMBitmapCallBackUPP; refCon: UnivPtr; var resultBitMap: BitMap ): CMError; external name '_CWCheckPixMap';
4011 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4012
4013
4014 {
4015 * NCMBeginMatching() *** DEPRECATED ***
4016 *
4017 * Mac OS X threading:
4018 * Not thread safe
4019 *
4020 * Availability:
4021 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4022 * CarbonLib: not available
4023 * Non-Carbon CFM: not available
4024 }
NCMBeginMatchingnull4025 function NCMBeginMatching( src: CMProfileRef; dst: CMProfileRef; var myRef: CMMatchRef ): CMError; external name '_NCMBeginMatching';
4026 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4027
4028
4029 {
4030 * CMEndMatching() *** DEPRECATED ***
4031 *
4032 * Mac OS X threading:
4033 * Not thread safe
4034 *
4035 * Availability:
4036 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4037 * CarbonLib: not available
4038 * Non-Carbon CFM: not available
4039 }
4040 procedure CMEndMatching( myRef: CMMatchRef ); external name '_CMEndMatching';
4041 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4042
4043
4044 {
4045 * NCMDrawMatchedPicture() *** DEPRECATED ***
4046 *
4047 * Mac OS X threading:
4048 * Not thread safe
4049 *
4050 * Availability:
4051 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4052 * CarbonLib: not available
4053 * Non-Carbon CFM: not available
4054 }
4055 procedure NCMDrawMatchedPicture( myPicture: PicHandle; dst: CMProfileRef; var myRect: Rect ); external name '_NCMDrawMatchedPicture';
4056 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4057
4058
4059 {
4060 * CMEnableMatchingComment() *** DEPRECATED ***
4061 *
4062 * Mac OS X threading:
4063 * Not thread safe
4064 *
4065 * Availability:
4066 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4067 * CarbonLib: not available
4068 * Non-Carbon CFM: not available
4069 }
4070 procedure CMEnableMatchingComment( enableIt: Boolean ); external name '_CMEnableMatchingComment';
4071 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4072
4073
4074 {
4075 * NCMUseProfileComment() *** DEPRECATED ***
4076 *
4077 * Mac OS X threading:
4078 * Not thread safe
4079 *
4080 * Availability:
4081 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4082 * CarbonLib: not available
4083 * Non-Carbon CFM: not available
4084 }
NCMUseProfileCommentnull4085 function NCMUseProfileComment( prof: CMProfileRef; flags: UInt32 ): CMError; external name '_NCMUseProfileComment';
4086 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4087
4088
4089 {$endc} {not TARGET_CPU_64}
4090
4091 {$ifc not TARGET_CPU_64}
4092 {
4093 * IsValidPort() *** DEPRECATED ***
4094 *
4095 * Summary:
4096 * Attempts to detect invalid ports
4097 *
4098 * Discussion:
4099 * A grafPort structure contains many nested Handles. An attempt to
4100 * guarantee that they are all valid is prohibitively costly. Since
4101 * 10.1, IsValidPort only compares the CGrafPtr parameter against
4102 * the list of grafPorts maintained internally by Quickdraw. The
4103 * function returns true if it is found, false otherwise. This is
4104 * enough to detect ports belonging to windows that have been
4105 * closed, or GWorlds that have been deallocated.
4106 *
4107 * Mac OS X threading:
4108 * Not thread safe
4109 *
4110 * Parameters:
4111 *
4112 * port:
4113 * The CGrafPtr in question.
4114 *
4115 * Result:
4116 * If false, port is definitely invalid. If true, port is probably
4117 * valid (unless memory has been clobbered)
4118 *
4119 * Availability:
4120 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4121 * CarbonLib: in CarbonLib 1.1 and later
4122 * Non-Carbon CFM: not available
4123 }
IsValidPortnull4124 function IsValidPort( port: CGrafPtr ): Boolean; external name '_IsValidPort';
4125 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4126
4127
4128 {
4129 * IsValidRgnHandle()
4130 *
4131 * Summary:
4132 * Tests a RgnHandle
4133 *
4134 * Mac OS X threading:
4135 * Not thread safe
4136 *
4137 * Parameters:
4138 *
4139 * rgn:
4140 * The RgnHandle in question.
4141 *
4142 * Result:
4143 * If false, either the RgnHandle parameter is NULL, or has been
4144 * deallocated, or the region data are corrupt. The latter can
4145 * happen when memory has been overwritten. If true, the RgnHandle
4146 * is valid. NOTE: In 10.3, the internal (opaque) format of region
4147 * data has changed, to overcome size and performance limitations.
4148 * Do not attempt to access region data by dereferencing the
4149 * RgnHandle.
4150 *
4151 * Availability:
4152 * Mac OS X: in version 10.3 and later in ApplicationServices.framework [32-bit only]
4153 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.3 and later
4154 * Non-Carbon CFM: not available
4155 }
IsValidRgnHandlenull4156 function IsValidRgnHandle( rgn: RgnHandle ): Boolean; external name '_IsValidRgnHandle';
4157 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
4158
4159
4160 {$endc} {not TARGET_CPU_64}
4161
4162 { GrafPort }
4163 { Getters }
4164 {$ifc not TARGET_CPU_64}
4165 {
4166 * GetPortPixMap() *** DEPRECATED ***
4167 *
4168 * Mac OS X threading:
4169 * Not thread safe
4170 *
4171 * Availability:
4172 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4173 * CarbonLib: in CarbonLib 1.0 and later
4174 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4175 }
GetPortPixMapnull4176 function GetPortPixMap( port: CGrafPtr ): PixMapHandle; external name '_GetPortPixMap';
4177 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4178
4179
4180 {
4181 * GetPortBitMapForCopyBits() *** DEPRECATED ***
4182 *
4183 * Discussion:
4184 * GetPortBitMapForCopyBits is provided for the specific purpose of
4185 * using the return value as a parameter to CopyBits. The return
4186 * value can be used as the srcBits or dstBits parameter to CopyBits
4187 * regardless of whether the port is color. If the port parameter is
4188 * a color port, however, the returned BitMapPtr does not actually
4189 * point to a BitMap; it points to the PixMapHandle and other fields
4190 * in the CGrafPort structure. You should not dereference the
4191 * BitMapPtr or otherwise depend on its contents unless you've
4192 * confirmed that this port is a non-color port.
4193 *
4194 * Mac OS X threading:
4195 * Thread safe since version 10.0
4196 *
4197 * Availability:
4198 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4199 * CarbonLib: in CarbonLib 1.0.2 and later
4200 * Non-Carbon CFM: in CarbonAccessors.o 1.0.2 and later
4201 }
GetPortBitMapForCopyBitsnull4202 function GetPortBitMapForCopyBits( port: CGrafPtr ): BitMapPtr; external name '_GetPortBitMapForCopyBits';
4203 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4204
4205
4206 {
4207 * GetPortBounds() *** DEPRECATED ***
4208 *
4209 * Mac OS X threading:
4210 * Thread safe since version 10.0
4211 *
4212 * Availability:
4213 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4214 * CarbonLib: in CarbonLib 1.0 and later
4215 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4216 }
GetPortBoundsnull4217 function GetPortBounds( port: CGrafPtr; var rect_: Rect ): RectPtr; external name '_GetPortBounds';
4218 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4219
4220
4221 {
4222 * GetPortForeColor() *** DEPRECATED ***
4223 *
4224 * Mac OS X threading:
4225 * Thread safe since version 10.0
4226 *
4227 * Availability:
4228 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4229 * CarbonLib: in CarbonLib 1.0 and later
4230 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4231 }
GetPortForeColornull4232 function GetPortForeColor( port: CGrafPtr; var foreColor: RGBColor ): RGBColorPtr; external name '_GetPortForeColor';
4233 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4234
4235
4236 {
4237 * GetPortBackColor() *** DEPRECATED ***
4238 *
4239 * Mac OS X threading:
4240 * Thread safe since version 10.0
4241 *
4242 * Availability:
4243 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4244 * CarbonLib: in CarbonLib 1.0 and later
4245 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4246 }
GetPortBackColornull4247 function GetPortBackColor( port: CGrafPtr; var backColor: RGBColor ): RGBColorPtr; external name '_GetPortBackColor';
4248 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4249
4250
4251 {
4252 * GetPortOpColor() *** DEPRECATED ***
4253 *
4254 * Mac OS X threading:
4255 * Thread safe since version 10.0
4256 *
4257 * Availability:
4258 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4259 * CarbonLib: in CarbonLib 1.0 and later
4260 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4261 }
GetPortOpColornull4262 function GetPortOpColor( port: CGrafPtr; var opColor: RGBColor ): RGBColorPtr; external name '_GetPortOpColor';
4263 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4264
4265
4266 {
4267 * GetPortHiliteColor() *** DEPRECATED ***
4268 *
4269 * Mac OS X threading:
4270 * Thread safe since version 10.0
4271 *
4272 * Availability:
4273 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4274 * CarbonLib: in CarbonLib 1.0 and later
4275 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4276 }
GetPortHiliteColornull4277 function GetPortHiliteColor( port: CGrafPtr; var hiliteColor: RGBColor ): RGBColorPtr; external name '_GetPortHiliteColor';
4278 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4279
4280
4281 {
4282 * GetPortGrafProcs() *** DEPRECATED ***
4283 *
4284 * Mac OS X threading:
4285 * Thread safe since version 10.0
4286 *
4287 * Availability:
4288 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4289 * CarbonLib: in CarbonLib 1.0 and later
4290 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4291 }
GetPortGrafProcsnull4292 function GetPortGrafProcs( port: CGrafPtr ): CQDProcsPtr; external name '_GetPortGrafProcs';
4293 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4294
4295
4296 {
4297 * GetPortTextFont() *** DEPRECATED ***
4298 *
4299 * Mac OS X threading:
4300 * Thread safe since version 10.0
4301 *
4302 * Availability:
4303 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4304 * CarbonLib: in CarbonLib 1.0 and later
4305 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4306 }
GetPortTextFontnull4307 function GetPortTextFont( port: CGrafPtr ): SInt16; external name '_GetPortTextFont';
4308 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4309
4310
4311 {
4312 * GetPortTextFace() *** DEPRECATED ***
4313 *
4314 * Mac OS X threading:
4315 * Thread safe since version 10.0
4316 *
4317 * Availability:
4318 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4319 * CarbonLib: in CarbonLib 1.0 and later
4320 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4321 }
GetPortTextFacenull4322 function GetPortTextFace( port: CGrafPtr ): ByteParameter; external name '_GetPortTextFace';
4323 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4324
4325
4326 {
4327 * GetPortTextMode() *** DEPRECATED ***
4328 *
4329 * Mac OS X threading:
4330 * Thread safe since version 10.0
4331 *
4332 * Availability:
4333 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4334 * CarbonLib: in CarbonLib 1.0 and later
4335 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4336 }
GetPortTextModenull4337 function GetPortTextMode( port: CGrafPtr ): SInt16; external name '_GetPortTextMode';
4338 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4339
4340
4341 {
4342 * GetPortTextSize() *** DEPRECATED ***
4343 *
4344 * Mac OS X threading:
4345 * Thread safe since version 10.0
4346 *
4347 * Availability:
4348 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4349 * CarbonLib: in CarbonLib 1.0 and later
4350 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4351 }
GetPortTextSizenull4352 function GetPortTextSize( port: CGrafPtr ): SInt16; external name '_GetPortTextSize';
4353 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4354
4355
4356 {
4357 * GetPortChExtra() *** DEPRECATED ***
4358 *
4359 * Mac OS X threading:
4360 * Thread safe since version 10.0
4361 *
4362 * Availability:
4363 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4364 * CarbonLib: in CarbonLib 1.0 and later
4365 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4366 }
GetPortChExtranull4367 function GetPortChExtra( port: CGrafPtr ): SInt16; external name '_GetPortChExtra';
4368 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4369
4370
4371 {
4372 * GetPortFracHPenLocation() *** DEPRECATED ***
4373 *
4374 * Mac OS X threading:
4375 * Thread safe since version 10.0
4376 *
4377 * Availability:
4378 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4379 * CarbonLib: in CarbonLib 1.0 and later
4380 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4381 }
GetPortFracHPenLocationnull4382 function GetPortFracHPenLocation( port: CGrafPtr ): SInt16; external name '_GetPortFracHPenLocation';
4383 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4384
4385
4386 {
4387 * GetPortSpExtra() *** DEPRECATED ***
4388 *
4389 * Mac OS X threading:
4390 * Thread safe since version 10.0
4391 *
4392 * Availability:
4393 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4394 * CarbonLib: in CarbonLib 1.0 and later
4395 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4396 }
GetPortSpExtranull4397 function GetPortSpExtra( port: CGrafPtr ): Fixed; external name '_GetPortSpExtra';
4398 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4399
4400
4401 {
4402 * GetPortPenVisibility() *** DEPRECATED ***
4403 *
4404 * Mac OS X threading:
4405 * Thread safe since version 10.0
4406 *
4407 * Availability:
4408 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4409 * CarbonLib: in CarbonLib 1.0 and later
4410 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4411 }
GetPortPenVisibilitynull4412 function GetPortPenVisibility( port: CGrafPtr ): SInt16; external name '_GetPortPenVisibility';
4413 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4414
4415
4416 {
4417 * GetPortVisibleRegion() *** DEPRECATED ***
4418 *
4419 * Mac OS X threading:
4420 * Thread safe since version 10.0
4421 *
4422 * Availability:
4423 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4424 * CarbonLib: in CarbonLib 1.0 and later
4425 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4426 }
GetPortVisibleRegionnull4427 function GetPortVisibleRegion( port: CGrafPtr; visRgn: RgnHandle ): RgnHandle; external name '_GetPortVisibleRegion';
4428 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4429
4430
4431 {
4432 * GetPortClipRegion() *** DEPRECATED ***
4433 *
4434 * Mac OS X threading:
4435 * Thread safe since version 10.0
4436 *
4437 * Availability:
4438 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4439 * CarbonLib: in CarbonLib 1.0 and later
4440 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4441 }
GetPortClipRegionnull4442 function GetPortClipRegion( port: CGrafPtr; clipRgn: RgnHandle ): RgnHandle; external name '_GetPortClipRegion';
4443 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4444
4445
4446 {
4447 * GetPortBackPixPat() *** DEPRECATED ***
4448 *
4449 * Mac OS X threading:
4450 * Thread safe since version 10.0
4451 *
4452 * Availability:
4453 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4454 * CarbonLib: in CarbonLib 1.0 and later
4455 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4456 }
GetPortBackPixPatnull4457 function GetPortBackPixPat( port: CGrafPtr; backPattern: PixPatHandle ): PixPatHandle; external name '_GetPortBackPixPat';
4458 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4459
4460
4461 {
4462 * GetPortPenPixPat() *** DEPRECATED ***
4463 *
4464 * Mac OS X threading:
4465 * Thread safe since version 10.0
4466 *
4467 * Availability:
4468 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4469 * CarbonLib: in CarbonLib 1.0 and later
4470 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4471 }
GetPortPenPixPatnull4472 function GetPortPenPixPat( port: CGrafPtr; penPattern: PixPatHandle ): PixPatHandle; external name '_GetPortPenPixPat';
4473 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4474
4475
4476 {
4477 * GetPortFillPixPat() *** DEPRECATED ***
4478 *
4479 * Mac OS X threading:
4480 * Thread safe since version 10.0
4481 *
4482 * Availability:
4483 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4484 * CarbonLib: in CarbonLib 1.0 and later
4485 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4486 }
GetPortFillPixPatnull4487 function GetPortFillPixPat( port: CGrafPtr; fillPattern: PixPatHandle ): PixPatHandle; external name '_GetPortFillPixPat';
4488 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4489
4490
4491 {
4492 * GetPortPenSize() *** DEPRECATED ***
4493 *
4494 * Mac OS X threading:
4495 * Thread safe since version 10.0
4496 *
4497 * Availability:
4498 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4499 * CarbonLib: in CarbonLib 1.0 and later
4500 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4501 }
GetPortPenSizenull4502 function GetPortPenSize( port: CGrafPtr; var penSize: Point ): PointPtr; external name '_GetPortPenSize';
4503 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4504
4505
4506 {
4507 * GetPortPenMode() *** DEPRECATED ***
4508 *
4509 * Mac OS X threading:
4510 * Thread safe since version 10.0
4511 *
4512 * Availability:
4513 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4514 * CarbonLib: in CarbonLib 1.0 and later
4515 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4516 }
GetPortPenModenull4517 function GetPortPenMode( port: CGrafPtr ): SInt32; external name '_GetPortPenMode';
4518 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4519
4520
4521 {
4522 * GetPortPenLocation() *** DEPRECATED ***
4523 *
4524 * Mac OS X threading:
4525 * Thread safe since version 10.0
4526 *
4527 * Availability:
4528 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4529 * CarbonLib: in CarbonLib 1.0 and later
4530 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4531 }
GetPortPenLocationnull4532 function GetPortPenLocation( port: CGrafPtr; var penLocation: Point ): PointPtr; external name '_GetPortPenLocation';
4533 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4534
4535
4536 {
4537 * IsPortRegionBeingDefined() *** DEPRECATED ***
4538 *
4539 * Mac OS X threading:
4540 * Thread safe since version 10.0
4541 *
4542 * Availability:
4543 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4544 * CarbonLib: in CarbonLib 1.0 and later
4545 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4546 }
IsPortRegionBeingDefinednull4547 function IsPortRegionBeingDefined( port: CGrafPtr ): Boolean; external name '_IsPortRegionBeingDefined';
4548 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4549
4550
4551 {
4552 * IsPortPictureBeingDefined() *** DEPRECATED ***
4553 *
4554 * Mac OS X threading:
4555 * Thread safe since version 10.0
4556 *
4557 * Availability:
4558 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4559 * CarbonLib: in CarbonLib 1.0 and later
4560 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4561 }
IsPortPictureBeingDefinednull4562 function IsPortPictureBeingDefined( port: CGrafPtr ): Boolean; external name '_IsPortPictureBeingDefined';
4563 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4564
4565
4566 {
4567 * IsPortPolyBeingDefined() *** DEPRECATED ***
4568 *
4569 * Mac OS X threading:
4570 * Thread safe since version 10.0
4571 *
4572 * Availability:
4573 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4574 * CarbonLib: in CarbonLib 1.3 and later
4575 * Non-Carbon CFM: in CarbonAccessors.o 1.3 and later
4576 }
IsPortPolyBeingDefinednull4577 function IsPortPolyBeingDefined( port: CGrafPtr ): Boolean; external name '_IsPortPolyBeingDefined';
4578 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4579
4580
4581 {
4582 * IsPortOffscreen() *** DEPRECATED ***
4583 *
4584 * Mac OS X threading:
4585 * Thread safe since version 10.0
4586 *
4587 * Availability:
4588 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4589 * CarbonLib: in CarbonLib 1.0 and later
4590 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4591 }
IsPortOffscreennull4592 function IsPortOffscreen( port: CGrafPtr ): Boolean; external name '_IsPortOffscreen';
4593 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4594
4595
4596 {
4597 * IsPortColor() *** DEPRECATED ***
4598 *
4599 * Mac OS X threading:
4600 * Thread safe since version 10.0
4601 *
4602 * Availability:
4603 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4604 * CarbonLib: in CarbonLib 1.0.2 and later
4605 * Non-Carbon CFM: in CarbonAccessors.o 1.0.2 and later
4606 }
IsPortColornull4607 function IsPortColor( port: CGrafPtr ): Boolean; external name '_IsPortColor';
4608 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4609
4610
4611 {
4612 * IsPortVisibleRegionEmpty() *** DEPRECATED ***
4613 *
4614 * Mac OS X threading:
4615 * Thread safe since version 10.1
4616 *
4617 * Availability:
4618 * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4619 * CarbonLib: in CarbonLib 1.3 and later
4620 * Non-Carbon CFM: not available
4621 }
IsPortVisibleRegionEmptynull4622 function IsPortVisibleRegionEmpty( port: CGrafPtr ): Boolean; external name '_IsPortVisibleRegionEmpty';
4623 (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4624
4625
4626 {
4627 * IsPortClipRegionEmpty() *** DEPRECATED ***
4628 *
4629 * Mac OS X threading:
4630 * Thread safe since version 10.1
4631 *
4632 * Availability:
4633 * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4634 * CarbonLib: in CarbonLib 1.3 and later
4635 * Non-Carbon CFM: not available
4636 }
IsPortClipRegionEmptynull4637 function IsPortClipRegionEmpty( port: CGrafPtr ): Boolean; external name '_IsPortClipRegionEmpty';
4638 (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4639
4640
4641 {
4642 * SectRegionWithPortClipRegion() *** DEPRECATED ***
4643 *
4644 * Mac OS X threading:
4645 * Not thread safe
4646 *
4647 * Availability:
4648 * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4649 * CarbonLib: in CarbonLib 1.3 and later
4650 * Non-Carbon CFM: not available
4651 }
4652 procedure SectRegionWithPortClipRegion( port: CGrafPtr; ioRegion: RgnHandle ); external name '_SectRegionWithPortClipRegion';
4653 (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4654
4655
4656 {
4657 * SectRegionWithPortVisibleRegion() *** DEPRECATED ***
4658 *
4659 * Mac OS X threading:
4660 * Not thread safe
4661 *
4662 * Availability:
4663 * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4664 * CarbonLib: in CarbonLib 1.3 and later
4665 * Non-Carbon CFM: not available
4666 }
4667 procedure SectRegionWithPortVisibleRegion( port: CGrafPtr; ioRegion: RgnHandle ); external name '_SectRegionWithPortVisibleRegion';
4668 (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4669
4670
4671 { Swappers }
4672 {
4673 * SwapPortPicSaveHandle() *** DEPRECATED ***
4674 *
4675 * Summary:
4676 * Sets the port's picSave Handle, and returns the previous picSave
4677 *
4678 * Discussion:
4679 * Historically, the picSave field in a GrafPort is != NULL if a
4680 * Picture is being defined; and it has been documented that picture
4681 * definition can be temporarily suspended by saving the current
4682 * picSave Handle and setting picSave to NULL. Restoring the saved
4683 * picSave Handle resumes picture definition.
4684 *
4685 * Mac OS X threading:
4686 * Not thread safe
4687 *
4688 * Parameters:
4689 *
4690 * port:
4691 * The port whose picSave field is being swapped.
4692 *
4693 * inPicSaveHdl:
4694 * The picSave Handle to be set.
4695 *
4696 * Result:
4697 * The previous picSave Handle in the port.
4698 *
4699 * Availability:
4700 * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4701 * CarbonLib: in CarbonLib 1.5 and later
4702 * Non-Carbon CFM: not available
4703 }
SwapPortPicSaveHandlenull4704 function SwapPortPicSaveHandle( port: CGrafPtr; inPicSaveHdl: Handle ): Handle; external name '_SwapPortPicSaveHandle';
4705 (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4706
4707
4708 { Similarly: }
4709 {
4710 * SwapPortPolySaveHandle() *** DEPRECATED ***
4711 *
4712 * Mac OS X threading:
4713 * Not thread safe
4714 *
4715 * Availability:
4716 * Mac OS X: in version 10.2 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4717 * CarbonLib: in CarbonLib 1.6 and later
4718 * Non-Carbon CFM: not available
4719 }
SwapPortPolySaveHandlenull4720 function SwapPortPolySaveHandle( port: CGrafPtr; inPolySaveHdl: Handle ): Handle; external name '_SwapPortPolySaveHandle';
4721 (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4722
4723
4724 {
4725 * SwapPortRegionSaveHandle() *** DEPRECATED ***
4726 *
4727 * Mac OS X threading:
4728 * Not thread safe
4729 *
4730 * Availability:
4731 * Mac OS X: in version 10.2 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4732 * CarbonLib: in CarbonLib 1.6 and later
4733 * Non-Carbon CFM: not available
4734 }
SwapPortRegionSaveHandlenull4735 function SwapPortRegionSaveHandle( port: CGrafPtr; inRegionSaveHdl: Handle ): Handle; external name '_SwapPortRegionSaveHandle';
4736 (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4737
4738
4739 { Setters }
4740 {
4741 * SetPortBounds() *** DEPRECATED ***
4742 *
4743 * Mac OS X threading:
4744 * Not thread safe
4745 *
4746 * Availability:
4747 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4748 * CarbonLib: in CarbonLib 1.0 and later
4749 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4750 }
4751 procedure SetPortBounds( port: CGrafPtr; const (*var*) rect_: Rect ); external name '_SetPortBounds';
4752 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4753
4754
4755 {
4756 * SetPortOpColor() *** DEPRECATED ***
4757 *
4758 * Mac OS X threading:
4759 * Not thread safe
4760 *
4761 * Availability:
4762 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4763 * CarbonLib: in CarbonLib 1.0 and later
4764 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4765 }
4766 procedure SetPortOpColor( port: CGrafPtr; const (*var*) opColor: RGBColor ); external name '_SetPortOpColor';
4767 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4768
4769
4770 {
4771 * SetPortGrafProcs() *** DEPRECATED ***
4772 *
4773 * Mac OS X threading:
4774 * Not thread safe
4775 *
4776 * Availability:
4777 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4778 * CarbonLib: in CarbonLib 1.0 and later
4779 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4780 }
4781 procedure SetPortGrafProcs( port: CGrafPtr; procs: CQDProcsPtr ); external name '_SetPortGrafProcs';
4782 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4783
4784
4785 {
4786 * SetPortTextFont() *** DEPRECATED ***
4787 *
4788 * Mac OS X threading:
4789 * Not thread safe
4790 *
4791 * Availability:
4792 * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4793 * CarbonLib: in CarbonLib 1.5 and later
4794 * Non-Carbon CFM: not available
4795 }
4796 procedure SetPortTextFont( port: CGrafPtr; txFont: SInt16 ); external name '_SetPortTextFont';
4797 (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4798
4799
4800 {
4801 * SetPortTextSize() *** DEPRECATED ***
4802 *
4803 * Mac OS X threading:
4804 * Not thread safe
4805 *
4806 * Availability:
4807 * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4808 * CarbonLib: in CarbonLib 1.5 and later
4809 * Non-Carbon CFM: not available
4810 }
4811 procedure SetPortTextSize( port: CGrafPtr; txSize: SInt16 ); external name '_SetPortTextSize';
4812 (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4813
4814
4815 {
4816 * SetPortTextFace() *** DEPRECATED ***
4817 *
4818 * Mac OS X threading:
4819 * Not thread safe
4820 *
4821 * Availability:
4822 * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4823 * CarbonLib: in CarbonLib 1.5 and later
4824 * Non-Carbon CFM: not available
4825 }
4826 procedure SetPortTextFace( port: CGrafPtr; face: StyleParameter ); external name '_SetPortTextFace';
4827 (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4828
4829
4830 {
4831 * SetPortTextMode() *** DEPRECATED ***
4832 *
4833 * Mac OS X threading:
4834 * Not thread safe
4835 *
4836 * Availability:
4837 * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4838 * CarbonLib: in CarbonLib 1.5 and later
4839 * Non-Carbon CFM: not available
4840 }
4841 procedure SetPortTextMode( port: CGrafPtr; mode: SInt16 ); external name '_SetPortTextMode';
4842 (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4843
4844
4845 {
4846 * SetPortVisibleRegion() *** DEPRECATED ***
4847 *
4848 * Mac OS X threading:
4849 * Not thread safe
4850 *
4851 * Availability:
4852 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4853 * CarbonLib: in CarbonLib 1.0 and later
4854 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4855 }
4856 procedure SetPortVisibleRegion( port: CGrafPtr; visRgn: RgnHandle ); external name '_SetPortVisibleRegion';
4857 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4858
4859
4860 {
4861 * SetPortClipRegion() *** DEPRECATED ***
4862 *
4863 * Mac OS X threading:
4864 * Not thread safe
4865 *
4866 * Availability:
4867 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4868 * CarbonLib: in CarbonLib 1.0 and later
4869 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4870 }
4871 procedure SetPortClipRegion( port: CGrafPtr; clipRgn: RgnHandle ); external name '_SetPortClipRegion';
4872 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4873
4874
4875 {
4876 * SetPortPenPixPat() *** DEPRECATED ***
4877 *
4878 * Mac OS X threading:
4879 * Not thread safe
4880 *
4881 * Availability:
4882 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4883 * CarbonLib: in CarbonLib 1.0 and later
4884 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4885 }
4886 procedure SetPortPenPixPat( port: CGrafPtr; penPattern: PixPatHandle ); external name '_SetPortPenPixPat';
4887 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4888
4889
4890 {
4891 * SetPortFillPixPat() *** DEPRECATED ***
4892 *
4893 * Mac OS X threading:
4894 * Not thread safe
4895 *
4896 * Availability:
4897 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4898 * CarbonLib: in CarbonLib 1.2 and later
4899 * Non-Carbon CFM: in CarbonAccessors.o 1.2 and later
4900 }
4901 procedure SetPortFillPixPat( port: CGrafPtr; penPattern: PixPatHandle ); external name '_SetPortFillPixPat';
4902 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4903
4904
4905 {
4906 * SetPortBackPixPat() *** DEPRECATED ***
4907 *
4908 * Mac OS X threading:
4909 * Not thread safe
4910 *
4911 * Availability:
4912 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4913 * CarbonLib: in CarbonLib 1.0 and later
4914 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4915 }
4916 procedure SetPortBackPixPat( port: CGrafPtr; backPattern: PixPatHandle ); external name '_SetPortBackPixPat';
4917 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4918
4919
4920 {
4921 * SetPortPenSize() *** DEPRECATED ***
4922 *
4923 * Mac OS X threading:
4924 * Not thread safe
4925 *
4926 * Availability:
4927 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4928 * CarbonLib: in CarbonLib 1.0 and later
4929 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4930 }
4931 procedure SetPortPenSize( port: CGrafPtr; penSize: Point ); external name '_SetPortPenSize';
4932 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4933
4934
4935 {
4936 * SetPortPenMode() *** DEPRECATED ***
4937 *
4938 * Mac OS X threading:
4939 * Not thread safe
4940 *
4941 * Availability:
4942 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4943 * CarbonLib: in CarbonLib 1.0 and later
4944 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4945 }
4946 procedure SetPortPenMode( port: CGrafPtr; penMode: SInt32 ); external name '_SetPortPenMode';
4947 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4948
4949
4950 {
4951 * SetPortFracHPenLocation() *** DEPRECATED ***
4952 *
4953 * Mac OS X threading:
4954 * Not thread safe
4955 *
4956 * Availability:
4957 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4958 * CarbonLib: in CarbonLib 1.0 and later
4959 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4960 }
4961 procedure SetPortFracHPenLocation( port: CGrafPtr; pnLocHFrac: SInt16 ); external name '_SetPortFracHPenLocation';
4962 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4963
4964
4965 { PixMap }
4966 {
4967 * GetPixBounds() *** DEPRECATED ***
4968 *
4969 * Mac OS X threading:
4970 * Not thread safe
4971 *
4972 * Availability:
4973 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4974 * CarbonLib: in CarbonLib 1.0 and later
4975 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4976 }
GetPixBoundsnull4977 function GetPixBounds( pixMap: PixMapHandle; var bounds: Rect ): RectPtr; external name '_GetPixBounds';
4978 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4979
4980
4981 {
4982 * GetPixDepth() *** DEPRECATED ***
4983 *
4984 * Mac OS X threading:
4985 * Not thread safe
4986 *
4987 * Availability:
4988 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
4989 * CarbonLib: in CarbonLib 1.0 and later
4990 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
4991 }
GetPixDepthnull4992 function GetPixDepth( pixMap: PixMapHandle ): SInt16; external name '_GetPixDepth';
4993 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
4994
4995
4996 { QDGlobals }
4997 { Getters }
4998 {
4999 * GetQDGlobalsRandomSeed() *** DEPRECATED ***
5000 *
5001 * Mac OS X threading:
5002 * Not thread safe
5003 *
5004 * Availability:
5005 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5006 * CarbonLib: in CarbonLib 1.0 and later
5007 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
5008 }
GetQDGlobalsRandomSeednull5009 function GetQDGlobalsRandomSeed: SIGNEDLONG; external name '_GetQDGlobalsRandomSeed';
5010 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5011
5012
5013 {
5014 * GetQDGlobalsScreenBits() *** DEPRECATED ***
5015 *
5016 * Mac OS X threading:
5017 * Not thread safe
5018 *
5019 * Availability:
5020 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5021 * CarbonLib: in CarbonLib 1.0 and later
5022 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
5023 }
GetQDGlobalsScreenBitsnull5024 function GetQDGlobalsScreenBits( var screenBits: BitMap ): BitMapPtr; external name '_GetQDGlobalsScreenBits';
5025 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5026
5027
5028 {
5029 * GetQDGlobalsArrow() *** DEPRECATED ***
5030 *
5031 * Mac OS X threading:
5032 * Not thread safe
5033 *
5034 * Availability:
5035 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5036 * CarbonLib: in CarbonLib 1.0 and later
5037 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
5038 }
GetQDGlobalsArrownull5039 function GetQDGlobalsArrow( var arrow: Cursor ): CursorPtr; external name '_GetQDGlobalsArrow';
5040 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5041
5042
5043 {
5044 * GetQDGlobalsDarkGray() *** DEPRECATED ***
5045 *
5046 * Mac OS X threading:
5047 * Not thread safe
5048 *
5049 * Availability:
5050 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5051 * CarbonLib: in CarbonLib 1.0 and later
5052 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
5053 }
GetQDGlobalsDarkGraynull5054 function GetQDGlobalsDarkGray( var dkGray: Pattern ): PatternPtr; external name '_GetQDGlobalsDarkGray';
5055 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5056
5057
5058 {
5059 * GetQDGlobalsLightGray() *** DEPRECATED ***
5060 *
5061 * Mac OS X threading:
5062 * Not thread safe
5063 *
5064 * Availability:
5065 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5066 * CarbonLib: in CarbonLib 1.0 and later
5067 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
5068 }
GetQDGlobalsLightGraynull5069 function GetQDGlobalsLightGray( var ltGray: Pattern ): PatternPtr; external name '_GetQDGlobalsLightGray';
5070 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5071
5072
5073 {
5074 * GetQDGlobalsGray() *** DEPRECATED ***
5075 *
5076 * Mac OS X threading:
5077 * Not thread safe
5078 *
5079 * Availability:
5080 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5081 * CarbonLib: in CarbonLib 1.0 and later
5082 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
5083 }
GetQDGlobalsGraynull5084 function GetQDGlobalsGray( var gray: Pattern ): PatternPtr; external name '_GetQDGlobalsGray';
5085 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5086
5087
5088 {
5089 * GetQDGlobalsBlack() *** DEPRECATED ***
5090 *
5091 * Mac OS X threading:
5092 * Not thread safe
5093 *
5094 * Availability:
5095 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5096 * CarbonLib: in CarbonLib 1.0 and later
5097 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
5098 }
GetQDGlobalsBlacknull5099 function GetQDGlobalsBlack( var black: Pattern ): PatternPtr; external name '_GetQDGlobalsBlack';
5100 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5101
5102
5103 {
5104 * GetQDGlobalsWhite() *** DEPRECATED ***
5105 *
5106 * Mac OS X threading:
5107 * Not thread safe
5108 *
5109 * Availability:
5110 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5111 * CarbonLib: in CarbonLib 1.0 and later
5112 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
5113 }
GetQDGlobalsWhitenull5114 function GetQDGlobalsWhite( var white: Pattern ): PatternPtr; external name '_GetQDGlobalsWhite';
5115 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5116
5117
5118 {
5119 * GetQDGlobalsThePort() *** DEPRECATED ***
5120 *
5121 * Mac OS X threading:
5122 * Not thread safe
5123 *
5124 * Availability:
5125 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5126 * CarbonLib: in CarbonLib 1.0 and later
5127 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
5128 }
GetQDGlobalsThePortnull5129 function GetQDGlobalsThePort: CGrafPtr; external name '_GetQDGlobalsThePort';
5130 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5131
5132
5133 { Setters }
5134 {
5135 * SetQDGlobalsRandomSeed() *** DEPRECATED ***
5136 *
5137 * Mac OS X threading:
5138 * Not thread safe
5139 *
5140 * Availability:
5141 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5142 * CarbonLib: in CarbonLib 1.0 and later
5143 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
5144 }
5145 procedure SetQDGlobalsRandomSeed( randomSeed: SIGNEDLONG ); external name '_SetQDGlobalsRandomSeed';
5146 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5147
5148
5149 {
5150 * SetQDGlobalsArrow() *** DEPRECATED ***
5151 *
5152 * Mac OS X threading:
5153 * Not thread safe
5154 *
5155 * Availability:
5156 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5157 * CarbonLib: in CarbonLib 1.0 and later
5158 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
5159 }
5160 procedure SetQDGlobalsArrow( const (*var*) arrow: Cursor ); external name '_SetQDGlobalsArrow';
5161 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5162
5163
5164 { Regions }
5165 {
5166 * GetRegionBounds()
5167 *
5168 * Mac OS X threading:
5169 * Not thread safe
5170 *
5171 * Availability:
5172 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
5173 * CarbonLib: in CarbonLib 1.0 and later
5174 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
5175 }
GetRegionBoundsnull5176 function GetRegionBounds( region: RgnHandle; var bounds: Rect ): RectPtr; external name '_GetRegionBounds'; (* attribute ignoreable *)
5177 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
5178
5179
5180 {
5181 * IsRegionRectangular()
5182 *
5183 * Mac OS X threading:
5184 * Not thread safe
5185 *
5186 * Availability:
5187 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
5188 * CarbonLib: in CarbonLib 1.0 and later
5189 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
5190 }
IsRegionRectangularnull5191 function IsRegionRectangular( region: RgnHandle ): Boolean; external name '_IsRegionRectangular';
5192 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
5193
5194
5195 { Utilities }
5196 { To prevent upward dependencies, GetWindowFromPort() is defined in Window Manager interface: }
5197 { pascal WindowRef GetWindowFromPort(CGrafPtr port); }
5198 { NewPtr/OpenCPort doesn't work with opaque structures }
5199 {
5200 * CreateNewPort() *** DEPRECATED ***
5201 *
5202 * Mac OS X threading:
5203 * Not thread safe
5204 *
5205 * Availability:
5206 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5207 * CarbonLib: in CarbonLib 1.0 and later
5208 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
5209 }
CreateNewPortnull5210 function CreateNewPort: CGrafPtr; external name '_CreateNewPort';
5211 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5212
5213
5214 {
5215 * DisposePort() *** DEPRECATED ***
5216 *
5217 * Mac OS X threading:
5218 * Not thread safe
5219 *
5220 * Availability:
5221 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5222 * CarbonLib: in CarbonLib 1.0 and later
5223 * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
5224 }
5225 procedure DisposePort( port: CGrafPtr ); external name '_DisposePort';
5226 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5227
5228
5229 {
5230 * SetQDError() *** DEPRECATED ***
5231 *
5232 * Mac OS X threading:
5233 * Not thread safe
5234 *
5235 * Availability:
5236 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5237 * CarbonLib: in CarbonLib 1.0.2 and later
5238 * Non-Carbon CFM: in CarbonAccessors.o 1.0.2 and later
5239 }
5240 procedure SetQDError( err: OSErr ); external name '_SetQDError';
5241 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5242
5243
5244 {$endc} {not TARGET_CPU_64}
5245
5246 { Helpful Carbon-only utilities (finally made public)}
5247
5248 {$ifc not TARGET_CPU_64}
5249 {
5250 * QDLocalToGlobalPoint() *** DEPRECATED ***
5251 *
5252 * Mac OS X threading:
5253 * Not thread safe
5254 *
5255 * Availability:
5256 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5257 * CarbonLib: in CarbonLib 1.0 and later
5258 * Non-Carbon CFM: not available
5259 }
QDLocalToGlobalPointnull5260 function QDLocalToGlobalPoint( port: CGrafPtr; var point_: Point ): PointPtr; external name '_QDLocalToGlobalPoint';
5261 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5262
5263
5264 {
5265 * QDGlobalToLocalPoint() *** DEPRECATED ***
5266 *
5267 * Mac OS X threading:
5268 * Not thread safe
5269 *
5270 * Availability:
5271 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5272 * CarbonLib: in CarbonLib 1.0 and later
5273 * Non-Carbon CFM: not available
5274 }
QDGlobalToLocalPointnull5275 function QDGlobalToLocalPoint( port: CGrafPtr; var point_: Point ): PointPtr; external name '_QDGlobalToLocalPoint';
5276 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5277
5278
5279 {
5280 * QDLocalToGlobalRect() *** DEPRECATED ***
5281 *
5282 * Mac OS X threading:
5283 * Not thread safe
5284 *
5285 * Availability:
5286 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5287 * CarbonLib: in CarbonLib 1.0 and later
5288 * Non-Carbon CFM: not available
5289 }
QDLocalToGlobalRectnull5290 function QDLocalToGlobalRect( port: CGrafPtr; var bounds: Rect ): RectPtr; external name '_QDLocalToGlobalRect';
5291 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5292
5293
5294 {
5295 * QDGlobalToLocalRect() *** DEPRECATED ***
5296 *
5297 * Mac OS X threading:
5298 * Not thread safe
5299 *
5300 * Availability:
5301 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5302 * CarbonLib: in CarbonLib 1.0 and later
5303 * Non-Carbon CFM: not available
5304 }
QDGlobalToLocalRectnull5305 function QDGlobalToLocalRect( port: CGrafPtr; var bounds: Rect ): RectPtr; external name '_QDGlobalToLocalRect';
5306 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5307
5308
5309 {
5310 * QDLocalToGlobalRegion() *** DEPRECATED ***
5311 *
5312 * Mac OS X threading:
5313 * Not thread safe
5314 *
5315 * Availability:
5316 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5317 * CarbonLib: in CarbonLib 1.0 and later
5318 * Non-Carbon CFM: not available
5319 }
QDLocalToGlobalRegionnull5320 function QDLocalToGlobalRegion( port: CGrafPtr; region: RgnHandle ): RgnHandle; external name '_QDLocalToGlobalRegion';
5321 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5322
5323
5324 {
5325 * QDGlobalToLocalRegion() *** DEPRECATED ***
5326 *
5327 * Mac OS X threading:
5328 * Not thread safe
5329 *
5330 * Availability:
5331 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5332 * CarbonLib: in CarbonLib 1.0 and later
5333 * Non-Carbon CFM: not available
5334 }
QDGlobalToLocalRegionnull5335 function QDGlobalToLocalRegion( port: CGrafPtr; region: RgnHandle ): RgnHandle; external name '_QDGlobalToLocalRegion';
5336 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5337
5338
5339 {
5340 Routines available on Mac OS X to flush buffered window ports...
5341 These calls do nothing on Mac OS 8/9. QDIsPortBuffered will always return false there.
5342 }
5343
5344 {
5345 * QDIsPortBuffered() *** DEPRECATED ***
5346 *
5347 * Mac OS X threading:
5348 * Not thread safe
5349 *
5350 * Availability:
5351 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5352 * CarbonLib: in CarbonLib 1.0.2 and later
5353 * Non-Carbon CFM: not available
5354 }
QDIsPortBufferednull5355 function QDIsPortBuffered( port: CGrafPtr ): Boolean; external name '_QDIsPortBuffered';
5356 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5357
5358
5359 {
5360 * QDIsPortBufferDirty() *** DEPRECATED ***
5361 *
5362 * Mac OS X threading:
5363 * Not thread safe
5364 *
5365 * Availability:
5366 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5367 * CarbonLib: in CarbonLib 1.0.2 and later
5368 * Non-Carbon CFM: not available
5369 }
QDIsPortBufferDirtynull5370 function QDIsPortBufferDirty( port: CGrafPtr ): Boolean; external name '_QDIsPortBufferDirty';
5371 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5372
5373
5374 {
5375 * QDFlushPortBuffer() *** DEPRECATED ***
5376 *
5377 * Mac OS X threading:
5378 * Not thread safe
5379 *
5380 * Availability:
5381 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5382 * CarbonLib: in CarbonLib 1.0.2 and later
5383 * Non-Carbon CFM: not available
5384 }
5385 procedure QDFlushPortBuffer( port: CGrafPtr; region: RgnHandle { can be NULL } ); external name '_QDFlushPortBuffer';
5386 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5387
5388
5389 {
5390 * QDGetDirtyRegion() *** DEPRECATED ***
5391 *
5392 * Mac OS X threading:
5393 * Not thread safe
5394 *
5395 * Availability:
5396 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5397 * CarbonLib: in CarbonLib 1.1 and later
5398 * Non-Carbon CFM: not available
5399 }
QDGetDirtyRegionnull5400 function QDGetDirtyRegion( port: CGrafPtr; rgn: RgnHandle ): OSStatus; external name '_QDGetDirtyRegion';
5401 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5402
5403
5404 {
5405 * QDSetDirtyRegion() *** DEPRECATED ***
5406 *
5407 * Mac OS X threading:
5408 * Not thread safe
5409 *
5410 * Availability:
5411 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5412 * CarbonLib: in CarbonLib 1.1 and later
5413 * Non-Carbon CFM: not available
5414 }
QDSetDirtyRegionnull5415 function QDSetDirtyRegion( port: CGrafPtr; rgn: RgnHandle ): OSStatus; external name '_QDSetDirtyRegion';
5416 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5417
5418
5419 {
5420 * QDAddRectToDirtyRegion() *** DEPRECATED ***
5421 *
5422 * Mac OS X threading:
5423 * Not thread safe
5424 *
5425 * Availability:
5426 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5427 * CarbonLib: in CarbonLib 1.5 and later
5428 * Non-Carbon CFM: not available
5429 }
QDAddRectToDirtyRegionnull5430 function QDAddRectToDirtyRegion( inPort: CGrafPtr; const (*var*) inBounds: Rect ): OSStatus; external name '_QDAddRectToDirtyRegion';
5431 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5432
5433
5434 {
5435 * QDAddRegionToDirtyRegion() *** DEPRECATED ***
5436 *
5437 * Mac OS X threading:
5438 * Not thread safe
5439 *
5440 * Availability:
5441 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5442 * CarbonLib: in CarbonLib 1.5 and later
5443 * Non-Carbon CFM: not available
5444 }
QDAddRegionToDirtyRegionnull5445 function QDAddRegionToDirtyRegion( inPort: CGrafPtr; inRegion: RgnHandle ): OSStatus; external name '_QDAddRegionToDirtyRegion';
5446 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5447
5448
5449 {
5450 * CreateCGContextForPort() *** DEPRECATED ***
5451 *
5452 * Mac OS X threading:
5453 * Not thread safe
5454 *
5455 * Availability:
5456 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5457 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.0 and later
5458 * Non-Carbon CFM: not available
5459 }
CreateCGContextForPortnull5460 function CreateCGContextForPort( inPort: CGrafPtr; var outContext: CGContextRef ): OSStatus; external name '_CreateCGContextForPort';
5461 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5462
5463
5464 {
5465 * ClipCGContextToRegion() *** DEPRECATED ***
5466 *
5467 * Summary:
5468 * Set a CGContext's clip path to the equivalent of a RgnHandle
5469 *
5470 * Discussion:
5471 * When Quickdraw and CoreGraphics drawing are being mixed, it is
5472 * often necessary to convert a QD clipRgn to a clipPath in CG. In
5473 * order to produce the expected outcome in ClipCGContextToRegion,
5474 * this function needs to reset any CGContext clipPath before
5475 * setting it to the converted region, in contrast to the usual
5476 * behavior of CGContextClip which takes the intersection with the
5477 * previous clip.
5478 *
5479 * Mac OS X threading:
5480 * Not thread safe
5481 *
5482 * Parameters:
5483 *
5484 * gc:
5485 * The CGContext
5486 *
5487 * portRect:
5488 * A bounding box for the region (needed by conversion to
5489 * clipPath). Can be the GrafPort bounds, or the region bounds
5490 *
5491 * region:
5492 * The RgnHandle (usually a clipRgn) to be converted to the
5493 * CGContextClip.
5494 *
5495 * Result:
5496 * OSStatus noErr, or a memory error is some internal allocation
5497 * failed.
5498 *
5499 * Availability:
5500 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5501 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.0 and later
5502 * Non-Carbon CFM: not available
5503 }
ClipCGContextToRegionnull5504 function ClipCGContextToRegion( gc: CGContextRef; const (*var*) portRect: Rect; region: RgnHandle ): OSStatus; external name '_ClipCGContextToRegion';
5505 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5506
5507
5508 {
5509 * SyncCGContextOriginWithPort() *** DEPRECATED ***
5510 *
5511 * Mac OS X threading:
5512 * Not thread safe
5513 *
5514 * Availability:
5515 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5516 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.0 and later
5517 * Non-Carbon CFM: not available
5518 }
SyncCGContextOriginWithPortnull5519 function SyncCGContextOriginWithPort( inContext: CGContextRef; port: CGrafPtr ): OSStatus; external name '_SyncCGContextOriginWithPort';
5520 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5521
5522
5523 {
5524 * QDBeginCGContext()
5525 *
5526 * Summary:
5527 * Allow CoreGraphics drawing in a CGrafPort
5528 *
5529 * Discussion:
5530 * So far, CreateCGContextForPort() was used to create a CGContext
5531 * for CG drawing from a CGrafPort. However, if the current port is
5532 * a printing port, the CreateCGContextForPort fails; consequently,
5533 * there was no way to mix Quickdraw and CoreGraphics drawing and
5534 * still print it. If, instead, the CoreGraphics drawing is
5535 * bracketed by QDBeginCGContext/QDEndCGContext calls, the drawing
5536 * will also appear in print. There are some restrictions on the
5537 * usage of QDBeginCGContext/QDEndCGContext:
5538 * - Between QDBeginCGContext and QDEndCGContext, Quickdraw drawing
5539 * is disabled; only CoreGraphics drawing is allowed
5540 * - QDBeginCGContext/QDEndCGContext calls can not be nested
5541 * - QDEndCGContext releases the CGContext returned from
5542 * QDBeginCGContext and sets it to NULL.
5543 *
5544 * Mac OS X threading:
5545 * Not thread safe
5546 *
5547 * Parameters:
5548 *
5549 * inPort:
5550 * The current port
5551 *
5552 * outContext:
5553 * The CGContextRef to be used for CG drawing
5554 *
5555 * Availability:
5556 * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only]
5557 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.1 and later
5558 * Non-Carbon CFM: not available
5559 }
QDBeginCGContextnull5560 function QDBeginCGContext( inPort: CGrafPtr; var outContext: CGContextRef ): OSStatus; external name '_QDBeginCGContext';
5561 (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *)
5562
5563
5564 {
5565 * QDEndCGContext()
5566 *
5567 * Mac OS X threading:
5568 * Not thread safe
5569 *
5570 * Availability:
5571 * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only]
5572 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.1 and later
5573 * Non-Carbon CFM: not available
5574 }
QDEndCGContextnull5575 function QDEndCGContext( inPort: CGrafPtr; var inoutContext: CGContextRef ): OSStatus; external name '_QDEndCGContext';
5576 (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *)
5577
5578
5579 {
5580 They save the pixel data of a region in a packed format for quick save/restore
5581 without using a lot of memory to do a large, hollow region, such as the region
5582 used when drag hiliting (which is where this is used).
5583 }
5584
5585 {$endc} {not TARGET_CPU_64}
5586
5587 type
5588 QDRegionBitsRef = ^SInt32; { an opaque type }
5589 QDRegionBitsRefPtr = ^QDRegionBitsRef; { when a var xx:QDRegionBitsRef parameter can be nil, it is changed to xx: QDRegionBitsRefPtr }
5590 {$ifc not TARGET_CPU_64}
5591 {
5592 * QDSaveRegionBits() *** DEPRECATED ***
5593 *
5594 * Summary:
5595 * Saves the pixel data of a region in a packed format for quick
5596 * restore
5597 *
5598 * Discussion:
5599 * Implemented in CarbonLib, and on Mac OS X in QD proper. Used in
5600 * particular for drag hiliting. The packed format doesn't use too
5601 * much memory for large hollow regions.
5602 *
5603 * Mac OS X threading:
5604 * Not thread safe
5605 *
5606 * Parameters:
5607 *
5608 * region:
5609 * The RgnHandle corresponding to the pixel data to be saved.
5610 *
5611 * Result:
5612 * The QDRegionBitsRef to be passed later into QDRestoreRegionBits.
5613 *
5614 * Availability:
5615 * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5616 * CarbonLib: in CarbonLib 1.0 and later
5617 * Non-Carbon CFM: not available
5618 }
QDSaveRegionBitsnull5619 function QDSaveRegionBits( region: RgnHandle ): QDRegionBitsRef; external name '_QDSaveRegionBits';
5620 (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5621
5622
5623 {
5624 * QDRestoreRegionBits() *** DEPRECATED ***
5625 *
5626 * Summary:
5627 * Restores the pixel data of a region, as returned from
5628 * QDSaveRegionBits
5629 *
5630 * Discussion:
5631 * Implemented in CarbonLib, and on Mac OS X in QD proper. Used in
5632 * particular for drag hiliting. NOTE: QDRestoreRegionBits also
5633 * calls QDDisposeRegionBits on the regionBits passed in - don't
5634 * call it again!
5635 *
5636 * Mac OS X threading:
5637 * Not thread safe
5638 *
5639 * Parameters:
5640 *
5641 * region:
5642 * The RgnHandle corresponding to the regionBits.
5643 *
5644 * regionBits:
5645 * The QDRegionBitsRef returned from a preceding QDSaveRegionBits
5646 * call
5647 *
5648 * Result:
5649 * OSStatus noErr, or paramErr if a NULL parameter is passed in
5650 *
5651 * Availability:
5652 * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5653 * CarbonLib: in CarbonLib 1.0 and later
5654 * Non-Carbon CFM: not available
5655 }
QDRestoreRegionBitsnull5656 function QDRestoreRegionBits( region: RgnHandle; regionBits: QDRegionBitsRef ): OSStatus; external name '_QDRestoreRegionBits';
5657 (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5658
5659
5660 {
5661 * QDDisposeRegionBits() *** DEPRECATED ***
5662 *
5663 * Summary:
5664 * Disposes of data allocated in QDSaveRegionBits, when the
5665 * QDRegionBitsRef needs to be discarded without being passed to
5666 * QDRestoreRegionBits.
5667 *
5668 * Discussion:
5669 * Implemented in CarbonLib, and on Mac OS X in QD proper. NOTE: If
5670 * the QDRegionBitsRef has been passed to QDRestoreRegionBits, it
5671 * has been deallocated already - don't call QDDisposeRegionBits,
5672 * then.
5673 *
5674 * Mac OS X threading:
5675 * Not thread safe
5676 *
5677 * Parameters:
5678 *
5679 * regionBits:
5680 * The QDRegionBitsRef returned from a preceding QDSaveRegionBits
5681 * call
5682 *
5683 * Result:
5684 * OSStatus noErr, or paramErr if a NULL parameter is passed in
5685 *
5686 * Availability:
5687 * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5688 * CarbonLib: in CarbonLib 1.0 and later
5689 * Non-Carbon CFM: not available
5690 }
QDDisposeRegionBitsnull5691 function QDDisposeRegionBits( regionBits: QDRegionBitsRef ): OSStatus; external name '_QDDisposeRegionBits';
5692 (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5693
5694
5695 {
5696 Developers need a way to go from a CGDirectDisplay environment to Quickdraw.
5697 The following is equivalent to CreateNewPort(), but instead of taking the
5698 portPixMap from the current GDevice, it uses the GDevice corresponding to
5699 the CGSDisplayID passed in. If the CGSDisplayID is invalid, the mainDevice
5700 is used instead.
5701 }
5702 {
5703 * CreateNewPortForCGDisplayID() *** DEPRECATED ***
5704 *
5705 * Mac OS X threading:
5706 * Not thread safe
5707 *
5708 * Availability:
5709 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5710 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.0 and later
5711 * Non-Carbon CFM: not available
5712 }
CreateNewPortForCGDisplayIDnull5713 function CreateNewPortForCGDisplayID( inCGDisplayID: UInt32 ): CGrafPtr; external name '_CreateNewPortForCGDisplayID';
5714 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5715
5716
5717 {
5718 In Mac OS X, developers should be able to turn the WaitCursor (spinning wheel)
5719 on and off. QDDisplayWaitCursor() keeps track of nested calls.
5720 Passing FALSE will resume automatic wait cursor operation.
5721 Call this function only from an application in the foreground.
5722 }
5723 {
5724 * QDDisplayWaitCursor() *** DEPRECATED ***
5725 *
5726 * Mac OS X threading:
5727 * Not thread safe
5728 *
5729 * Availability:
5730 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5731 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.0 and later
5732 * Non-Carbon CFM: not available
5733 }
5734 procedure QDDisplayWaitCursor( forceWaitCursor: Boolean ); external name '_QDDisplayWaitCursor';
5735 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5736
5737
5738 {
5739 * QDSetPatternOrigin() *** DEPRECATED ***
5740 *
5741 * Summary:
5742 * Sets the pattern origin for the current port.
5743 *
5744 * Discussion:
5745 * When a QuickDraw drawing operation uses a pattern (either a
5746 * black&white pattern or a PixPat), the pattern's image is aligned
5747 * with port origin, modified by the pattern origin of the port. For
5748 * example, if the background pattern is a 8x8 image, and a
5749 * rectangle with coordinates (3, 3, 8, 8) is filled with that
5750 * pattern, then only the bottom right 5x5 portion of the pattern
5751 * image will be drawn into the rectangle. When drawing a pattern,
5752 * QuickDraw always starts with the port origin and then adjusts it
5753 * by the pattern origin to determine the actual origin point of
5754 * pattern drawing. QDSetPatternOrigin can be used to set the
5755 * pattern origin relative to the port origin. It is often used in
5756 * conjuction with SetOrigin to maintain the pattern alignment at
5757 * (0,0) in a window's content area, regardless of the port origin;
5758 * for example, after changing the port's origin to (10,10), an
5759 * application might change the port's pattern origin to (-10, -10)
5760 * so that patterns are still aligned with the window's content area.
5761 *
5762 * Mac OS X threading:
5763 * Not thread safe
5764 *
5765 * Parameters:
5766 *
5767 * origin:
5768 * The new pattern origin of the port.
5769 *
5770 * Availability:
5771 * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5772 * CarbonLib: in CarbonLib 1.3 and later
5773 * Non-Carbon CFM: in NQD 8.5 and later
5774 }
5775 procedure QDSetPatternOrigin( origin: Point ); external name '_QDSetPatternOrigin';
5776 (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5777
5778
5779 {
5780 * QDGetPatternOrigin() *** DEPRECATED ***
5781 *
5782 * Summary:
5783 * Returns the pattern origin of the current port.
5784 *
5785 * Mac OS X threading:
5786 * Not thread safe
5787 *
5788 * Parameters:
5789 *
5790 * origin:
5791 * On exit, contains the current port's pattern origin.
5792 *
5793 * Availability:
5794 * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5795 * CarbonLib: in CarbonLib 1.3 and later
5796 * Non-Carbon CFM: in NQD 8.5 and later
5797 }
5798 procedure QDGetPatternOrigin( var origin: Point ); external name '_QDGetPatternOrigin';
5799 (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5800
5801
5802 {
5803 * QDIsNamedPixMapCursorRegistered() *** DEPRECATED ***
5804 *
5805 * Summary:
5806 * Returns whether a named cursor has already been registered.
5807 *
5808 * Discussion:
5809 * The CoreGraphics Scalable Cursor Registry provides support for
5810 * cursors based on PixMaps for crsrData and crsrMask, with sizes up
5811 * to 64x64 pixels. Such cursors need to be registered via
5812 * QDRegisterNamedPixMapCursor, and can then be set by
5813 * QDSetNamedPixMapCursor.
5814 *
5815 * Mac OS X threading:
5816 * Not thread safe
5817 *
5818 * Parameters:
5819 *
5820 * name:
5821 * (see below at QDRegisterNamedPixMapCursor)
5822 *
5823 * Availability:
5824 * Mac OS X: in version 10.2 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5825 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
5826 * Non-Carbon CFM: not available
5827 }
QDIsNamedPixMapCursorRegisterednull5828 function QDIsNamedPixMapCursorRegistered( name: ConstCStringPtr ): Boolean; external name '_QDIsNamedPixMapCursorRegistered';
5829 (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5830
5831
5832 {
5833 * QDRegisterNamedPixMapCursor() *** DEPRECATED ***
5834 *
5835 * Summary:
5836 * Register a new cursor by name
5837 *
5838 * Discussion:
5839 * In order to set a PixMapCursor, it needs to be registered first
5840 * by name. This only succeeds if the system supports Hardware
5841 * Cursors (depending on video circuits). There is also the obvious
5842 * companion function QDUnregisterNamedPixMapCursor. NOTE: The
5843 * original implementation of QDUnregisterNamedPixMapCursor was
5844 * misspelled "QDUnregisterNamedPixMapCursur".
5845 *
5846 * Mac OS X threading:
5847 * Not thread safe
5848 *
5849 * Parameters:
5850 *
5851 * crsrData:
5852 * A PixMapHandle representing the cursor pixels. If the
5853 * pixelDepth is 32, the crsrMask PixMapHandle can be NULL; in
5854 * this case, the alpha channel in the ARGB PixMap is used as
5855 * mask. If a crsrMask is provided, the alpha channel in crsrData
5856 * is ignored. The pixelDepth can be any of 1, 2, 4, 8, 16 or 32.
5857 *
5858 * crsrMask:
5859 * A PixMapHandle representing the mask. It is assumed to be in
5860 * 8-bit deep grayScale format, although other depths are accepted
5861 * and converted to 8-bit grayScale (using CopyBits). The
5862 * (**crsrMask).bounds rectangle needs to match
5863 * (**crsrData).bounds. If the crsrData are 32-bit deep, crsrMask
5864 * can be NULL, and the alpha bytes in the crsrData ARGB pixels
5865 * are used as mask.
5866 *
5867 * hotSpot:
5868 * The usual cursor hotspot, in coordinates relativ to
5869 * (**crsrData).bounds.topLeft.
5870 *
5871 * name:
5872 * A naming convention involving the name of your application and
5873 * descriptive cursor names or resource IDs is suggested. Cursor
5874 * names are 0-terminated C-strings up to a length of 127. $result
5875 * OSStatus: noErr = 0 for success, or (constants from
5876 * MacErrors.h): kQDNoColorHWCursorSupport,
5877 * kQDCursorAlreadyRegistered, paramErr, memFullErr, or a CGError
5878 * as returned internally from CoreGraphics.
5879 *
5880 * Availability:
5881 * Mac OS X: in version 10.2 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5882 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
5883 * Non-Carbon CFM: not available
5884 }
QDRegisterNamedPixMapCursornull5885 function QDRegisterNamedPixMapCursor( crsrData: PixMapHandle; crsrMask: PixMapHandle; hotSpot: Point; name: ConstCStringPtr ): OSStatus; external name '_QDRegisterNamedPixMapCursor';
5886 (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5887
5888
5889 {
5890 * QDUnregisterNamedPixMapCursur() *** DEPRECATED ***
5891 *
5892 * Mac OS X threading:
5893 * Not thread safe
5894 *
5895 * Availability:
5896 * Mac OS X: in version 10.2 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5897 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
5898 * Non-Carbon CFM: not available
5899 }
5900 function QDUnregisterNamedPixMapCursur( name: ConstCStringPtr ): OSStatus; external name '_QDUnregisterNamedPixMapCursur';
5901 (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5902
5903
5904 {
5905 * QDUnregisterNamedPixMapCursor() *** DEPRECATED ***
5906 *
5907 * Mac OS X threading:
5908 * Not thread safe
5909 *
5910 * Availability:
5911 * Mac OS X: in version 10.3 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5912 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.3 and later
5913 * Non-Carbon CFM: not available
5914 }
QDUnregisterNamedPixMapCursornull5915 function QDUnregisterNamedPixMapCursor( name: ConstCStringPtr ): OSStatus; external name '_QDUnregisterNamedPixMapCursor';
5916 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5917
5918
5919 {
5920 * QDSetNamedPixMapCursor() *** DEPRECATED ***
5921 *
5922 * Mac OS X threading:
5923 * Not thread safe
5924 *
5925 * Availability:
5926 * Mac OS X: in version 10.2 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5927 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
5928 * Non-Carbon CFM: not available
5929 }
QDSetNamedPixMapCursornull5930 function QDSetNamedPixMapCursor( name: ConstCStringPtr ): OSStatus; external name '_QDSetNamedPixMapCursor';
5931 (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5932
5933
5934 {$endc} {not TARGET_CPU_64}
5935
5936 const
5937 kQDXArrowCursor = 0;
5938 kQDXIBeamCursor = 1;
5939 kQDXIBeamXORCursor = 2;
5940 kQDXAliasCursor = 3;
5941 kQDXCopyCursor = 4;
5942 kQDXMoveCursor = 5;
5943 kQDXNumberOfSystemCursors = 6; { Must be last }
5944
5945
5946 type
5947 QDXSystemCursorID = UInt32;
5948 {$ifc not TARGET_CPU_64}
5949 {
5950 * QDGetCursorNameForSystemCursor() *** DEPRECATED ***
5951 *
5952 * Summary:
5953 * Return the name of one of the predefined Mac OS X system cursors
5954 *
5955 * Mac OS X threading:
5956 * Not thread safe
5957 *
5958 * Parameters:
5959 *
5960 * cursorID:
5961 * UInt32 in the range 0 ... kQDXNumberOfSystemCursors - 1 (see
5962 * enum above)
5963 *
5964 * Result:
5965 * const char* name, or NULL if 'cursorID' is out of range
5966 *
5967 * Availability:
5968 * Mac OS X: in version 10.3 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5969 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.3 and later
5970 * Non-Carbon CFM: not available
5971 }
QDGetCursorNameForSystemCursornull5972 function QDGetCursorNameForSystemCursor( cursorID: QDXSystemCursorID ): ConstCStringPtr; external name '_QDGetCursorNameForSystemCursor';
5973 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
5974
5975
5976 {
5977 * QDSetCursorScale() *** DEPRECATED ***
5978 *
5979 * Summary:
5980 * Set a scaling factor for the cursor.
5981 *
5982 * Mac OS X threading:
5983 * Not thread safe
5984 *
5985 * Parameters:
5986 *
5987 * scale:
5988 * Must be at least 0.5, and integer values (1.0, 2.0, 3.0, 4.0)
5989 * are recommended. The scaling factor is system-wide (applies to
5990 * all apps), and is intended for use in such things as assisting
5991 * the visually impaired. The scaling factor is treated as a hint
5992 * to the system, and the exact scale applied may be limited by
5993 * device driver capabilities and performance considerations.
5994 *
5995 * Availability:
5996 * Mac OS X: in version 10.2 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
5997 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
5998 * Non-Carbon CFM: not available
5999 }
QDSetCursorScalenull6000 function QDSetCursorScale( scale: Float32 ): OSStatus; external name '_QDSetCursorScale';
6001 (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6002
6003
6004 {
6005 * QDGetCursorScale() *** DEPRECATED ***
6006 *
6007 * Mac OS X threading:
6008 * Not thread safe
6009 *
6010 * Availability:
6011 * Mac OS X: in version 10.3 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6012 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.3 and later
6013 * Non-Carbon CFM: not available
6014 }
QDGetCursorScalenull6015 function QDGetCursorScale( outScale: Float32Ptr ): OSStatus; external name '_QDGetCursorScale';
6016 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6017
6018
6019 {
6020 * QDGetCursorData() *** DEPRECATED ***
6021 *
6022 * Summary:
6023 * Allocate and return a PixMapHandle with the cursor data; also
6024 * return the hotSpot. The caller is responsible for calling
6025 * DisposePtr((**crsrData).baseAddr) and DisposePixMap(crsrData)
6026 * when done with the crsrData returned.
6027 *
6028 * Mac OS X threading:
6029 * Not thread safe
6030 *
6031 * Parameters:
6032 *
6033 * contextCursor:
6034 * A Boolean; if true, return data for the current context cursor,
6035 * if false, return data for the currently showing global cursor.
6036 *
6037 * crsrData:
6038 * Allocates a PixMapHandle and pixelData in baseAddr,
6039 * corresponding to the cursorData. The pixelData are in 32-bit
6040 * ARGB format, with the mask contained in the alpha channel. This
6041 * PixMapHandle can be passed as crsrData to
6042 * QDRegisterNamedPixMapCursor, above (with crsrMask = NULL). If
6043 * the return result indicates an error, NULL is returned.
6044 *
6045 * hotSpot:
6046 * Contains the cursor hotSpot, if successful.
6047 *
6048 * Result:
6049 * noErr if successful, or whatever error is returned from lower
6050 * levels otherwise.
6051 *
6052 * Availability:
6053 * Mac OS X: in version 10.3 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6054 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.3 and later
6055 * Non-Carbon CFM: not available
6056 }
QDGetCursorDatanull6057 function QDGetCursorData( contextCursor: Boolean; var crsrData: PixMapHandle; var hotSpot: Point ): OSStatus; external name '_QDGetCursorData';
6058 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6059
6060
6061 {$endc} {not TARGET_CPU_64}
6062
6063 const
6064 kQDUseDefaultTextRendering = 0; { Sets whatever is specified in system defaults.}
6065 { Currently sets kQDUseTrueTypeScalerGlyphs if nothing is specified.}
6066 kQDUseTrueTypeScalerGlyphs = 1 shl 0; { bit 0}
6067 kQDUseCGTextRendering = 1 shl 1; { bit 1}
6068 kQDUseCGTextMetrics = 1 shl 2; { bit 2}
6069 kQDSupportedFlags = kQDUseTrueTypeScalerGlyphs or kQDUseCGTextRendering or kQDUseCGTextMetrics;
6070 kQDDontChangeFlags = -1; { to request the current state, without changing anything}
6071
6072
6073 {$ifc not TARGET_CPU_64}
6074 {
6075 * QDSwapTextFlags() *** DEPRECATED ***
6076 *
6077 * Summary:
6078 * Returns current flags and optionally sets new flags.
6079 *
6080 * Discussion:
6081 * Currently, only the flag bits in the enum above are supported.
6082 * The typical usage is UInt32 savedFlags =
6083 * QDSwapTextFlags(newFlags); // ... draw text under the conditions
6084 * of "newFlags" ... (void)QDSwapTextFlags(savedFlags); // restore
6085 * previous setting
6086 *
6087 * Mac OS X threading:
6088 * Not thread safe
6089 *
6090 * Parameters:
6091 *
6092 * newFlags:
6093 * Use the enums above; example "kQDUseCGTextRendering |
6094 * kQDUseCGTextMetrics".
6095 *
6096 * Availability:
6097 * Mac OS X: in version 10.2 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6098 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
6099 * Non-Carbon CFM: not available
6100 }
QDSwapTextFlagsnull6101 function QDSwapTextFlags( newFlags: UInt32 ): UInt32; external name '_QDSwapTextFlags';
6102 (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6103
6104
6105 {
6106 * QDSwapPortTextFlags() *** DEPRECATED ***
6107 *
6108 * Summary:
6109 * Same as QDSwapTextFlags, but per GrafPort.
6110 *
6111 * Mac OS X threading:
6112 * Not thread safe
6113 *
6114 * Parameters:
6115 *
6116 * port:
6117 * Settings per port override any global settings. If port ==
6118 * NULL, the current port is used.
6119 *
6120 * newFlags:
6121 * As in QDSwapTextFlags, above.
6122 *
6123 * Availability:
6124 * Mac OS X: in version 10.2 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6125 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
6126 * Non-Carbon CFM: not available
6127 }
QDSwapPortTextFlagsnull6128 function QDSwapPortTextFlags( port: CGrafPtr; newFlags: UInt32 ): UInt32; external name '_QDSwapPortTextFlags';
6129 (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6130
6131
6132 {
6133 * QDGetCGDirectDisplayID()
6134 *
6135 * Summary:
6136 * Return the CGDirectDisplayID corresponding to a GDHandle
6137 *
6138 * Mac OS X threading:
6139 * Not thread safe
6140 *
6141 * Parameters:
6142 *
6143 * inGDevice:
6144 * The GDevice handle corresponding to the device for which the
6145 * CGDirectDisplayID is requested
6146 *
6147 * Result:
6148 * The CGDirectDisplayID, or 0 if the GDHandle does not represent a
6149 * display.
6150 *
6151 * Availability:
6152 * Mac OS X: in version 10.3 and later in ApplicationServices.framework [32-bit only]
6153 * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.3 and later
6154 * Non-Carbon CFM: not available
6155 }
QDGetCGDirectDisplayIDnull6156 function QDGetCGDirectDisplayID( inGDevice: GDHandle ): CGDirectDisplayID; external name '_QDGetCGDirectDisplayID';
6157 (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
6158
6159
6160 {
6161 LowMem accessor functions previously in LowMem.h
6162 }
6163 {
6164 * LMGetScrVRes() *** DEPRECATED ***
6165 *
6166 * Mac OS X threading:
6167 * Not thread safe
6168 *
6169 * Availability:
6170 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6171 * CarbonLib: in CarbonLib 1.0 and later
6172 * Non-Carbon CFM: not available
6173 }
LMGetScrVResnull6174 function LMGetScrVRes: SInt16; external name '_LMGetScrVRes';
6175 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6176
6177
6178 {
6179 * LMSetScrVRes() *** DEPRECATED ***
6180 *
6181 * Mac OS X threading:
6182 * Not thread safe
6183 *
6184 * Availability:
6185 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6186 * CarbonLib: in CarbonLib 1.0 and later
6187 * Non-Carbon CFM: not available
6188 }
6189 procedure LMSetScrVRes( value: SInt16 ); external name '_LMSetScrVRes';
6190 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6191
6192
6193 {
6194 * LMGetScrHRes() *** DEPRECATED ***
6195 *
6196 * Mac OS X threading:
6197 * Not thread safe
6198 *
6199 * Availability:
6200 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6201 * CarbonLib: in CarbonLib 1.0 and later
6202 * Non-Carbon CFM: not available
6203 }
LMGetScrHResnull6204 function LMGetScrHRes: SInt16; external name '_LMGetScrHRes';
6205 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6206
6207
6208 {
6209 * LMSetScrHRes() *** DEPRECATED ***
6210 *
6211 * Mac OS X threading:
6212 * Not thread safe
6213 *
6214 * Availability:
6215 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6216 * CarbonLib: in CarbonLib 1.0 and later
6217 * Non-Carbon CFM: not available
6218 }
6219 procedure LMSetScrHRes( value: SInt16 ); external name '_LMSetScrHRes';
6220 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6221
6222
6223 {
6224 * LMGetMainDevice() *** DEPRECATED ***
6225 *
6226 * Mac OS X threading:
6227 * Not thread safe
6228 *
6229 * Availability:
6230 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6231 * CarbonLib: in CarbonLib 1.0 and later
6232 * Non-Carbon CFM: not available
6233 }
LMGetMainDevicenull6234 function LMGetMainDevice: GDHandle; external name '_LMGetMainDevice';
6235 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6236
6237
6238 {
6239 * LMSetMainDevice() *** DEPRECATED ***
6240 *
6241 * Mac OS X threading:
6242 * Not thread safe
6243 *
6244 * Availability:
6245 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6246 * CarbonLib: in CarbonLib 1.0 and later
6247 * Non-Carbon CFM: not available
6248 }
6249 procedure LMSetMainDevice( value: GDHandle ); external name '_LMSetMainDevice';
6250 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6251
6252
6253 {
6254 * LMGetDeviceList() *** DEPRECATED ***
6255 *
6256 * Mac OS X threading:
6257 * Not thread safe
6258 *
6259 * Availability:
6260 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6261 * CarbonLib: in CarbonLib 1.0 and later
6262 * Non-Carbon CFM: not available
6263 }
LMGetDeviceListnull6264 function LMGetDeviceList: GDHandle; external name '_LMGetDeviceList';
6265 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6266
6267
6268 {
6269 * LMSetDeviceList() *** DEPRECATED ***
6270 *
6271 * Mac OS X threading:
6272 * Not thread safe
6273 *
6274 * Availability:
6275 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6276 * CarbonLib: in CarbonLib 1.0 and later
6277 * Non-Carbon CFM: not available
6278 }
6279 procedure LMSetDeviceList( value: GDHandle ); external name '_LMSetDeviceList';
6280 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6281
6282
6283 {
6284 * LMGetQDColors() *** DEPRECATED ***
6285 *
6286 * Mac OS X threading:
6287 * Not thread safe
6288 *
6289 * Availability:
6290 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6291 * CarbonLib: in CarbonLib 1.0 and later
6292 * Non-Carbon CFM: not available
6293 }
LMGetQDColorsnull6294 function LMGetQDColors: Handle; external name '_LMGetQDColors';
6295 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6296
6297
6298 {
6299 * LMSetQDColors() *** DEPRECATED ***
6300 *
6301 * Mac OS X threading:
6302 * Not thread safe
6303 *
6304 * Availability:
6305 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6306 * CarbonLib: in CarbonLib 1.0 and later
6307 * Non-Carbon CFM: not available
6308 }
6309 procedure LMSetQDColors( value: Handle ); external name '_LMSetQDColors';
6310 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6311
6312
6313 {
6314 * LMGetWidthListHand() *** DEPRECATED ***
6315 *
6316 * Mac OS X threading:
6317 * Not thread safe
6318 *
6319 * Availability:
6320 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6321 * CarbonLib: in CarbonLib 1.0 and later
6322 * Non-Carbon CFM: not available
6323 }
LMGetWidthListHandnull6324 function LMGetWidthListHand: Handle; external name '_LMGetWidthListHand';
6325 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6326
6327
6328 {
6329 * LMSetWidthListHand() *** DEPRECATED ***
6330 *
6331 * Mac OS X threading:
6332 * Not thread safe
6333 *
6334 * Availability:
6335 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6336 * CarbonLib: in CarbonLib 1.0 and later
6337 * Non-Carbon CFM: not available
6338 }
6339 procedure LMSetWidthListHand( value: Handle ); external name '_LMSetWidthListHand';
6340 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6341
6342
6343 {
6344 * LMGetHiliteMode() *** DEPRECATED ***
6345 *
6346 * Mac OS X threading:
6347 * Not thread safe
6348 *
6349 * Availability:
6350 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6351 * CarbonLib: in CarbonLib 1.0 and later
6352 * Non-Carbon CFM: not available
6353 }
LMGetHiliteModenull6354 function LMGetHiliteMode: UInt8; external name '_LMGetHiliteMode';
6355 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6356
6357
6358 {
6359 * LMSetHiliteMode() *** DEPRECATED ***
6360 *
6361 * Mac OS X threading:
6362 * Not thread safe
6363 *
6364 * Availability:
6365 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6366 * CarbonLib: in CarbonLib 1.0 and later
6367 * Non-Carbon CFM: not available
6368 }
6369 procedure LMSetHiliteMode( value: ByteParameter ); external name '_LMSetHiliteMode';
6370 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6371
6372
6373 {
6374 * LMGetWidthPtr() *** DEPRECATED ***
6375 *
6376 * Mac OS X threading:
6377 * Not thread safe
6378 *
6379 * Availability:
6380 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6381 * CarbonLib: in CarbonLib 1.0 and later
6382 * Non-Carbon CFM: not available
6383 }
LMGetWidthPtrnull6384 function LMGetWidthPtr: Ptr; external name '_LMGetWidthPtr';
6385 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6386
6387
6388 {
6389 * LMSetWidthPtr() *** DEPRECATED ***
6390 *
6391 * Mac OS X threading:
6392 * Not thread safe
6393 *
6394 * Availability:
6395 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6396 * CarbonLib: in CarbonLib 1.0 and later
6397 * Non-Carbon CFM: not available
6398 }
6399 procedure LMSetWidthPtr( value: Ptr ); external name '_LMSetWidthPtr';
6400 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6401
6402
6403 {
6404 * LMGetWidthTabHandle() *** DEPRECATED ***
6405 *
6406 * Mac OS X threading:
6407 * Not thread safe
6408 *
6409 * Availability:
6410 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6411 * CarbonLib: in CarbonLib 1.0 and later
6412 * Non-Carbon CFM: not available
6413 }
LMGetWidthTabHandlenull6414 function LMGetWidthTabHandle: Handle; external name '_LMGetWidthTabHandle';
6415 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6416
6417
6418 {
6419 * LMSetWidthTabHandle() *** DEPRECATED ***
6420 *
6421 * Mac OS X threading:
6422 * Not thread safe
6423 *
6424 * Availability:
6425 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6426 * CarbonLib: in CarbonLib 1.0 and later
6427 * Non-Carbon CFM: not available
6428 }
6429 procedure LMSetWidthTabHandle( value: Handle ); external name '_LMSetWidthTabHandle';
6430 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6431
6432
6433 {
6434 * LMGetLastSPExtra() *** DEPRECATED ***
6435 *
6436 * Mac OS X threading:
6437 * Not thread safe
6438 *
6439 * Availability:
6440 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6441 * CarbonLib: in CarbonLib 1.0 and later
6442 * Non-Carbon CFM: not available
6443 }
LMGetLastSPExtranull6444 function LMGetLastSPExtra: SInt32; external name '_LMGetLastSPExtra';
6445 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6446
6447
6448 {
6449 * LMSetLastSPExtra() *** DEPRECATED ***
6450 *
6451 * Mac OS X threading:
6452 * Not thread safe
6453 *
6454 * Availability:
6455 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6456 * CarbonLib: in CarbonLib 1.0 and later
6457 * Non-Carbon CFM: not available
6458 }
6459 procedure LMSetLastSPExtra( value: SInt32 ); external name '_LMSetLastSPExtra';
6460 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6461
6462
6463 {
6464 * LMGetLastFOND() *** DEPRECATED ***
6465 *
6466 * Mac OS X threading:
6467 * Not thread safe
6468 *
6469 * Availability:
6470 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6471 * CarbonLib: in CarbonLib 1.0 and later
6472 * Non-Carbon CFM: not available
6473 }
LMGetLastFONDnull6474 function LMGetLastFOND: Handle; external name '_LMGetLastFOND';
6475 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6476
6477
6478 {
6479 * LMSetLastFOND() *** DEPRECATED ***
6480 *
6481 * Mac OS X threading:
6482 * Not thread safe
6483 *
6484 * Availability:
6485 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6486 * CarbonLib: in CarbonLib 1.0 and later
6487 * Non-Carbon CFM: not available
6488 }
6489 procedure LMSetLastFOND( value: Handle ); external name '_LMSetLastFOND';
6490 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6491
6492
6493 {
6494 * LMGetFractEnable() *** DEPRECATED ***
6495 *
6496 * Mac OS X threading:
6497 * Not thread safe
6498 *
6499 * Availability:
6500 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6501 * CarbonLib: in CarbonLib 1.0 and later
6502 * Non-Carbon CFM: not available
6503 }
LMGetFractEnablenull6504 function LMGetFractEnable: UInt8; external name '_LMGetFractEnable';
6505 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6506
6507
6508 {
6509 * LMSetFractEnable() *** DEPRECATED ***
6510 *
6511 * Mac OS X threading:
6512 * Not thread safe
6513 *
6514 * Availability:
6515 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6516 * CarbonLib: in CarbonLib 1.0 and later
6517 * Non-Carbon CFM: not available
6518 }
6519 procedure LMSetFractEnable( value: ByteParameter ); external name '_LMSetFractEnable';
6520 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6521
6522
6523 {
6524 * LMGetTheGDevice() *** DEPRECATED ***
6525 *
6526 * Mac OS X threading:
6527 * Not thread safe
6528 *
6529 * Availability:
6530 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6531 * CarbonLib: in CarbonLib 1.0 and later
6532 * Non-Carbon CFM: not available
6533 }
LMGetTheGDevicenull6534 function LMGetTheGDevice: GDHandle; external name '_LMGetTheGDevice';
6535 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6536
6537
6538 {
6539 * LMSetTheGDevice() *** DEPRECATED ***
6540 *
6541 * Mac OS X threading:
6542 * Not thread safe
6543 *
6544 * Availability:
6545 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6546 * CarbonLib: in CarbonLib 1.0 and later
6547 * Non-Carbon CFM: not available
6548 }
6549 procedure LMSetTheGDevice( value: GDHandle ); external name '_LMSetTheGDevice';
6550 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6551
6552
6553 {$endc} {not TARGET_CPU_64}
6554
6555 {$ifc not TARGET_CPU_64}
6556 {
6557 * LMGetHiliteRGB() *** DEPRECATED ***
6558 *
6559 * Mac OS X threading:
6560 * Not thread safe
6561 *
6562 * Availability:
6563 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6564 * CarbonLib: in CarbonLib 1.0 and later
6565 * Non-Carbon CFM: not available
6566 }
6567 procedure LMGetHiliteRGB( var hiliteRGBValue: RGBColor ); external name '_LMGetHiliteRGB';
6568 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6569
6570
6571 {
6572 * LMSetHiliteRGB() *** DEPRECATED ***
6573 *
6574 * Mac OS X threading:
6575 * Not thread safe
6576 *
6577 * Availability:
6578 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6579 * CarbonLib: in CarbonLib 1.0 and later
6580 * Non-Carbon CFM: not available
6581 }
6582 procedure LMSetHiliteRGB( const (*var*) hiliteRGBValue: RGBColor ); external name '_LMSetHiliteRGB';
6583 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6584
6585
6586 {$endc} {not TARGET_CPU_64}
6587
6588 {$ifc not TARGET_CPU_64}
6589 {
6590 * LMGetCursorNew() *** DEPRECATED ***
6591 *
6592 * Mac OS X threading:
6593 * Not thread safe
6594 *
6595 * Availability:
6596 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6597 * CarbonLib: in CarbonLib 1.0 and later
6598 * Non-Carbon CFM: not available
6599 }
LMGetCursorNewnull6600 function LMGetCursorNew: Boolean; external name '_LMGetCursorNew';
6601 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6602
6603
6604 {
6605 * LMSetCursorNew() *** DEPRECATED ***
6606 *
6607 * Mac OS X threading:
6608 * Not thread safe
6609 *
6610 * Availability:
6611 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
6612 * CarbonLib: in CarbonLib 1.0 and later
6613 * Non-Carbon CFM: not available
6614 }
6615 procedure LMSetCursorNew( value: Boolean ); external name '_LMSetCursorNew';
6616 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
6617
6618
6619 {$endc} {not TARGET_CPU_64}
6620
6621
6622 {$endc} {TARGET_OS_MAC}
6623
6624 {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
6625
6626 end.
6627 {$endc} {not MACOSALLINCLUDE}
6628