Carbon


GrafVars

Header: Quickdraw.h

struct GrafVars {
    RGBColor rgbOpColor; 
    RGBColor rgbHiliteColor; 
    Handle pmFgColor; 
    SInt16 pmFgIndex; 
    Handle pmBkColor; 
    SInt16 pmBkIndex; 
    SInt16 pmFlags;
};
typedef GrafVars GVarPtr;

Field descriptions

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.

The GrafVars structure contains color information in addition to that in the CGrafPort structure, of which it is logically a part; the information is used by QuickDraw and the Palette Manager.


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