1 {
2 File: QD/PictUtils.h
3
4 Contains: Picture Utilities Interfaces.
5
6 Version: Quickdraw-262~1
7
8 Copyright: � 1990-2008 by Apple Computer, Inc., all rights reserved
9
10 Bugs?: For bug reports, consult the following page on
11 the World Wide Web:
12
13 http://bugs.freepascal.org
14
15 }
16 { Pascal Translation Updated: Jonas Maebe, <jonas@freepascal.org>, October 2009 }
17 {
18 Modified for use with Free Pascal
19 Version 308
20 Please report any bugs to <gpc@microbizz.nl>
21 }
22
23 {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
24 {$mode macpas}
25 {$modeswitch cblocks}
26 {$packenum 1}
27 {$macro on}
28 {$inline on}
29 {$calling mwpascal}
30
31 unit PictUtils;
32 interface
33 {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
34 {$setc GAP_INTERFACES_VERSION := $0308}
35
36 {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
37 {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
38 {$endc}
39
40 {$ifc defined CPUPOWERPC and defined CPUI386}
41 {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
42 {$endc}
43 {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
44 {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
45 {$endc}
46
47 {$ifc not defined __ppc__ and defined CPUPOWERPC32}
48 {$setc __ppc__ := 1}
49 {$elsec}
50 {$setc __ppc__ := 0}
51 {$endc}
52 {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
53 {$setc __ppc64__ := 1}
54 {$elsec}
55 {$setc __ppc64__ := 0}
56 {$endc}
57 {$ifc not defined __i386__ and defined CPUI386}
58 {$setc __i386__ := 1}
59 {$elsec}
60 {$setc __i386__ := 0}
61 {$endc}
62 {$ifc not defined __x86_64__ and defined CPUX86_64}
63 {$setc __x86_64__ := 1}
64 {$elsec}
65 {$setc __x86_64__ := 0}
66 {$endc}
67 {$ifc not defined __arm__ and defined CPUARM}
68 {$setc __arm__ := 1}
69 {$elsec}
70 {$setc __arm__ := 0}
71 {$endc}
72 {$ifc not defined __arm64__ and defined CPUAARCH64}
73 {$setc __arm64__ := 1}
74 {$elsec}
75 {$setc __arm64__ := 0}
76 {$endc}
77
78 {$ifc defined cpu64}
79 {$setc __LP64__ := 1}
80 {$elsec}
81 {$setc __LP64__ := 0}
82 {$endc}
83
84
85 {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
86 {$error Conflicting definitions for __ppc__ and __i386__}
87 {$endc}
88
89 {$ifc defined __ppc__ and __ppc__}
90 {$setc TARGET_CPU_PPC := TRUE}
91 {$setc TARGET_CPU_PPC64 := FALSE}
92 {$setc TARGET_CPU_X86 := FALSE}
93 {$setc TARGET_CPU_X86_64 := FALSE}
94 {$setc TARGET_CPU_ARM := FALSE}
95 {$setc TARGET_CPU_ARM64 := FALSE}
96 {$setc TARGET_OS_MAC := TRUE}
97 {$setc TARGET_OS_IPHONE := FALSE}
98 {$setc TARGET_IPHONE_SIMULATOR := FALSE}
99 {$setc TARGET_OS_EMBEDDED := FALSE}
100 {$elifc defined __ppc64__ and __ppc64__}
101 {$setc TARGET_CPU_PPC := FALSE}
102 {$setc TARGET_CPU_PPC64 := TRUE}
103 {$setc TARGET_CPU_X86 := FALSE}
104 {$setc TARGET_CPU_X86_64 := FALSE}
105 {$setc TARGET_CPU_ARM := FALSE}
106 {$setc TARGET_CPU_ARM64 := FALSE}
107 {$setc TARGET_OS_MAC := TRUE}
108 {$setc TARGET_OS_IPHONE := FALSE}
109 {$setc TARGET_IPHONE_SIMULATOR := FALSE}
110 {$setc TARGET_OS_EMBEDDED := FALSE}
111 {$elifc defined __i386__ and __i386__}
112 {$setc TARGET_CPU_PPC := FALSE}
113 {$setc TARGET_CPU_PPC64 := FALSE}
114 {$setc TARGET_CPU_X86 := TRUE}
115 {$setc TARGET_CPU_X86_64 := FALSE}
116 {$setc TARGET_CPU_ARM := FALSE}
117 {$setc TARGET_CPU_ARM64 := FALSE}
118 {$ifc defined iphonesim}
119 {$setc TARGET_OS_MAC := FALSE}
120 {$setc TARGET_OS_IPHONE := TRUE}
121 {$setc TARGET_IPHONE_SIMULATOR := TRUE}
122 {$elsec}
123 {$setc TARGET_OS_MAC := TRUE}
124 {$setc TARGET_OS_IPHONE := FALSE}
125 {$setc TARGET_IPHONE_SIMULATOR := FALSE}
126 {$endc}
127 {$setc TARGET_OS_EMBEDDED := FALSE}
128 {$elifc defined __x86_64__ and __x86_64__}
129 {$setc TARGET_CPU_PPC := FALSE}
130 {$setc TARGET_CPU_PPC64 := FALSE}
131 {$setc TARGET_CPU_X86 := FALSE}
132 {$setc TARGET_CPU_X86_64 := TRUE}
133 {$setc TARGET_CPU_ARM := FALSE}
134 {$setc TARGET_CPU_ARM64 := FALSE}
135 {$ifc defined iphonesim}
136 {$setc TARGET_OS_MAC := FALSE}
137 {$setc TARGET_OS_IPHONE := TRUE}
138 {$setc TARGET_IPHONE_SIMULATOR := TRUE}
139 {$elsec}
140 {$setc TARGET_OS_MAC := TRUE}
141 {$setc TARGET_OS_IPHONE := FALSE}
142 {$setc TARGET_IPHONE_SIMULATOR := FALSE}
143 {$endc}
144 {$setc TARGET_OS_EMBEDDED := FALSE}
145 {$elifc defined __arm__ and __arm__}
146 {$setc TARGET_CPU_PPC := FALSE}
147 {$setc TARGET_CPU_PPC64 := FALSE}
148 {$setc TARGET_CPU_X86 := FALSE}
149 {$setc TARGET_CPU_X86_64 := FALSE}
150 {$setc TARGET_CPU_ARM := TRUE}
151 {$setc TARGET_CPU_ARM64 := FALSE}
152 {$setc TARGET_OS_MAC := FALSE}
153 {$setc TARGET_OS_IPHONE := TRUE}
154 {$setc TARGET_IPHONE_SIMULATOR := FALSE}
155 {$setc TARGET_OS_EMBEDDED := TRUE}
156 {$elifc defined __arm64__ and __arm64__}
157 {$setc TARGET_CPU_PPC := FALSE}
158 {$setc TARGET_CPU_PPC64 := FALSE}
159 {$setc TARGET_CPU_X86 := FALSE}
160 {$setc TARGET_CPU_X86_64 := FALSE}
161 {$setc TARGET_CPU_ARM := FALSE}
162 {$setc TARGET_CPU_ARM64 := TRUE}
163 {$ifc defined ios}
164 {$setc TARGET_OS_MAC := FALSE}
165 {$setc TARGET_OS_IPHONE := TRUE}
166 {$setc TARGET_OS_EMBEDDED := TRUE}
167 {$elsec}
168 {$setc TARGET_OS_MAC := TRUE}
169 {$setc TARGET_OS_IPHONE := FALSE}
170 {$setc TARGET_OS_EMBEDDED := FALSE}
171 {$endc}
172 {$setc TARGET_IPHONE_SIMULATOR := FALSE}
173 {$elsec}
174 {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ nor __arm64__ is defined.}
175 {$endc}
176
177 {$ifc defined __LP64__ and __LP64__ }
178 {$setc TARGET_CPU_64 := TRUE}
179 {$elsec}
180 {$setc TARGET_CPU_64 := FALSE}
181 {$endc}
182
183 {$ifc defined FPC_BIG_ENDIAN}
184 {$setc TARGET_RT_BIG_ENDIAN := TRUE}
185 {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
186 {$elifc defined FPC_LITTLE_ENDIAN}
187 {$setc TARGET_RT_BIG_ENDIAN := FALSE}
188 {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
189 {$elsec}
190 {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
191 {$endc}
192 {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
193 {$setc CALL_NOT_IN_CARBON := FALSE}
194 {$setc OLDROUTINENAMES := FALSE}
195 {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
196 {$setc OPAQUE_UPP_TYPES := TRUE}
197 {$setc OTCARBONAPPLICATION := TRUE}
198 {$setc OTKERNEL := FALSE}
199 {$setc PM_USE_SESSION_APIS := TRUE}
200 {$setc TARGET_API_MAC_CARBON := TRUE}
201 {$setc TARGET_API_MAC_OS8 := FALSE}
202 {$setc TARGET_API_MAC_OSX := TRUE}
203 {$setc TARGET_CARBON := TRUE}
204 {$setc TARGET_CPU_68K := FALSE}
205 {$setc TARGET_CPU_MIPS := FALSE}
206 {$setc TARGET_CPU_SPARC := FALSE}
207 {$setc TARGET_OS_UNIX := FALSE}
208 {$setc TARGET_OS_WIN32 := FALSE}
209 {$setc TARGET_RT_MAC_68881 := FALSE}
210 {$setc TARGET_RT_MAC_CFM := FALSE}
211 {$setc TARGET_RT_MAC_MACHO := TRUE}
212 {$setc TYPED_FUNCTION_POINTERS := TRUE}
213 {$setc TYPE_BOOL := FALSE}
214 {$setc TYPE_EXTENDED := FALSE}
215 {$setc TYPE_LONGLONG := TRUE}
216 uses MacTypes,QuickdrawTypes,Palettes;
217 {$endc} {not MACOSALLINCLUDE}
218
219
220 {$ifc TARGET_OS_MAC}
221
222 {$ALIGN MAC68K}
223
224 { verbs for the GetPictInfo, GetPixMapInfo, and NewPictInfo calls }
225 const
226 returnColorTable = $0001;
227 returnPalette = $0002;
228 recordComments = $0004;
229 recordFontInfo = $0008;
230 suppressBlackAndWhite = $0010;
231
232 const
233 { color pick methods }
234 systemMethod = 0; { system color pick method }
235 popularMethod = 1; { method that chooses the most popular set of colors }
236 medianMethod = 2; { method that chooses a good average mix of colors }
237
238 const
239 { color bank types }
240 ColorBankIsCustom = -1;
241 ColorBankIsExactAnd555 = 0;
242 ColorBankIs555 = 1;
243
244 type
245 PictInfoID = SIGNEDLONG;
246 CommentSpec = record
247 count: SInt16; { number of occurrances of this comment ID }
248 ID: SInt16; { ID for the comment in the picture }
249 end;
250 CommentSpecPtr = ^CommentSpec;
251 type
252 CommentSpecHandle = ^CommentSpecPtr;
253 FontSpec = record
254 pictFontID: SInt16; { ID of the font in the picture }
255 sysFontID: SInt16; { ID of the same font in the current system file }
256 size: array [0..3] of SInt32; { bit array of all the sizes found (1..127) (bit 0 means > 127) }
257 style: SInt16; { combined style of all occurrances of the font }
258 nameOffset: SIGNEDLONG; { offset into the fontNamesHdl handle for the font�s name }
259 end;
260 FontSpecPtr = ^FontSpec;
261 type
262 FontSpecHandle = ^FontSpecPtr;
263 PictInfo = record
264 version: SInt16; { this is always zero, for now }
265 uniqueColors: SIGNEDLONG; { the number of actual colors in the picture(s)/pixmap(s) }
266 thePalette: PaletteHandle; { handle to the palette information }
267 theColorTable: CTabHandle; { handle to the color table }
268 hRes: Fixed; { maximum horizontal resolution for all the pixmaps }
269 vRes: Fixed; { maximum vertical resolution for all the pixmaps }
270 depth: SInt16; { maximum depth for all the pixmaps (in the picture) }
271 sourceRect: Rect; { the picture frame rectangle (this contains the entire picture) }
272 textCount: SIGNEDLONG; { total number of text strings in the picture }
273 lineCount: SIGNEDLONG; { total number of lines in the picture }
274 rectCount: SIGNEDLONG; { total number of rectangles in the picture }
275 rRectCount: SIGNEDLONG; { total number of round rectangles in the picture }
276 ovalCount: SIGNEDLONG; { total number of ovals in the picture }
277 arcCount: SIGNEDLONG; { total number of arcs in the picture }
278 polyCount: SIGNEDLONG; { total number of polygons in the picture }
279 regionCount: SIGNEDLONG; { total number of regions in the picture }
280 bitMapCount: SIGNEDLONG; { total number of bitmaps in the picture }
281 pixMapCount: SIGNEDLONG; { total number of pixmaps in the picture }
282 commentCount: SIGNEDLONG; { total number of comments in the picture }
283 uniqueComments: SIGNEDLONG; { the number of unique comments in the picture }
284 commentHandle: CommentSpecHandle; { handle to all the comment information }
285 uniqueFonts: SIGNEDLONG; { the number of unique fonts in the picture }
286 fontHandle: FontSpecHandle; { handle to the FontSpec information }
287 fontNamesHandle: Handle; { handle to the font names }
288 reserved1: SIGNEDLONG;
289 reserved2: SIGNEDLONG;
290 end;
291 PictInfoPtr = ^PictInfo;
292 type
293 PictInfoHandle = ^PictInfoPtr;
colorsRequestednull294 InitPickMethodProcPtr = function( colorsRequested: SInt16; var dataRef: UInt32; var colorBankType: SInt16 ): OSErr;
dataRefnull295 RecordColorsProcPtr = function( dataRef: UInt32; var colorsArray: RGBColor; colorCount: SInt32; var uniqueColors: SInt32 ): OSErr;
dataRefnull296 CalcColorTableProcPtr = function( dataRef: UInt32; colorsRequested: SInt16; colorBankPtr: UnivPtr; resultPtr: CSpecArray ): OSErr;
dataRefnull297 DisposeColorPickMethodProcPtr = function( dataRef: UInt32 ): OSErr;
298 InitPickMethodUPP = InitPickMethodProcPtr;
299 RecordColorsUPP = RecordColorsProcPtr;
300 CalcColorTableUPP = CalcColorTableProcPtr;
301 DisposeColorPickMethodUPP = DisposeColorPickMethodProcPtr;
302 {
303 * NewInitPickMethodUPP()
304 *
305 * Availability:
306 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
307 * CarbonLib: in CarbonLib 1.0 and later
308 * Non-Carbon CFM: available as macro/inline
309 }
NewInitPickMethodUPPnull310 function NewInitPickMethodUPP( userRoutine: InitPickMethodProcPtr ): InitPickMethodUPP; external name '_NewInitPickMethodUPP';
311 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
312
313 {
314 * NewRecordColorsUPP()
315 *
316 * Availability:
317 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
318 * CarbonLib: in CarbonLib 1.0 and later
319 * Non-Carbon CFM: available as macro/inline
320 }
NewRecordColorsUPPnull321 function NewRecordColorsUPP( userRoutine: RecordColorsProcPtr ): RecordColorsUPP; external name '_NewRecordColorsUPP';
322 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
323
324 {
325 * NewCalcColorTableUPP()
326 *
327 * Availability:
328 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
329 * CarbonLib: in CarbonLib 1.0 and later
330 * Non-Carbon CFM: available as macro/inline
331 }
NewCalcColorTableUPPnull332 function NewCalcColorTableUPP( userRoutine: CalcColorTableProcPtr ): CalcColorTableUPP; external name '_NewCalcColorTableUPP';
333 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
334
335 {
336 * NewDisposeColorPickMethodUPP()
337 *
338 * Availability:
339 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
340 * CarbonLib: in CarbonLib 1.0 and later
341 * Non-Carbon CFM: available as macro/inline
342 }
NewDisposeColorPickMethodUPPnull343 function NewDisposeColorPickMethodUPP( userRoutine: DisposeColorPickMethodProcPtr ): DisposeColorPickMethodUPP; external name '_NewDisposeColorPickMethodUPP';
344 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
345
346 {
347 * DisposeInitPickMethodUPP()
348 *
349 * Availability:
350 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
351 * CarbonLib: in CarbonLib 1.0 and later
352 * Non-Carbon CFM: available as macro/inline
353 }
354 procedure DisposeInitPickMethodUPP( userUPP: InitPickMethodUPP ); external name '_DisposeInitPickMethodUPP';
355 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
356
357 {
358 * DisposeRecordColorsUPP()
359 *
360 * Availability:
361 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
362 * CarbonLib: in CarbonLib 1.0 and later
363 * Non-Carbon CFM: available as macro/inline
364 }
365 procedure DisposeRecordColorsUPP( userUPP: RecordColorsUPP ); external name '_DisposeRecordColorsUPP';
366 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
367
368 {
369 * DisposeCalcColorTableUPP()
370 *
371 * Availability:
372 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
373 * CarbonLib: in CarbonLib 1.0 and later
374 * Non-Carbon CFM: available as macro/inline
375 }
376 procedure DisposeCalcColorTableUPP( userUPP: CalcColorTableUPP ); external name '_DisposeCalcColorTableUPP';
377 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
378
379 {
380 * DisposeDisposeColorPickMethodUPP()
381 *
382 * Availability:
383 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
384 * CarbonLib: in CarbonLib 1.0 and later
385 * Non-Carbon CFM: available as macro/inline
386 }
387 procedure DisposeDisposeColorPickMethodUPP( userUPP: DisposeColorPickMethodUPP ); external name '_DisposeDisposeColorPickMethodUPP';
388 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
389
390 {
391 * InvokeInitPickMethodUPP()
392 *
393 * Availability:
394 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
395 * CarbonLib: in CarbonLib 1.0 and later
396 * Non-Carbon CFM: available as macro/inline
397 }
InvokeInitPickMethodUPPnull398 function InvokeInitPickMethodUPP( colorsRequested: SInt16; var dataRef: UInt32; var colorBankType: SInt16; userUPP: InitPickMethodUPP ): OSErr; external name '_InvokeInitPickMethodUPP';
399 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
400
401 {
402 * InvokeRecordColorsUPP()
403 *
404 * Availability:
405 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
406 * CarbonLib: in CarbonLib 1.0 and later
407 * Non-Carbon CFM: available as macro/inline
408 }
InvokeRecordColorsUPPnull409 function InvokeRecordColorsUPP( dataRef: UInt32; var colorsArray: RGBColor; colorCount: SInt32; var uniqueColors: SInt32; userUPP: RecordColorsUPP ): OSErr; external name '_InvokeRecordColorsUPP';
410 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
411
412 {
413 * InvokeCalcColorTableUPP()
414 *
415 * Availability:
416 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
417 * CarbonLib: in CarbonLib 1.0 and later
418 * Non-Carbon CFM: available as macro/inline
419 }
InvokeCalcColorTableUPPnull420 function InvokeCalcColorTableUPP( dataRef: UInt32; colorsRequested: SInt16; colorBankPtr: UnivPtr; resultPtr: CSpecArray; userUPP: CalcColorTableUPP ): OSErr; external name '_InvokeCalcColorTableUPP';
421 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
422
423 {
424 * InvokeDisposeColorPickMethodUPP()
425 *
426 * Availability:
427 * Mac OS X: in version 10.0 and later in ApplicationServices.framework
428 * CarbonLib: in CarbonLib 1.0 and later
429 * Non-Carbon CFM: available as macro/inline
430 }
InvokeDisposeColorPickMethodUPPnull431 function InvokeDisposeColorPickMethodUPP( dataRef: UInt32; userUPP: DisposeColorPickMethodUPP ): OSErr; external name '_InvokeDisposeColorPickMethodUPP';
432 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
433
434 {$ifc not TARGET_CPU_64}
435 {
436 * GetPictInfo() *** DEPRECATED ***
437 *
438 * Availability:
439 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
440 * CarbonLib: in CarbonLib 1.0 and later
441 * Non-Carbon CFM: in InterfaceLib 7.1 and later
442 }
GetPictInfonull443 function GetPictInfo( thePictHandle: PicHandle; var thePictInfo: PictInfo; verb: SInt16; colorsRequested: SInt16; colorPickMethod: SInt16; version: SInt16 ): OSErr; external name '_GetPictInfo';
444 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
445
446
447 {
448 * GetPixMapInfo() *** DEPRECATED ***
449 *
450 * Availability:
451 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
452 * CarbonLib: in CarbonLib 1.0 and later
453 * Non-Carbon CFM: in InterfaceLib 7.1 and later
454 }
GetPixMapInfonull455 function GetPixMapInfo( thePixMapHandle: PixMapHandle; var thePictInfo: PictInfo; verb: SInt16; colorsRequested: SInt16; colorPickMethod: SInt16; version: SInt16 ): OSErr; external name '_GetPixMapInfo';
456 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
457
458
459 {
460 * NewPictInfo() *** DEPRECATED ***
461 *
462 * Availability:
463 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
464 * CarbonLib: in CarbonLib 1.0 and later
465 * Non-Carbon CFM: in InterfaceLib 7.1 and later
466 }
NewPictInfonull467 function NewPictInfo( var thePictInfoID: PictInfoID; verb: SInt16; colorsRequested: SInt16; colorPickMethod: SInt16; version: SInt16 ): OSErr; external name '_NewPictInfo';
468 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
469
470
471 {
472 * RecordPictInfo() *** DEPRECATED ***
473 *
474 * Availability:
475 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
476 * CarbonLib: in CarbonLib 1.0 and later
477 * Non-Carbon CFM: in InterfaceLib 7.1 and later
478 }
RecordPictInfonull479 function RecordPictInfo( thePictInfoID: PictInfoID; thePictHandle: PicHandle ): OSErr; external name '_RecordPictInfo';
480 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
481
482
483 {
484 * RecordPixMapInfo() *** DEPRECATED ***
485 *
486 * Availability:
487 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
488 * CarbonLib: in CarbonLib 1.0 and later
489 * Non-Carbon CFM: in InterfaceLib 7.1 and later
490 }
RecordPixMapInfonull491 function RecordPixMapInfo( thePictInfoID: PictInfoID; thePixMapHandle: PixMapHandle ): OSErr; external name '_RecordPixMapInfo';
492 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
493
494
495 {
496 * RetrievePictInfo() *** DEPRECATED ***
497 *
498 * Availability:
499 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
500 * CarbonLib: in CarbonLib 1.0 and later
501 * Non-Carbon CFM: in InterfaceLib 7.1 and later
502 }
RetrievePictInfonull503 function RetrievePictInfo( thePictInfoID: PictInfoID; var thePictInfo: PictInfo; colorsRequested: SInt16 ): OSErr; external name '_RetrievePictInfo';
504 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
505
506
507 {
508 * DisposePictInfo() *** DEPRECATED ***
509 *
510 * Availability:
511 * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
512 * CarbonLib: in CarbonLib 1.0 and later
513 * Non-Carbon CFM: in InterfaceLib 7.1 and later
514 }
DisposePictInfonull515 function DisposePictInfo( thePictInfoID: PictInfoID ): OSErr; external name '_DisposePictInfo';
516 (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
517
518
519 {$endc} {not TARGET_CPU_64}
520
521 {$endc} {TARGET_OS_MAC}
522 {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
523
524 end.
525 {$endc} {not MACOSALLINCLUDE}
526