1XmSetColorCalculation(library call)        XmSetColorCalculation(library call)
2
3
4

NAME

6       XmSetColorCalculation  —  A  function  to  set  the  procedure used for
7       default color calculation
8

SYNOPSIS

10       #include <Xm/Xm.h>
11       XmColorProc XmSetColorCalculation(
12       XmColorProc color_proc);
13

DESCRIPTION

15       XmSetColorCalculation sets the procedure to calculate  default  colors.
16       This  procedure is used to calculate the foreground, top shadow, bottom
17       shadow, and select colors on the basis of a given background color.  If
18       called with an argument of NULL, it restores the default procedure used
19       to calculate colors.
20
21       color_proc
22                 Specifies the procedure to use for color calculation.
23
24       Following is a description of the XmColorProc type used by  XmSetColor‐
25       Calculation:
26
27       void (*color_proc) (background_color, foreground_color, select_color, top_shadow_color,
28       bottom_shadow_color)
29               XColor  *background_color;
30               XColor  *foreground_color;
31               XColor  *select_color;
32               XColor  *top_shadow_color;
33               XColor  *bottom_shadow_color;
34       (void)
35
36       Specifies  the  procedure used to calculate default colors.  The proce‐
37       dure is passed a pointer to an XColor structure representing the  back‐
38       ground  color.   The pixel, red, green, and blue members of this struc‐
39       ture are filled in with values that are valid for the current colormap.
40
41       The procedure is passed pointers to XColor structures representing  the
42       foreground,  select,  top shadow, and bottom shadow colors to be calcu‐
43       lated.  The procedure calculates and fills in the red, green, and  blue
44       members  of  these structures.  The procedure should not allocate color
45       cells for any of these colors.
46
47       background_color
48                 Specifies the background color.
49
50       foreground_color
51                 Specifies the foreground color to be calculated.
52
53       select_color
54                 Specifies the select color to be calculated.
55
56       top_shadow_color
57                 Specifies the top shadow color to be calculated.
58
59       bottom_shadow_color
60                 Specifies the bottom shadow color to be calculated.
61

RETURN

63       Returns the color calculation procedure that was used at the time  this
64       routine was called.
65
67       XmChangeColor(3), XmGetColors(3), and XmGetColorCalculation(3).
68
69
70
71                                           XmSetColorCalculation(library call)
Impressum