Unix and Linux Discussions Tagged with calculate |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
10,294 |
UNIX for Beginners Questions & Answers |
|
|
|
17 |
19,348 |
Shell Programming and Scripting |
|
|
|
2 |
4,604 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
8,887 |
Shell Programming and Scripting |
|
|
|
4 |
3,947 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,398 |
Shell Programming and Scripting |
|
|
|
0 |
11,842 |
Programming |
|
|
|
4 |
5,948 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
6,839 |
Solaris |
|
|
|
3 |
1,580 |
Shell Programming and Scripting |
|
|
|
5 |
2,347 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
4,708 |
Shell Programming and Scripting |
|
|
|
10 |
32,211 |
Shell Programming and Scripting |
|
|
|
4 |
42,862 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
3,748 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
6,407 |
Programming |
|
|
|
9 |
26,430 |
Programming |
|
|
|
3 |
16,047 |
Shell Programming and Scripting |
|
|
|
6 |
64,710 |
Shell Programming and Scripting |
|
|
|
2 |
3,645 |
Shell Programming and Scripting |
|
|
|
3 |
4,371 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
5,136 |
Shell Programming and Scripting |
|
|
|
3 |
8,502 |
Shell Programming and Scripting |
|
|
|
3 |
4,527 |
Shell Programming and Scripting |
|
|
|
3 |
18,860 |
Shell Programming and Scripting |
|
|
|
7 |
4,987 |
Shell Programming and Scripting |
|
|
|
8 |
16,181 |
Shell Programming and Scripting |
|
|
|
5 |
9,422 |
Shell Programming and Scripting |
|
|
|
3 |
7,898 |
Shell Programming and Scripting |
|
|
|
1 |
7,570 |
Shell Programming and Scripting |
|
|
|
4 |
8,616 |
HP-UX |
|
|
|
3 |
6,680 |
Shell Programming and Scripting |
|
|
|
8 |
6,277 |
Shell Programming and Scripting |
|
|
|
6 |
39,673 |
Shell Programming and Scripting |
|
|
|
3 |
3,845 |
Shell Programming and Scripting |
|
|
|
1 |
4,019 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
8,393 |
AIX |
|
|
|
4 |
2,826 |
Solaris |
|
|
|
14 |
8,132 |
Shell Programming and Scripting |
|
|
|
5 |
2,627 |
Shell Programming and Scripting |
XmSetColorCalculation(3X) XmSetColorCalculation(3X)
NAME
XmSetColorCalculation - A function to set the procedure used for default 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, bot-
tom shadow, and select colors on the basis of a given background color. If called with an argument of NULL, it restores the default proce-
dure 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 back-
ground 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 cal-
culated. 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
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)