Carbon


SaveFore

Header: Palettes.h Carbon status: Supported

Saves the current foreground color.

void SaveFore (
    ColorSpec *c
);
Parameter descriptions
c

A pointer to the ColorSpec structure to hold the current foreground color. A value of 0 in the value field of the ColorSpec structure specifies retrieving the RGB color from the rgbFgColor field of the CGrafPort structure; a value of 1 in the value field specifies retrieving the palette entry from the pmFgColor field of the GrafVars structure.On return, ColorSpec structure holds the current foreground color. You can save either QuickDraw’s foreground color from the CGrafPort structure or the Palette Manager’s foreground color from the GrafVars structure.

VERSION NOTES

The SaveFore function is available only with system software versions 6.0.5 and later and with the 32-Bit QuickDraw system extension.

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)