*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: XmSetColorCalculation | Section: 3 | Source: Digital UNIX | File: XmSetColorCalculation.3X.gz
XmSetColorCalculation(3X) XmSetColorCalculation(3X) NAME XmSetColorCalculation - A function to set the procedure used for de- fault 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, bottom shadow, and select colors on the basis of a given background color. If called with an argument of NULL, it restores the default procedure used to calculate colors. Specifies the procedure to use for color calcula- tion. Following is a description of the XmColorProc type used by XmSetColor- Calculation: 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 background 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 calcu- lated. 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. Speci- fies 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)

Navigation Options