SetMonoCursorColor

Sets the foreground and background color for the monochrome hardware cursor.

Declaration

void NAPI GA_cursorFuncs::SetMonoCursorColor(
GA_palette *foreground,
GA_palette *background)

Prototype In

snap/graphics.h

Parameters

foreground | Foreground color for the cursor
background | Background color for the cursor

Description

This function sets both the foreground and background colors for the hardware cursor, which as passed in as GA_palette structures. In 8bpp display modes the color index of the cursor color is passed in the Red member of GA_palette structure. The exception to this is for 8bpp display modes that have the gaHave8bppRGBCursor flag set in the GA_modeInfo Attributes field. When this is set, the full RGB color of the cursor is passed in the red, green and blue members of the GA_palette structue.

For 15-bpp and above RGB modes, the full RGB color of the cursor is always passed in the red, green and blue members of the GA_palette structure.

See Also

SetMonoCursor, SetMonoCursorColor, SetColorCursor, SetCursorPos, ShowCursor, BeginAccess, EndAccess, SetColorCursor256, SetColorCursorRGBA, IsHardwareCursor, SetColorCursorRGB

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com