Important: The information in this document is obsolete and should not be used for new development.
GrafVars
TheGrafVars
record contains color information in addition to that in theCGrafPort
record, of which it is logically a part; the information is used by Color QuickDraw and the Palette Manager.
TYPE GrafVars = RECORD rgbOpColor: RGBColor; {color for addPin, subPin, and } { blend} rgbHiliteColor: RGBColor; {color for highlighting} pmFgColor: Handle; {palette handle for foreground } { color} pmFgIndex: Integer; {index value for foreground} pmBkColor: Handle; {palette handle for background } { color} pmBkIndex: Integer; {index value for background} pmFlags: Integer; {flags for Palette Manager} END;See the chapter "Palette Manager" in Advanced Color Imaging on the Mac OS for further information on how the Palette Manager handles colors in a color graphics port.
Field Description
rgbOpColor
- The color for the arithmetic transfer operations
addPin
,subPin
, andblend
.
rgbHiliteColor
The highlight color for this graphics port.pmFgColor
- A handle to the palette that contains the foreground color.
pmFgIndex
- The index value into the palette for the foreground color.
pmBkColor
- A handle to the palette that contains the background color.
pmBkIndex
- The index value into the palette for the background color
.
pmFlags
- Flags private to the Palette Manager.