File: baseclr.h

package info (click to toggle)
mpich 1.1.0-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 22,116 kB
  • ctags: 27,349
  • sloc: ansic: 193,435; sh: 11,172; fortran: 6,545; makefile: 5,801; cpp: 5,020; tcl: 3,548; asm: 3,536; csh: 1,079; java: 614; perl: 183; awk: 168; sed: 70; f90: 62
file content (49 lines) | stat: -rw-r--r-- 1,347 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef BLACK

#define BLACK       1
#define RED         2
#define YELLOW      3
#define GREEN       4
#define CYAN        5
#define BLUE        6
#define MAGENTA     7
#define WHITE       0
/* and a set of 8 more intermediate colors; names from the
    /usr/lib/X11/rgb.txt database */
#define AQUAMARINE  8
#define FORESTGREEN 9
#define ORANGE     10
#define VIOLET     11
#define BROWN      12
#define PINK       13
#define CORAL      14
#define GRAY       15

/* Had a "ifndef lint around this, but that is wrong for using gcc with
   string checking and -Dlint to remove the "vcid" not used */
static char *(colornames[]) = { "white", "black", "red", "yellow", "green", 
			      "cyan", "blue", "magenta", "aquamarine",
			      "forestgreen", "orange", "marroon", "brown",
			      "pink", "coral", "gray" };

/*I "xtools/baseclr.h" I*/

/*
      XBPixFromInteger - Looks up an entry in the win->cmapping

    Input Parameters:
     color - an integer color as listed in xtools/baseclr.h

    Synopsis:
    PixVal XBPixFromInteger(win,color)
    XBWindow *win;
    int      color; 
 */
#define XBPixFromInteger(win,color) (win)->cmapping[color]

/* Prototypes */
Colormap XBCreateColormap ANSI_ARGS(( Display *, int, Visual * ));
int XBHlsToRgb ANSI_ARGS(( int, int, int, 
			  unsigned char *, unsigned char *, unsigned char * ));

#endif