![]() |
RestoreFore |
||||
Header: | Palettes.h | Carbon status: | Supported | |
Sets the current foreground color to the color you supply.
void RestoreFore ( const ColorSpec *c );
A pointer to the ColorSpec structure containing the RGB color to be set as the foreground color. If you specify 0 in the value field of the ColorSpec structure, the RestoreFore function stores the RGB value in the rgbFgColor field of the current CGrafPort structure. If you specify 1 in the value field of the ColorSpec structure, the RestoreFore function stores the RGB value in the pmFgColor field of the GrafVars structure.
The RestoreFore function is available only with system software versions 6.0.5 and later and with the 32-Bit QuickDraw system extension.
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)