Blame doc/man/man3/XmRepTypeAddReverse.3

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