Blame doc/man/man3/XmSetColorCalculation.3

Packit b099d7
'\" t
Packit b099d7
...\" SetColC.sgm /main/9 1996/09/08 21:01:53 rws $
Packit b099d7
.de P!
Packit b099d7
.fl
Packit b099d7
\!!1 setgray
Packit b099d7
.fl
Packit b099d7
\\&.\"
Packit b099d7
.fl
Packit b099d7
\!!0 setgray
Packit b099d7
.fl			\" force out current output buffer
Packit b099d7
\!!save /psv exch def currentpoint translate 0 0 moveto
Packit b099d7
\!!/showpage{}def
Packit b099d7
.fl			\" prolog
Packit b099d7
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
Packit b099d7
\!!psv restore
Packit b099d7
.
Packit b099d7
.de pF
Packit b099d7
.ie     ?\\*(f1?? .ds f1 \\n(.f
Packit b099d7
.el .ie ?\\*(f2?? .ds f2 \\n(.f
Packit b099d7
.el .ie ?\\*(f3?? .ds f3 \\n(.f
Packit b099d7
.el .ie ?\\*(f4?? .ds f4 \\n(.f
Packit b099d7
.el .tm ? font overflow
Packit b099d7
.ft \\$1
Packit b099d7
..
Packit b099d7
.de fP
Packit b099d7
.ie     !?\\*(f4?? \{\
Packit b099d7
.	ft \\*(f4
Packit b099d7
.	ds f4\"
Packit b099d7
'	br \}
Packit b099d7
.el .ie !?\\*(f3?? \{\
Packit b099d7
.	ft \\*(f3
Packit b099d7
.	ds f3\"
Packit b099d7
'	br \}
Packit b099d7
.el .ie !?\\*(f2?? \{\
Packit b099d7
.	ft \\*(f2
Packit b099d7
.	ds f2\"
Packit b099d7
'	br \}
Packit b099d7
.el .ie !?\\*(f1?? \{\
Packit b099d7
.	ft \\*(f1
Packit b099d7
.	ds f1\"
Packit b099d7
'	br \}
Packit b099d7
.el .tm ? font underflow
Packit b099d7
..
Packit b099d7
.ds f1\"
Packit b099d7
.ds f2\"
Packit b099d7
.ds f3\"
Packit b099d7
.ds f4\"
Packit b099d7
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n 
Packit b099d7
.TH "XmSetColorCalculation" "library call"
Packit b099d7
.SH "NAME"
Packit b099d7
\fBXmSetColorCalculation\fP \(em A function to set the procedure used for default color calculation
Packit b099d7
.iX "XmSetColorCalculation"
Packit b099d7
.iX "Color functions" "XmSetColorCalculation"
Packit b099d7
.SH "SYNOPSIS"
Packit b099d7
.PP
Packit b099d7
.nf
Packit b099d7
#include <Xm/Xm\&.h>
Packit b099d7
\fBXmColorProc \fBXmSetColorCalculation\fP\fR(
Packit b099d7
\fBXmColorProc \fBcolor_proc\fR\fR);
Packit b099d7
.fi
Packit b099d7
.SH "DESCRIPTION"
Packit b099d7
.PP
Packit b099d7
\fBXmSetColorCalculation\fP sets the procedure to calculate
Packit b099d7
default colors\&.
Packit b099d7
This procedure is used to calculate the foreground, top shadow, bottom
Packit b099d7
shadow, and select colors on the basis of a given background color\&.
Packit b099d7
If called with an argument of NULL, it restores the default procedure
Packit b099d7
used to calculate colors\&.
Packit b099d7
.IP "\fIcolor_proc\fP" 10
Packit b099d7
Specifies the procedure to use for color calculation\&.
Packit b099d7
.PP
Packit b099d7
Following is a description of the \fBXmColorProc\fR type used by
Packit b099d7
\fBXmSetColorCalculation\fP:
Packit b099d7
.PP
Packit b099d7
.nf
Packit b099d7
void (*\fIcolor_proc\fP) (\fIbackground_color, foreground_color, select_color, top_shadow_color,
Packit b099d7
bottom_shadow_color\fP)
Packit b099d7
        XColor  \fI*background_color\fP;
Packit b099d7
        XColor  \fI*foreground_color\fP;
Packit b099d7
        XColor  \fI*select_color\fP;
Packit b099d7
        XColor  \fI*top_shadow_color\fP;
Packit b099d7
        XColor  \fI*bottom_shadow_color\fP;
Packit b099d7
\fB\fR(\fBvoid\fR)
Packit b099d7
.fi
Packit b099d7
.PP
Packit b099d7
Specifies the procedure used to calculate default colors\&.
Packit b099d7
The procedure is passed a pointer to an \fBXColor\fP structure
Packit b099d7
representing the background color\&.
Packit b099d7
The \fIpixel\fP, \fIred\fP, \fIgreen\fP, and \fIblue\fP members of this
Packit b099d7
structure are filled in with values that are valid for the current
Packit b099d7
colormap\&.
Packit b099d7
.PP
Packit b099d7
The procedure is passed pointers to \fBXColor\fP structures representing
Packit b099d7
the foreground, select, top shadow, and bottom shadow colors to be
Packit b099d7
calculated\&.
Packit b099d7
The procedure calculates and fills in the \fIred\fP, \fIgreen\fP, and
Packit b099d7
\fIblue\fP members of these structures\&.
Packit b099d7
The procedure should not allocate color cells for any of these colors\&.
Packit b099d7
.IP "\fIbackground_color\fP" 10
Packit b099d7
Specifies the background color\&.
Packit b099d7
.IP "\fIforeground_color\fP" 10
Packit b099d7
Specifies the foreground color to be calculated\&.
Packit b099d7
.IP "\fIselect_color\fP" 10
Packit b099d7
Specifies the select color to be calculated\&.
Packit b099d7
.IP "\fItop_shadow_color\fP" 10
Packit b099d7
Specifies the top shadow color to be calculated\&.
Packit b099d7
.IP "\fIbottom_shadow_color\fP" 10
Packit b099d7
Specifies the bottom shadow color to be calculated\&.
Packit b099d7
.SH "RETURN"
Packit b099d7
.PP
Packit b099d7
Returns the color calculation procedure that was used at the time this
Packit b099d7
routine was called\&.
Packit b099d7
.SH "RELATED"
Packit b099d7
.PP
Packit b099d7
\fBXmChangeColor\fP(3),
Packit b099d7
\fBXmGetColors\fP(3), and
Packit b099d7
\fBXmGetColorCalculation\fP(3)\&.
Packit b099d7
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:30