Blame doc/man/man3/XmCvtXmStringTableToTextProperty.3

Packit b099d7
'\" t
Packit b099d7
...\" CvtXmStA.sgm /main/9 1996/09/08 20:38:14 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 "XmCvtXmStringTableToTextProperty" "library call"
Packit b099d7
.SH "NAME"
Packit b099d7
\fBXmCvtXmStringTableToTextProperty\fP \(em A function that converts from XmStringTable to an XTextProperty Structure
Packit b099d7
.iX "XmCvtXmStringTableToTextProperty"
Packit b099d7
.SH "SYNOPSIS"
Packit b099d7
.PP
Packit b099d7
.nf
Packit b099d7
#include <Xm/Xm\&.h>
Packit b099d7
int XmCvtXmStringTableToTextProperty (\fIdisplay, string_table, count, style, text_prop_return\fP)
Packit b099d7
        Display *\fIdisplay\fP;
Packit b099d7
        XmStringTable   \fIstring_table\fP;
Packit b099d7
        int     \fIcount\fP;
Packit b099d7
        XmICCEncodingStyle      \fIstyle\fP;
Packit b099d7
        XTextProperty   *\fItext_prop_return\fP;
Packit b099d7
\fB\fR(\fBvoid\fR)
Packit b099d7
.fi
Packit b099d7
.SH "DESCRIPTION"
Packit b099d7
.PP
Packit b099d7
\fBXmCvtXmStringTableToTextProperty\fP converts the \fBXmString\fRs
Packit b099d7
in the specified \fBXmStringTable\fR into an
Packit b099d7
\fBXTextProperty\fP structure\&.
Packit b099d7
.PP
Packit b099d7
The function sets the encoding member of \fItext_prop_return\fP to an
Packit b099d7
\fBAtom\fP for the specified display naming the encoding determined by
Packit b099d7
the specified style, and it converts the first \fIcount\fP compound
Packit b099d7
strings in the specified \fBXmStringTable\fR to this encoding for
Packit b099d7
storage in the \fItext_prop_return\fP value member\&. Following are the
Packit b099d7
possible encoding styles:
Packit b099d7
.IP "\fBXmSTYLE_COMPOUND_STRING\fP" 10
Packit b099d7
The encoding is \fB_MOTIF_COMPOUND_STRING\fP\&. The function converts
Packit b099d7
each specified \fBXmString\fR to a compound string in Byte Stream
Packit b099d7
format\&.
Packit b099d7
.IP "\fBXmSTYLE_COMPOUND_TEXT\fP" 10
Packit b099d7
The encoding is \fBCOMPOUND_TEXT\fP\&. The function converts each
Packit b099d7
specified \fBXmString\fR to compound text\&.
Packit b099d7
.IP "\fBXmSTYLE_LOCALE\fP" 10
Packit b099d7
The encoding is the encoding of the current locale\&. The function
Packit b099d7
converts each specified \fBXmString\fR to the encoding of the current
Packit b099d7
locale\&.
Packit b099d7
.IP "\fBXmSTYLE_STRING\fP" 10
Packit b099d7
The encoding is \fBSTRING\fP (plain C strings encoded in ISO8859-1), and
Packit b099d7
the function converts each specified
Packit b099d7
\fBXmString\fR to \fBSTRING\fP\&.
Packit b099d7
.IP "\fBXmSTYLE_TEXT\fP" 10
Packit b099d7
If all specified \fBXmString\fRs are fully convertible to the
Packit b099d7
encoding of the current locale, the encoding is the encoding of the
Packit b099d7
current locale, and the function converts each specified
Packit b099d7
\fBXmString\fR to the encoding of the current locale\&. Otherwise, the
Packit b099d7
encoding is \fBCOMPOUND_TEXT\fP, and the function converts each
Packit b099d7
specified compound
Packit b099d7
string to compound text\&.
Packit b099d7
.IP "\fBXmSTYLE_STANDARD_ICC_TEXT\fP" 10
Packit b099d7
If all specified \fBXmString\fRs are fully convertible to \fBSTRING\fP, the
Packit b099d7
encoding is \fBSTRING\fP, and the function converts each specified
Packit b099d7
\fBXmString\fR
Packit b099d7
to \fBSTRING\fP\&. Otherwise, the encoding is \fBCOMPOUND_TEXT\fP, and the
Packit b099d7
function converts each specified \fBXmString\fR to compound text\&.
Packit b099d7
.IP "\fIdisplay\fP" 10
Packit b099d7
Specifies the connection to the X server\&.
Packit b099d7
.IP "\fIstring_table\fP" 10
Packit b099d7
Specifies a set of \fBXmString\fRs\&.
Packit b099d7
.IP "\fIcount\fP" 10
Packit b099d7
Specifies the number of \fBXmString\fRs to be
Packit b099d7
converted in \fIstring_table\fP\&.
Packit b099d7
.IP "\fIstyle\fP" 10
Packit b099d7
Specifies the manner in which the property is encoded\&.
Packit b099d7
.IP "\fItext_prop_return\fP" 10
Packit b099d7
Returns the \fBXTextProperty\fP structure\&.
Packit b099d7
.PP
Packit b099d7
To free the storage for the value member of the \fBXTextProperty\fP, use
Packit b099d7
\fBXtFree\fP\&.
Packit b099d7
.SH "RETURN VALUES"
Packit b099d7
.PP
Packit b099d7
If conversion depends on the locale and the
Packit b099d7
current locale is not supported, the function returns
Packit b099d7
\fBXLocaleNotSupported\fP\&. In both of these cases, the function does not set
Packit b099d7
\fItext_prop_return\fP\&.
Packit b099d7
.PP
Packit b099d7
To determine whether the function is guaranteed not to return
Packit b099d7
\fBXLocaleNotSupported\fP, use \fBXSupportsLocale\fP\&.
Packit b099d7
.SH "RELATED INFORMATION"
Packit b099d7
.PP
Packit b099d7
\fBXmCvtXmStringToByteStream\fP(3),
Packit b099d7
\fBXmCvtTextPropertyToXmStringTable\fP(3), and
Packit b099d7
\fBXmStringTable\fP(3)\&.
Packit b099d7
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:22