*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> XmSetColorCalculation (3X)              
Title
Content
Arch
Section
 

XmSetColorCalculation(3X)

Contents


NAME    [Toc]    [Back]

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

SYNOPSIS    [Toc]    [Back]

       #include <Xm/Xm.h>

       XmColorProc XmSetColorCalculation (color_proc)
               XmColorProc color_proc;

DESCRIPTION    [Toc]    [Back]

       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, 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 calculated. 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    [Toc]    [Back]

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

SEE ALSO    [Toc]    [Back]

      
      
       XmChangeColor(3X),   XmGetColors(3X),   XmGetColorCalculation(3X)



                                        XmSetColorCalculation(3X)
[ Back ]
 Similar pages
Name OS Title
XmGetColorCalculation HP-UX A function to get the procedure used for default color calculation
XmGetColorCalculation Tru64 A function to get the procedure used for default color calculation
XmGetColorCalculation IRIX A function to get the procedure used for default color calculation
SgColorChooserSetStoredColor IRIX A ColorChooser function that sets the color of the ColorChooser's stored color swatch
SgColorChooserSetCurrentColor IRIX A ColorChooser function that sets the selected color of the ColorChooser without changing the stored color
XmCreateComboBox HP-UX The default ComboBox widget creation function
DXmColorMixSetNewColor Tru64 Sets the new color red, green, and blue values in the color mixing widget.
DXmColorMixGetNewColor Tru64 Retrieves (returns) the color mixing widget's current new color red, green, and blue values.
xcmsdb HP-UX Device Color Characterization utility for X Color Management System
xcmsdb IRIX Device Color Characterization utility for X Color Management System
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service