Status XLookupColor(display, colormap, color_name, exact_def_return, screen_def_return)
Display *display;
Colormap colormap;
char *color_name;
XColor *exact_def_return, *screen_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. |
exact_def_return | Returns the exact RGB values. |
screen_def_return | Returns the closest RGB values provided by the hardware. |
XLookupColor() can generate a BadColor error.
BadColor | A value for a Colormap argument does not name a defined Colormap. |