Unix/Linux Go Back    

RedHat 9 (Linux i386) - man page for xmsetcolorcalculation (redhat section 3)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

XmSetColorCalculation(library call)			      XmSetColorCalculation(library call)

       XmSetColorCalculation  --  A function to set the procedure used for default color calcula-

       #include <Xm/Xm.h>
       XmColorProc XmSetColorCalculation(
       XmColorProc color_proc);

       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 calculation.

       Following is a description of the XmColorProc type used by XmSetColorCalculation:

       void (*color_proc) (background_color, foreground_color, select_color, top_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 cur-
       rent colormap.

       The procedure is passed pointers to XColor structures representing the foreground, select,
       top shadow, and bottom shadow colors to be calculated.  The procedure calculates and fills
       in the red, green, and blue members of these structures.  The procedure should  not  allo-
       cate 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.

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

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

							      XmSetColorCalculation(library call)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 12:52 AM.