Carbon


ItemHitData

Header: ColorPickerComponents.h

struct ItemHitData {
    SInt16 itemHit; 
    ItemModifier iMod; 
    PickerAction action; 
    ColorChangedUPP colorProc; 
    SInt32 colorProcData; 
    Point where;
};

Field descriptions

itemHit

The item receiving the event.

iMod

The action involving the item. These actions are represented by the “Item Hit Modifiers” constants.

action

The nature of the event. In this field, your color picker returns a value, defined in the “Picker Action Constants” enumeration, describing the event.

colorProc

A pointer to an application-defined function to handle color changes. Your ColorChangedProcPtr should support the updating of colors in a document as the user selects them. Your color picker should call this function.

colorProcData

A long integer that your color picker passes to the application-defined function supplied in the colorProc field.

where

Location, in coordinates local to the dialog box, of the mouse.

A color picker responds to the kItemHit request code by handling the event described in an ItemHitData structure. Your color picker also uses this structure to return information about any event handling it performs.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)