![]() |
PickerSetProfileProcPtr |
||||
Header: | ColorPickerComponents.h | Carbon status: | Supported | |
Defines a pointer to a color picker-defined profile setter callback function. Your profile setter function sets the destination profile used by your color picker.
typedef ComponentResult(* PickerSetProfileProcPtr) ( SInt32 storage, CMProfileHandle profile );
You would declare your function like this if you were to name it MyPickerSetProfileCallback:
ComponentResult MyPickerSetProfileCallback ( SInt32 storage, CMProfileHandle profile );
A handle to your color pickers global data.
A handle to a ColorSync 1.0 profile (that is, a CMProfile structure), to set your pickers destination profile to.
Your function should return noErr if successful, or an appropriate result code otherwise.
If you create a color picker, it must respond to the kSetProfile request code, by calling a color picker-defined subroutine (MyPickerSetProfileCallback, 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)