XmSetColorCalculation man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

XmSetColorCalculation(library call)	   XmSetColorCalculation(library call)

NAME
       XmSetColorCalculation  —	 A  function  to  set  the  procedure used for
       default color calculation

SYNOPSIS
       #include <Xm/Xm.h>
       XmColorProc XmSetColorCalculation(
       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.

       color_proc
		 Specifies the procedure to use for color calculation.

       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;
       (void)

       Specifies  the  procedure used to calculate default colors.  The proce‐
       dure is passed a pointer to an XColor structure representing the	 back‐
       ground  color.	The pixel, red, green, and blue members of this struc‐
       ture 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.

       background_color
		 Specifies the background color.

       foreground_color
		 Specifies the foreground color to be calculated.

       select_color
		 Specifies the select color to be calculated.

       top_shadow_color
		 Specifies the top shadow color to be calculated.

       bottom_shadow_color
		 Specifies the bottom shadow color to be calculated.

RETURN
       Returns the color calculation procedure that was used at the time  this
       routine was called.

RELATED
       XmChangeColor(3), XmGetColors(3), and XmGetColorCalculation(3).

					   XmSetColorCalculation(library call)
[top]

List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net