Status XAllocNamedColor(display, colormap, \
color_name, screen_def_return, exact_def_return)
Display *display;
Colormap colormap;
char *color_name;
XColor *screen_def_return, *exact_def_return;
display | Specifies the connection to the X server. |
colormap | Specifies the colormap. |
color_name | Specifies the color name string (for example, red) whose color definition structure you want returned. |
screen_def_return | Returns the closest RGB values provided by the hardware. |
exact_def_return | Returns the exact RGB values. |
XAllocNamedColor() can generate a BadColor error.
BadColor | A value for a Colormap argument does not name a defined Colormap. |