Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 4 - Color QuickDraw / Color QuickDraw Reference
Data Structures /


GrafVars

The GrafVars record contains color information in addition to that in the CGrafPort 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;
Field Description
rgbOpColor
The color for the arithmetic transfer operations addPin, subPin, and blend.
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.
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.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996