Carbon


SetEntryColor

Header: Palettes.h Carbon status: Supported

Changes the color of a palette entry.

void SetEntryColor (
    PaletteHandle dstPalette, 
    SInt16 dstEntry, 
    const RGBColor *srcRGB
);
Parameter descriptions
dstPalette

The palette whose entry color is to be changed.

dstEntry

The palette entry to be changed.

srcRGB

A pointer to the new RGB color value.

DISCUSSION

SetEntryColor marks the entry as having changed, but it does not change the color environment. That change occurs upon the next call to ActivatePalette. SetEntryColor marks modified entries such that the palette is updated, even though no update is required by a change in the color environment.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


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