Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Related Pages  

Nano-X color/palette management API.
[Nano-X public API]

Functions for querying and modifying the palette on palette-based Nano-X systems. More...

Functions

GR_COLOR GrGetSysColor (int index)
 Returns the colour at the specified index into the server's color look up table.

void GrGetSystemPalette (GR_PALETTE *pal)
 Retrieves the system palette and places it in the specified palette structure.

void GrSetSystemPalette (GR_COUNT first, GR_PALETTE *pal)
 Sets the system palette to the values stored in the specified palette structure.

void GrFindColor (GR_COLOR c, GR_PIXELVAL *retpixel)
 Calculates the pixel value to use to display the specified colour value.


Detailed Description

Functions for querying and modifying the palette on palette-based Nano-X systems.


Function Documentation

void GrFindColor GR_COLOR  c,
GR_PIXELVAL *  retpixel
 

Calculates the pixel value to use to display the specified colour value.

The colour value is specified as a GR_COLOR, which is a 32 bit truecolour value stored as RGBX. The pixel value size depends on the architecture.

Parameters:
c the colour value to find
retpixel pointer to the returned pixel value

GR_COLOR GrGetSysColor int  index  ) 
 

Returns the colour at the specified index into the server's color look up table.

The colours in the table are those with names like "GR_COLOR_DESKTOP", "GR_COLOR_ACTIVECAPTION", "GR_COLOR_APPWINDOW", etc. as listed in nano-X.h

Parameters:
index An index into the server's colour look up table.
Returns:
The color found at the specified index.

void GrGetSystemPalette GR_PALETTE pal  ) 
 

Retrieves the system palette and places it in the specified palette structure.

Parameters:
pal pointer to a palette structure to fill in with the system palette

void GrSetSystemPalette GR_COUNT  first,
GR_PALETTE pal
 

Sets the system palette to the values stored in the specified palette structure.

The values before the specified first value are not set.

Parameters:
first the first palette value to set
pal pointer to a palette structure containing the new values


Generated on Sun May 18 21:03:06 2003 for Microwindows Nano-X API by doxygen1.3