VGetReservedColors


 
Name
  VGetReservedColors - returns the 3DVIEWNIX reserved colors.
 
Synopsis
  VGetReservedColors(colors)
  ViewnixColor colors[NUM_OF_RESERVED_COLORCELLS];   /*RETURN*/
 
Description
  VGetReservedColors returns the 3DVIEWNIX reserved colors.
 
Structures
  typedef struct {
        unsigned long pixel;            /*pixel value*/
        unsigned short  red,green,blue; /*RGB values*/
  } ViewnixColor;
 
Return Value
  0 - work successfully.
  2 - read error.
  4 - file open error.
 
Parameters
  colors - return a pointer to ViewnixColor structure. The reserved colors are
        defined as :
                        0 - border and text.
                        1 - dialog/button/title window.
                        2 - special color for 3d effect.
                        3 - special color for 3d effect.
                        4 - special color for 3d effect.
                        5 - dialog message color.
                        6 - text on image without overlay.
                        7 - text on image with overlay.
                        8 - image window color when overlay is on.
                        9 - image window color when overlay is off.
                        10- highlight color for menu/panel.
                        11- special color used in HELP.
 
Side Effects
  None.
 
Entry Conditions
  If colors is NULL, or VCreateColormap is not called earlier,
VGetReservedColors prints an error message to the standard error stream,
produces a core dump file and exits from the current process.
 
Related Functions
VCreateColormap, VGetFreeColorcells, VGetColormap, VGetWindowInformation, VPutColormap, VSaveColormap, VLoadColormap, VGetColorcellStatus.