Blob Blame History Raw
'\" t
...\" FetchCol.sgm /main/11 1996/09/24 15:57:42 cdedoc $
.de P!
.fl
\!!1 setgray
.fl
\\&.\"
.fl
\!!0 setgray
.fl			\" force out current output buffer
\!!save /psv exch def currentpoint translate 0 0 moveto
\!!/showpage{}def
.fl			\" prolog
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
\!!psv restore
.
.de pF
.ie     \\*(f1 .ds f1 \\n(.f
.el .ie \\*(f2 .ds f2 \\n(.f
.el .ie \\*(f3 .ds f3 \\n(.f
.el .ie \\*(f4 .ds f4 \\n(.f
.el .tm ? font overflow
.ft \\$1
..
.de fP
.ie     !\\*(f4 \{\
.	ft \\*(f4
.	ds f4\"
'	br \}
.el .ie !\\*(f3 \{\
.	ft \\*(f3
.	ds f3\"
'	br \}
.el .ie !\\*(f2 \{\
.	ft \\*(f2
.	ds f2\"
'	br \}
.el .ie !\\*(f1 \{\
.	ft \\*(f1
.	ds f1\"
'	br \}
.el .tm ? font underflow
..
.ds f1\"
.ds f2\"
.ds f3\"
.ds f4\"
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n 
.TH "MrmFetchColorLiteral" "library call"
.SH "NAME"
\fBMrmFetchColorLiteral\fP \(em Fetches a named color literal from a UID file
.iX "MrmFetchColorLiteral"
.iX "uil functions" "MrmFetchColorLiteral"
.iX "uid file"
.SH "SYNOPSIS"
.PP
.nf
#include <Mrm/MrmPublic\&.h>
\fBCardinal \fBMrmFetchColorLiteral\fP\fR(
\fBMrmHierarchy \fBhierarchy_id\fR\fR,
\fBString \fBindex\fR\fR,
\fBDisplay *\fBdisplay\fR\fR,
\fBColormap \fBcolormap_id\fR\fR,
\fBPixel *\fBpixel\fR\fR);
.fi
.iX "MRM function" "MrmFetchColorLiteral"
.iX "MrmFetchColorLiteral" "definition"
.SH "DESCRIPTION"
.PP
The
\fBMrmFetchColorLiteral\fP
function
.iX "MrmFetchColorLiteral" "description"
fetches a named color literal from a UID file, and converts the
color literal to a pixel color value\&.
.IP "\fIhierarchy_id\fP" 10
Specifies the ID of the UID hierarchy that contains the
specified literal\&.
The value of \fIhierarchy_id\fP was returned in a previous call to
\fBMrmOpenHierarchyPerDisplay\fP\&.
.IP "\fIindex\fP" 10
Specifies the UIL name of the color literal to fetch\&.
You must define this name in UIL as an exported value\&.
.IP "\fIdisplay\fP" 10
Specifies the display used for the pixmap\&.
The
\fIdisplay\fP
argument specifies the connection to the X server\&.
For more information on the
\fBDisplay\fR structure, see the Xlib function
\fBXOpenDisplay\fP\&.
.IP "\fIcolormap_id\fP" 10
Specifies the ID of the color map\&.
If \fIcolormap_id\fP is NULL, the default color map is used\&.
.IP "\fIpixel\fP" 10
Returns the ID of the color literal\&.
.SH "RETURN"
.iX "MrmSUCCESS"
.iX "MrmBAD_HIERARCHY"
.iX "MrmNOT_FOUND"
.iX "MrmFAILURE"
.PP
This function returns one of the following status return constants:
.IP "\fBMrmSUCCESS\fP" 10
The function executed successfully\&.
.IP "\fBMrmBAD_HIERARCHY\fP" 10
The hierarchy ID was invalid\&.
.IP "\fBMrmNOT_FOUND\fP" 10
The color literal was not found in the UIL file\&.
.IP "\fBMrmWRONG_TYPE\fP" 10
The caller tried to fetch a literal of a type not supported by this
function\&.
.IP "\fBMrmFAILURE\fP" 10
The function failed\&.
.SH "RELATED"
.PP
\fBMrmFetchBitmapLiteral\fP(3),
\fBMrmOpenHierarchyPerDisplay\fP(3),
\fBMrmFetchIconLiteral\fP(3),
\fBMrmFetchLiteral\fP(3), and
\fBXOpenDisplay\fP(3)\&.
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:16