43 #if PRAGMA_STRUCT_ALIGN
44 #pragma options align = mac68k
45 #elif PRAGMA_STRUCT_PACKPUSH
47 #elif PRAGMA_STRUCT_PACK
54 returnColorTable = 0x0001,
55 returnPalette = 0x0002,
56 recordComments = 0x0004,
57 recordFontInfo = 0x0008,
58 suppressBlackAndWhite = 0x0010
73 ColorBankIsExactAnd555 = 0,
77 typedef long PictInfoID;
133 typedef CALLBACK_API(OSErr, InitPickMethodProcPtr)(SInt16 colorsRequested,
135 SInt16 *colorBankType);
136 typedef CALLBACK_API(OSErr, RecordColorsProcPtr)(UInt32 dataRef,
140 typedef CALLBACK_API(OSErr, CalcColorTableProcPtr)(UInt32 dataRef,
141 SInt16 colorsRequested,
143 CSpecArray resultPtr);
144 typedef CALLBACK_API(OSErr, DisposeColorPickMethodProcPtr)(UInt32 dataRef);
148 typedef STACK_UPP_TYPE(DisposeColorPickMethodProcPtr) DisposeColorPickMethodUPP;
159 #if !OPAQUE_UPP_TYPES
162 uppInitPickMethodProcInfo = 0x00000FA0
165 inline InitPickMethodUPP
169 uppInitPickMethodProcInfo,
170 GetCurrentArchitecture());
173 #define NewInitPickMethodUPP(userRoutine) \
174 (InitPickMethodUPP) \
175 NewRoutineDescriptor((ProcPtr)(userRoutine), uppInitPickMethodProcInfo, \
176 GetCurrentArchitecture())
190 #if !OPAQUE_UPP_TYPES
193 uppRecordColorsProcInfo = 0x00003FE0
199 uppRecordColorsProcInfo,
200 GetCurrentArchitecture());
203 #define NewRecordColorsUPP(userRoutine) \
205 NewRoutineDescriptor((ProcPtr)(userRoutine), uppRecordColorsProcInfo, \
206 GetCurrentArchitecture())
220 #if !OPAQUE_UPP_TYPES
223 uppCalcColorTableProcInfo = 0x00003EE0
226 inline CalcColorTableUPP
230 uppCalcColorTableProcInfo,
231 GetCurrentArchitecture());
234 #define NewCalcColorTableUPP(userRoutine) \
235 (CalcColorTableUPP) \
236 NewRoutineDescriptor((ProcPtr)(userRoutine), uppCalcColorTableProcInfo, \
237 GetCurrentArchitecture())
249 DisposeColorPickMethodUPP
251 #if !OPAQUE_UPP_TYPES
254 uppDisposeColorPickMethodProcInfo = 0x000000E0
257 inline DisposeColorPickMethodUPP
261 (ProcPtr)(userRoutine), uppDisposeColorPickMethodProcInfo,
262 GetCurrentArchitecture());
265 #define NewDisposeColorPickMethodUPP(userRoutine) \
266 (DisposeColorPickMethodUPP) NewRoutineDescriptor( \
267 (ProcPtr)(userRoutine), uppDisposeColorPickMethodProcInfo, \
268 GetCurrentArchitecture())
282 #if !OPAQUE_UPP_TYPES
289 #define DisposeInitPickMethodUPP(userUPP) DisposeRoutineDescriptor(userUPP)
303 #if !OPAQUE_UPP_TYPES
310 #define DisposeRecordColorsUPP(userUPP) DisposeRoutineDescriptor(userUPP)
324 #if !OPAQUE_UPP_TYPES
331 #define DisposeCalcColorTableUPP(userUPP) DisposeRoutineDescriptor(userUPP)
345 #if !OPAQUE_UPP_TYPES
353 #define DisposeDisposeColorPickMethodUPP(userUPP) \
354 DisposeRoutineDescriptor(userUPP)
368 SInt16 *colorBankType, InitPickMethodUPP userUPP);
369 #if !OPAQUE_UPP_TYPES
372 SInt16 *colorBankType,
373 InitPickMethodUPP userUPP)
375 return (OSErr)CALL_THREE_PARAMETER_UPP(userUPP, uppInitPickMethodProcInfo,
376 colorsRequested, dataRef,
380 #define InvokeInitPickMethodUPP(colorsRequested, dataRef, colorBankType, \
383 CALL_THREE_PARAMETER_UPP((userUPP), uppInitPickMethodProcInfo, \
384 (colorsRequested), (dataRef), (colorBankType))
398 SInt32 *uniqueColors, RecordColorsUPP userUPP);
399 #if !OPAQUE_UPP_TYPES
402 SInt32 colorCount, SInt32 *uniqueColors,
403 RecordColorsUPP userUPP)
405 return (OSErr)CALL_FOUR_PARAMETER_UPP(userUPP, uppRecordColorsProcInfo,
410 #define InvokeRecordColorsUPP(dataRef, colorsArray, colorCount, uniqueColors, \
413 CALL_FOUR_PARAMETER_UPP((userUPP), uppRecordColorsProcInfo, (dataRef), \
414 (colorsArray), (colorCount), (uniqueColors))
428 void *colorBankPtr, CSpecArray resultPtr,
429 CalcColorTableUPP userUPP);
430 #if !OPAQUE_UPP_TYPES
433 void *colorBankPtr, CSpecArray resultPtr,
434 CalcColorTableUPP userUPP)
436 return (OSErr)CALL_FOUR_PARAMETER_UPP(userUPP, uppCalcColorTableProcInfo,
437 dataRef, colorsRequested, colorBankPtr,
441 #define InvokeCalcColorTableUPP(dataRef, colorsRequested, colorBankPtr, \
442 resultPtr, userUPP) \
444 CALL_FOUR_PARAMETER_UPP((userUPP), uppCalcColorTableProcInfo, (dataRef), \
445 (colorsRequested), (colorBankPtr), (resultPtr))
459 DisposeColorPickMethodUPP userUPP);
460 #if !OPAQUE_UPP_TYPES
464 DisposeColorPickMethodUPP userUPP)
466 return (OSErr)CALL_ONE_PARAMETER_UPP(
467 userUPP, uppDisposeColorPickMethodProcInfo, dataRef);
470 #define InvokeDisposeColorPickMethodUPP(dataRef, userUPP) \
471 (OSErr) CALL_ONE_PARAMETER_UPP((userUPP), uppDisposeColorPickMethodProcInfo, \
476 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
478 #define NewInitPickMethodProc(userRoutine) NewInitPickMethodUPP(userRoutine)
479 #define NewRecordColorsProc(userRoutine) NewRecordColorsUPP(userRoutine)
480 #define NewCalcColorTableProc(userRoutine) NewCalcColorTableUPP(userRoutine)
481 #define NewDisposeColorPickMethodProc(userRoutine) \
482 NewDisposeColorPickMethodUPP(userRoutine)
483 #define CallInitPickMethodProc(userRoutine, colorsRequested, dataRef, \
485 InvokeInitPickMethodUPP(colorsRequested, dataRef, colorBankType, userRoutine)
486 #define CallRecordColorsProc(userRoutine, dataRef, colorsArray, colorCount, \
488 InvokeRecordColorsUPP(dataRef, colorsArray, colorCount, uniqueColors, \
490 #define CallCalcColorTableProc(userRoutine, dataRef, colorsRequested, \
491 colorBankPtr, resultPtr) \
492 InvokeCalcColorTableUPP(dataRef, colorsRequested, colorBankPtr, resultPtr, \
494 #define CallDisposeColorPickMethodProc(userRoutine, dataRef) \
495 InvokeDisposeColorPickMethodUPP(dataRef, userRoutine)
508 short colorsRequested,
short colorPickMethod,
short version);
520 short colorsRequested,
short colorPickMethod,
short version);
531 NewPictInfo(PictInfoID *thePictInfoID,
short verb,
short colorsRequested,
532 short colorPickMethod,
short version);
566 short colorsRequested);
580 #define DisposPictInfo(thePictInfoID) DisposePictInfo(thePictInfoID)
583 #if PRAGMA_STRUCT_ALIGN
584 #pragma options align = reset
585 #elif PRAGMA_STRUCT_PACKPUSH
587 #elif PRAGMA_STRUCT_PACK
591 #ifdef PRAGMA_IMPORT_OFF
Basic Macintosh data types.
long Fixed
Definition: MacTypes.h:153
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
#define STACK_UPP_TYPE(name)
Definition: MixedMode.h:734
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
Palette Manager Interfaces.
OSErr RecordPictInfo(PictInfoID thePictInfoID, PicHandle thePictHandle)
OSErr InvokeCalcColorTableUPP(UInt32 dataRef, SInt16 colorsRequested, void *colorBankPtr, CSpecArray resultPtr, CalcColorTableUPP userUPP)
OSErr RecordPixMapInfo(PictInfoID thePictInfoID, PixMapHandle thePixMapHandle)
#define NewRecordColorsUPP(userRoutine)
Definition: PictUtils.h:203
#define NewCalcColorTableUPP(userRoutine)
Definition: PictUtils.h:234
void DisposeRecordColorsUPP(RecordColorsUPP userUPP)
#define NewDisposeColorPickMethodUPP(userRoutine)
Definition: PictUtils.h:265
OSErr InvokeDisposeColorPickMethodUPP(UInt32 dataRef, DisposeColorPickMethodUPP userUPP)
OSErr GetPictInfo(PicHandle thePictHandle, PictInfo *thePictInfo, short verb, short colorsRequested, short colorPickMethod, short version)
OSErr NewPictInfo(PictInfoID *thePictInfoID, short verb, short colorsRequested, short colorPickMethod, short version)
void DisposeDisposeColorPickMethodUPP(DisposeColorPickMethodUPP userUPP)
@ popularMethod
Definition: PictUtils.h:65
@ systemMethod
Definition: PictUtils.h:64
@ medianMethod
Definition: PictUtils.h:66
OSErr DisposePictInfo(PictInfoID thePictInfoID)
OSErr GetPixMapInfo(PixMapHandle thePixMapHandle, PictInfo *thePictInfo, short verb, short colorsRequested, short colorPickMethod, short version)
@ ColorBankIsCustom
Definition: PictUtils.h:72
void DisposeInitPickMethodUPP(InitPickMethodUPP userUPP)
#define NewInitPickMethodUPP(userRoutine)
Definition: PictUtils.h:173
OSErr RetrievePictInfo(PictInfoID thePictInfoID, PictInfo *thePictInfo, short colorsRequested)
OSErr InvokeRecordColorsUPP(UInt32 dataRef, RGBColor *colorsArray, SInt32 colorCount, SInt32 *uniqueColors, RecordColorsUPP userUPP)
OSErr InvokeInitPickMethodUPP(SInt16 colorsRequested, UInt32 *dataRef, SInt16 *colorBankType, InitPickMethodUPP userUPP)
void DisposeCalcColorTableUPP(CalcColorTableUPP userUPP)
Definition: Quickdraw.h:1968
Definition: PictUtils.h:87
short sysFontID
Definition: PictUtils.h:89
short style
Definition: PictUtils.h:92
long nameOffset
Definition: PictUtils.h:94
Definition: Palettes.h:82
Definition: PictUtils.h:100
PaletteHandle thePalette
Definition: PictUtils.h:104
short depth
Definition: PictUtils.h:108
FontSpecHandle fontHandle
Definition: PictUtils.h:125
long pixMapCount
Definition: PictUtils.h:120
long polyCount
Definition: PictUtils.h:117
long rectCount
Definition: PictUtils.h:113
long uniqueFonts
Definition: PictUtils.h:124
Fixed hRes
Definition: PictUtils.h:106
long uniqueComments
Definition: PictUtils.h:122
long ovalCount
Definition: PictUtils.h:115
long commentCount
Definition: PictUtils.h:121
CommentSpecHandle commentHandle
Definition: PictUtils.h:123
long bitMapCount
Definition: PictUtils.h:119
long regionCount
Definition: PictUtils.h:118
CTabHandle theColorTable
Definition: PictUtils.h:105
long rRectCount
Definition: PictUtils.h:114
long reserved1
Definition: PictUtils.h:127
Handle fontNamesHandle
Definition: PictUtils.h:126
long textCount
Definition: PictUtils.h:111
Rect sourceRect
Definition: PictUtils.h:109
Fixed vRes
Definition: PictUtils.h:107
long arcCount
Definition: PictUtils.h:116
long lineCount
Definition: PictUtils.h:112
long uniqueColors
Definition: PictUtils.h:102
Definition: Quickdraw.h:326
Definition: Quickdraw.h:2064
Definition: Quickdraw.h:1710
Definition: MacTypes.h:527