![]() |
PickerGetProfileProcPtr |
||||
Header: | ColorPickerComponents.h | Carbon status: | Supported | |
Defines a pointer to a color picker-defined profile getter callback function. Your profile getter function returns the destination profile used by your color picker.
typedef ComponentResult(* PickerGetProfileProcPtr) ( SInt32 storage );
You would declare your function like this if you were to name it MyPickerGetProfileCallback:
ComponentResult MyPickerGetProfileCallback ( SInt32 storage );
A handle to your color pickers global data.
CMProfileHandle, a handle to the destination ColorSync 1.0 profile used by your color picker.
If you create a color picker, it must respond to the kGetProfile request code, by calling a color picker-defined subroutine (MyPickerGetProfileCallback, for example).
When you create a color picker, the Color Picker Manager uses the Component Manager to request services from your color picker. The code for your color picker should be contained in a resource. The Component Manager expects that the entry point into this resource is a color picker-defined dispatch function. For information on how to create this dispatch function, see the Component Manager callback, ComponentRoutineProcPtr.
This version of the Color Picker Manager uses ColorSync 1.0 profiles only. The ColorSync 1.0 profile is a handle-based profile. The profile format is defined by Apple Computer. You cannot use version 2.0 profiles, which are identified by profile references, with this version of the Color Picker Manager. ColorSync 1.0 profiles typically reside in the ColorSyncTM Profiles folder (within the Preferences folder of the System Folder). They may also be embedded with the images to which they pertain in graphics files.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)