![]() |
| Home |
|
|
struct PegColorThe PegColor structure is used to pass color information to the PegScreen drawing functions. PegColor contains foreground, background, and drawing flag information.
typedef DWORD COLORVAL;
extern COLORVAL TRANSPARENCY;
extern COLORVAL BLACK;
extern COLORVAL RED;
extern COLORVAL GREEN;
extern COLORVAL BROWN;
extern COLORVAL BLUE;
extern COLORVAL MAGENTA;
extern COLORVAL CYAN;
extern COLORVAL LIGHTGRAY;
extern COLORVAL DARKGRAY;
extern COLORVAL LIGHTRED;
extern COLORVAL LIGHTGREEN;
extern COLORVAL YELLOW;
extern COLORVAL LIGHTBLUE;
extern COLORVAL LIGHTMAGENTA;
extern COLORVAL LIGHTCYAN;
extern COLORVAL WHITE;
struct PegColor
{
PegColor(void);
PegColor(COLORVAL fore, COLORVAL back = PCLR_DIALOG, UCHAR Flags CF_NONE);
void Set(COLORVAL fore, COLORVAL back = BLACK, UCHAR Flags = CF_NONE);
COLORVAL uForeground;
COLORVAL uBackground;
UCHAR uFlags;
};
The color flags are: CF_NONEThis flag is used when the default operation is desired. CF_FILLFill rectangles, and polygons, and text. For text functions, CF_FILL will cause the text background area to be filled with the background color, while CF_NONE will cause only the text foreground to be drawn. CF_DASHEDUsed to draw dashed lines or rectangle outlines. CF_ALPHAAlpha-blending: causes an object to appear semi-transparent, or to float above any object draw below. The provided screen drivers do not support alpha blending operations.
|