Blob Blame History Raw
'\" t
...\" RepTypAd.sgm /main/8 1996/09/08 20:58:09 rws $
.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 "XmRepTypeAddReverse" "library call"
.SH "NAME"
\fBXmRepTypeAddReverse\fP \(em A representation type manager function
that installs the reverse converter for a previously registered representation type
.iX "XmRepTypeAddReverse"
.iX "representation type manager functions" "XmRepTypeAddReverse"
.SH "SYNOPSIS"
.PP
.nf
#include <Xm/RepType\&.h>
\fBvoid \fBXmRepTypeAddReverse\fP\fR(
\fBXmRepTypeId \fBrep_type_id\fR\fR);
.fi
.SH "DESCRIPTION"
.PP
\fBXmRepTypeAddReverse\fP installs the reverse converter
for a previously registered representation type\&. The reverse
converter takes a numerical representation type value and returns
its corresponding string value\&. Certain applications may require
this capability to obtain a string value to display on a screen
or to build a resource file\&.
.PP
The \fIvalues\fP argument of the \fBXmRepTypeRegister\fP function
can be used to register representation types with nonconsecutive
values or with duplicate names for the same value\&. If the list
of numerical values for a representation type contains duplicate values,
the reverse converter uses the first name in the \fIvalue_names\fP
list that matches the specified numeric value\&. For example, if
a \fIvalue_names\fP array has \fIcancel\fP, \fIproceed\fP, and
\fIabort\fP, and the corresponding
\fIvalues\fP array contains 0, 1, and 0, the reverse converter
will return \fIcancel\fP instead of \fIabort\fP for an
input value of 0\&.
.IP "\fIrep_type_id\fP" 10
Specifies the identification number of the representation type
.SH "RELATED"
.PP
\fBXmRepTypeGetId\fP(3) and
\fBXmRepTypeRegister\fP(3)\&.
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:28