xmgetcolors(3) [redhat man page]
XmGetColors(library call) XmGetColors(library call) NAME
XmGetColors -- A function that generates foreground, select, and shadow colors SYNOPSIS
#include <Xm/Xm.h> void XmGetColors( Screen * screen, Colormap colormap, Pixel background, Pixel * foreground, Pixel * top_shadow, Pixel * bottom_shadow, Pixel * select); DESCRIPTION
XmGetColors takes a screen, a colormap, and a background pixel, and returns pixel values for foreground, select, and shadow colors. screen Specifies the screen for which these colors should be allocated. colormap Specifies the colormap from which these colors should be allocated. background Specifies the background on which the colors should be based. foreground Specifies a pointer to the returned foreground pixel value. If this argument is NULL, no value is allocated or returned for this color. top_shadow Specifies a pointer to the returned top shadow pixel value. If this argument is NULL, no value is allocated or returned for this color. bottom_shadow Specifies a pointer to the returned bottom shadow pixel value. If this argument is NULL, no value is allocated or returned for this color. select Specifies a pointer to the returned select pixel value. If this argument is NULL, no value is allocated or returned for this color. RELATED
XmChangeColor(3), XmGetColorCalculation(3), and XmSetColorCalculation(3). XmGetColors(library call)
Check Out this Related Man Page
XmSetColorCalculation(3X) XmSetColorCalculation(3X) NAME
XmSetColorCalculation - A function to set the procedure used for default color calculation SYNOPSIS
#include <Xm/Xm.h> XmColorProc XmSetColorCalculation (color_proc) XmColorProc color_proc; DESCRIPTION
XmSetColorCalculation sets the procedure to calculate default colors. This procedure is used to calculate the foreground, top shadow, bot- tom shadow, and select colors on the basis of a given background color. If called with an argument of NULL, it restores the default proce- dure used to calculate colors. Specifies the procedure to use for color calculation. Following is a description of the XmColorProc type used by XmSetColorCalculation: void (*color_proc) (background_color, foreground_color, select_color, top_shadow_color, bottom_shadow_color) XColor *background_color; XColor *foreground_color; XColor *select_color; XColor *top_shadow_color; XColor *bottom_shadow_color; Specifies the procedure used to calculate default colors. The procedure is passed a pointer to an XColor structure representing the back- ground color. The pixel, red, green, and blue members of this structure are filled in with values that are valid for the current colormap. The procedure is passed pointers to XColor structures representing the foreground, select, top shadow, and bottom shadow colors to be cal- culated. The procedure calculates and fills in the red, green, and blue members of these structures. The procedure should not allocate color cells for any of these colors. Specifies the background color. Specifies the foreground color to be calculated. Specifies the select color to be calculated. Specifies the top shadow color to be calculated. Specifies the bottom shadow color to be calculated. RETURN VALUE
Returns the color calculation procedure that was used at the time this routine was called. SEE ALSO
XmChangeColor(3X), XmGetColors(3X), XmGetColorCalculation(3X) XmSetColorCalculation(3X)