|
Packit Service |
dc579d |
.\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1994, 1996 X Consortium
|
|
Packit Service |
dc579d |
.\" Copyright \(co 2000 The XFree86 Project, Inc.
|
|
Packit Service |
dc579d |
.\"
|
|
Packit Service |
dc579d |
.\" Permission is hereby granted, free of charge, to any person obtaining
|
|
Packit Service |
dc579d |
.\" a copy of this software and associated documentation files (the
|
|
Packit Service |
dc579d |
.\" "Software"), to deal in the Software without restriction, including
|
|
Packit Service |
dc579d |
.\" without limitation the rights to use, copy, modify, merge, publish,
|
|
Packit Service |
dc579d |
.\" distribute, sublicense, and/or sell copies of the Software, and to
|
|
Packit Service |
dc579d |
.\" permit persons to whom the Software is furnished to do so, subject to
|
|
Packit Service |
dc579d |
.\" the following conditions:
|
|
Packit Service |
dc579d |
.\"
|
|
Packit Service |
dc579d |
.\" The above copyright notice and this permission notice shall be included
|
|
Packit Service |
dc579d |
.\" in all copies or substantial portions of the Software.
|
|
Packit Service |
dc579d |
.\"
|
|
Packit Service |
dc579d |
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
Packit Service |
dc579d |
.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
Packit Service |
dc579d |
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
Packit Service |
dc579d |
.\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
Packit Service |
dc579d |
.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
Packit Service |
dc579d |
.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
Packit Service |
dc579d |
.\" OTHER DEALINGS IN THE SOFTWARE.
|
|
Packit Service |
dc579d |
.\"
|
|
Packit Service |
dc579d |
.\" Except as contained in this notice, the name of the X Consortium shall
|
|
Packit Service |
dc579d |
.\" not be used in advertising or otherwise to promote the sale, use or
|
|
Packit Service |
dc579d |
.\" other dealings in this Software without prior written authorization
|
|
Packit Service |
dc579d |
.\" from the X Consortium.
|
|
Packit Service |
dc579d |
.\"
|
|
Packit Service |
dc579d |
.\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991 by
|
|
Packit Service |
dc579d |
.\" Digital Equipment Corporation
|
|
Packit Service |
dc579d |
.\"
|
|
Packit Service |
dc579d |
.\" Portions Copyright \(co 1990, 1991 by
|
|
Packit Service |
dc579d |
.\" Tektronix, Inc.
|
|
Packit Service |
dc579d |
.\"
|
|
Packit Service |
dc579d |
.\" Permission to use, copy, modify and distribute this documentation for
|
|
Packit Service |
dc579d |
.\" any purpose and without fee is hereby granted, provided that the above
|
|
Packit Service |
dc579d |
.\" copyright notice appears in all copies and that both that copyright notice
|
|
Packit Service |
dc579d |
.\" and this permission notice appear in all copies, and that the names of
|
|
Packit Service |
dc579d |
.\" Digital and Tektronix not be used in in advertising or publicity pertaining
|
|
Packit Service |
dc579d |
.\" to this documentation without specific, written prior permission.
|
|
Packit Service |
dc579d |
.\" Digital and Tektronix makes no representations about the suitability
|
|
Packit Service |
dc579d |
.\" of this documentation for any purpose.
|
|
Packit Service |
dc579d |
.\" It is provided ``as is'' without express or implied warranty.
|
|
Packit Service |
dc579d |
.\"
|
|
Packit Service |
dc579d |
.\"
|
|
Packit Service |
dc579d |
.ds xT X Toolkit Intrinsics \- C Language Interface
|
|
Packit Service |
dc579d |
.ds xW Athena X Widgets \- C Language X Toolkit Interface
|
|
Packit Service |
dc579d |
.ds xL Xlib \- C Language X Interface
|
|
Packit Service |
dc579d |
.ds xC Inter-Client Communication Conventions Manual
|
|
Packit Service |
dc579d |
.na
|
|
Packit Service |
dc579d |
.de Ds
|
|
Packit Service |
dc579d |
.nf
|
|
Packit Service |
dc579d |
.\\$1D \\$2 \\$1
|
|
Packit Service |
dc579d |
.ft CW
|
|
Packit Service |
dc579d |
.\".ps \\n(PS
|
|
Packit Service |
dc579d |
.\".if \\n(VS>=40 .vs \\n(VSu
|
|
Packit Service |
dc579d |
.\".if \\n(VS<=39 .vs \\n(VSp
|
|
Packit Service |
dc579d |
..
|
|
Packit Service |
dc579d |
.de De
|
|
Packit Service |
dc579d |
.ce 0
|
|
Packit Service |
dc579d |
.if \\n(BD .DF
|
|
Packit Service |
dc579d |
.nr BD 0
|
|
Packit Service |
dc579d |
.in \\n(OIu
|
|
Packit Service |
dc579d |
.if \\n(TM .ls 2
|
|
Packit Service |
dc579d |
.sp \\n(DDu
|
|
Packit Service |
dc579d |
.fi
|
|
Packit Service |
dc579d |
..
|
|
Packit Service |
dc579d |
.de IN \" send an index entry to the stderr
|
|
Packit Service |
dc579d |
..
|
|
Packit Service |
dc579d |
.de Pn
|
|
Packit Service |
dc579d |
.ie t \\$1\fB\^\\$2\^\fR\\$3
|
|
Packit Service |
dc579d |
.el \\$1\fI\^\\$2\^\fP\\$3
|
|
Packit Service |
dc579d |
..
|
|
Packit Service |
dc579d |
.de ZN
|
|
Packit Service |
dc579d |
.ie t \fB\^\\$1\^\fR\\$2
|
|
Packit Service |
dc579d |
.el \fI\^\\$1\^\fP\\$2
|
|
Packit Service |
dc579d |
..
|
|
Packit Service |
dc579d |
.de hN
|
|
Packit Service |
dc579d |
.ie t <\fB\\$1\fR>\\$2
|
|
Packit Service |
dc579d |
.el <\fI\\$1\fP>\\$2
|
|
Packit Service |
dc579d |
..
|
|
Packit Service |
dc579d |
.ny0
|
|
Packit Service |
dc579d |
.TH XStringListToTextProperty __libmansuffix__ __xorgversion__ "XLIB FUNCTIONS"
|
|
Packit Service |
dc579d |
.SH NAME
|
|
Packit Service |
dc579d |
XStringListToTextProperty, XTextPropertyToStringList, XFreeStringList, XTextProperty \- convert string lists and text property structure
|
|
Packit Service |
dc579d |
.SH SYNTAX
|
|
Packit Service |
dc579d |
.HP
|
|
Packit Service |
dc579d |
Status XStringListToTextProperty\^(\^char **\fIlist\fP\^, int \fIcount\fP\^,
|
|
Packit Service |
dc579d |
XTextProperty *\fItext_prop_return\fP\^);
|
|
Packit Service |
dc579d |
.HP
|
|
Packit Service |
dc579d |
Status XTextPropertyToStringList\^(\^XTextProperty *\fItext_prop\fP\^, char
|
|
Packit Service |
dc579d |
***\fIlist_return\fP\^, int *\fIcount_return\fP\^);
|
|
Packit Service |
dc579d |
.HP
|
|
Packit Service |
dc579d |
void XFreeStringList\^(\^char **\fIlist\fP\^);
|
|
Packit Service |
dc579d |
.SH ARGUMENTS
|
|
Packit Service |
dc579d |
.ds Cn strings
|
|
Packit Service |
dc579d |
.IP \fIcount\fP 1i
|
|
Packit Service |
dc579d |
Specifies the number of \*(Cn.
|
|
Packit Service |
dc579d |
.ds Cn strings
|
|
Packit Service |
dc579d |
.IP \fIcount_return\fP 1i
|
|
Packit Service |
dc579d |
Returns the number of \*(Cn.
|
|
Packit Service |
dc579d |
.IP \fIlist\fP 1i
|
|
Packit Service |
dc579d |
Specifies the list of strings to be freed.
|
|
Packit Service |
dc579d |
.IP \fIlist\fP 1i
|
|
Packit Service |
dc579d |
Specifies a list of null-terminated character strings.
|
|
Packit Service |
dc579d |
.IP \fIlist_return\fP 1i
|
|
Packit Service |
dc579d |
Returns a list of null-terminated character strings.
|
|
Packit Service |
dc579d |
.IP \fItext_prop\fP 1i
|
|
Packit Service |
dc579d |
Specifies the
|
|
Packit Service |
dc579d |
.ZN XTextProperty
|
|
Packit Service |
dc579d |
structure to be used.
|
|
Packit Service |
dc579d |
.IP \fItext_prop_return\fP 1i
|
|
Packit Service |
dc579d |
Returns the
|
|
Packit Service |
dc579d |
.ZN XTextProperty
|
|
Packit Service |
dc579d |
structure.
|
|
Packit Service |
dc579d |
.SH DESCRIPTION
|
|
Packit Service |
dc579d |
The
|
|
Packit Service |
dc579d |
.ZN XStringListToTextProperty
|
|
Packit Service |
dc579d |
function sets the specified
|
|
Packit Service |
dc579d |
.ZN XTextProperty
|
|
Packit Service |
dc579d |
to be of type STRING (format 8) with a value representing the
|
|
Packit Service |
dc579d |
concatenation of the specified list of null-separated character strings.
|
|
Packit Service |
dc579d |
An extra null byte (which is not included in the nitems member)
|
|
Packit Service |
dc579d |
is stored at the end of the value field of text_prop_return.
|
|
Packit Service |
dc579d |
The strings are assumed (without verification) to be in the STRING encoding.
|
|
Packit Service |
dc579d |
If insufficient memory is available for the new value string,
|
|
Packit Service |
dc579d |
.ZN XStringListToTextProperty
|
|
Packit Service |
dc579d |
does not set any fields in the
|
|
Packit Service |
dc579d |
.ZN XTextProperty
|
|
Packit Service |
dc579d |
structure and returns a zero status.
|
|
Packit Service |
dc579d |
Otherwise, it returns a nonzero status.
|
|
Packit Service |
dc579d |
To free the storage for the value field, use
|
|
Packit Service |
dc579d |
.ZN XFree .
|
|
Packit Service |
dc579d |
.LP
|
|
Packit Service |
dc579d |
The
|
|
Packit Service |
dc579d |
.ZN XTextPropertyToStringList
|
|
Packit Service |
dc579d |
function returns a list of strings representing the null-separated elements
|
|
Packit Service |
dc579d |
of the specified
|
|
Packit Service |
dc579d |
.ZN XTextProperty
|
|
Packit Service |
dc579d |
structure.
|
|
Packit Service |
dc579d |
The data in text_prop must be of type STRING and format 8.
|
|
Packit Service |
dc579d |
Multiple elements of the property
|
|
Packit Service |
dc579d |
(for example, the strings in a disjoint text selection)
|
|
Packit Service |
dc579d |
are separated by NULL (encoding 0).
|
|
Packit Service |
dc579d |
The contents of the property are not null-terminated.
|
|
Packit Service |
dc579d |
If insufficient memory is available for the list and its elements,
|
|
Packit Service |
dc579d |
.ZN XTextPropertyToStringList
|
|
Packit Service |
dc579d |
sets no return values and returns a zero status.
|
|
Packit Service |
dc579d |
Otherwise, it returns a nonzero status.
|
|
Packit Service |
dc579d |
To free the storage for the list and its contents, use
|
|
Packit Service |
dc579d |
.ZN XFreeStringList .
|
|
Packit Service |
dc579d |
.LP
|
|
Packit Service |
dc579d |
The
|
|
Packit Service |
dc579d |
.ZN XFreeStringList
|
|
Packit Service |
dc579d |
function releases memory allocated by
|
|
Packit Service |
dc579d |
.ZN XmbTextPropertyToTextList ,
|
|
Packit Service |
dc579d |
.ZN Xutf8TextPropertyToTextList
|
|
Packit Service |
dc579d |
and
|
|
Packit Service |
dc579d |
.ZN XTextPropertyToStringList
|
|
Packit Service |
dc579d |
and the missing charset list allocated by
|
|
Packit Service |
dc579d |
.ZN XCreateFontSet .
|
|
Packit Service |
dc579d |
.SH STRUCTURES
|
|
Packit Service |
dc579d |
The
|
|
Packit Service |
dc579d |
.ZN XTextProperty
|
|
Packit Service |
dc579d |
structure contains:
|
|
Packit Service |
dc579d |
.LP
|
|
Packit Service |
dc579d |
.Ds 0
|
|
Packit Service |
dc579d |
typedef struct {
|
|
Packit Service |
dc579d |
unsigned char *value; /\&* property data */
|
|
Packit Service |
dc579d |
Atom encoding; /\&* type of property */
|
|
Packit Service |
dc579d |
int format; /\&* 8, 16, or 32 */
|
|
Packit Service |
dc579d |
unsigned long nitems; /\&* number of items in value */
|
|
Packit Service |
dc579d |
} XTextProperty;
|
|
Packit Service |
dc579d |
.De
|
|
Packit Service |
dc579d |
.SH "SEE ALSO"
|
|
Packit Service |
dc579d |
XAllocClassHint(__libmansuffix__),
|
|
Packit Service |
dc579d |
XAllocIconSize(__libmansuffix__),
|
|
Packit Service |
dc579d |
XAllocSizeHints(__libmansuffix__),
|
|
Packit Service |
dc579d |
XAllocWMHints(__libmansuffix__),
|
|
Packit Service |
dc579d |
XFree(__libmansuffix__),
|
|
Packit Service |
dc579d |
XSetCommand(__libmansuffix__),
|
|
Packit Service |
dc579d |
XSetTransientForHint(__libmansuffix__),
|
|
Packit Service |
dc579d |
XSetTextProperty(__libmansuffix__),
|
|
Packit Service |
dc579d |
XSetWMClientMachine(__libmansuffix__),
|
|
Packit Service |
dc579d |
XSetWMColormapWindows(__libmansuffix__),
|
|
Packit Service |
dc579d |
XSetWMIconName(__libmansuffix__),
|
|
Packit Service |
dc579d |
XSetWMName(__libmansuffix__),
|
|
Packit Service |
dc579d |
XSetWMProperties(__libmansuffix__),
|
|
Packit Service |
dc579d |
XSetWMProtocols(__libmansuffix__)
|
|
Packit Service |
dc579d |
.br
|
|
Packit Service |
dc579d |
\fI\*(xL\fP
|