Blame man/XSetCommand.man

Packit Service dc579d
.\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1994, 1996 X Consortium
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 XSetCommand __libmansuffix__ __xorgversion__ "XLIB FUNCTIONS"
Packit Service dc579d
.SH NAME
Packit Service dc579d
XSetCommand, XGetCommand \- set or read a window's WM_COMMAND property
Packit Service dc579d
.SH SYNTAX
Packit Service dc579d
.HP
Packit Service dc579d
int XSetCommand\^(\^Display *\fIdisplay\fP\^, Window \fIw\fP\^, char
Packit Service dc579d
**\fIargv\fP\^, int \fIargc\fP\^); 
Packit Service dc579d
.HP
Packit Service dc579d
Status XGetCommand\^(\^Display *\fIdisplay\fP\^, Window \fIw\fP\^, char
Packit Service dc579d
***\fIargv_return\fP\^, int *\fIargc_return\fP\^); 
Packit Service dc579d
.SH ARGUMENTS
Packit Service dc579d
.IP \fIargc\fP 1i
Packit Service dc579d
Specifies the number of arguments.
Packit Service dc579d
.IP \fIargc_return\fP 1i
Packit Service dc579d
Returns the number of arguments returned.
Packit Service dc579d
.IP \fIargv\fP 1i
Packit Service dc579d
Specifies the application's argument list.
Packit Service dc579d
.IP \fIargv_return\fP 1i
Packit Service dc579d
Returns the application's argument list.
Packit Service dc579d
.IP \fIdisplay\fP 1i
Packit Service dc579d
Specifies the connection to the X server.
Packit Service dc579d
.IP \fIw\fP 1i
Packit Service dc579d
Specifies the window.
Packit Service dc579d
.SH DESCRIPTION
Packit Service dc579d
The
Packit Service dc579d
.ZN XSetCommand
Packit Service dc579d
function sets the command and arguments used to invoke the
Packit Service dc579d
application.
Packit Service dc579d
(Typically, argv is the argv array of your main program.)
Packit Service dc579d
If the strings are not in the Host Portable Character Encoding,
Packit Service dc579d
the result is implementation-dependent.
Packit Service dc579d
.LP
Packit Service dc579d
.ZN XSetCommand
Packit Service dc579d
can generate
Packit Service dc579d
.ZN BadAlloc
Packit Service dc579d
and
Packit Service dc579d
.ZN BadWindow 
Packit Service dc579d
errors.
Packit Service dc579d
.LP
Packit Service dc579d
The 
Packit Service dc579d
.ZN XGetCommand 
Packit Service dc579d
function reads the WM_COMMAND property from the specified window 
Packit Service dc579d
and returns a string list.
Packit Service dc579d
If the WM_COMMAND property exists, 
Packit Service dc579d
it is of type STRING and format 8.
Packit Service dc579d
If sufficient memory can be allocated to contain the string list, 
Packit Service dc579d
.ZN XGetCommand
Packit Service dc579d
fills in the argv_return and argc_return arguments
Packit Service dc579d
and returns a nonzero status.
Packit Service dc579d
Otherwise, or if any other error is encountered, it returns a zero status.
Packit Service dc579d
If the data returned by the server is in the Latin Portable Character Encoding,
Packit Service dc579d
then the returned strings are in the Host Portable Character Encoding.
Packit Service dc579d
Otherwise, the result is implementation-dependent.
Packit Service dc579d
To free the memory allocated to the string list, use
Packit Service dc579d
.ZN XFreeStringList .
Packit Service dc579d
.SH PROPERTIES
Packit Service dc579d
.TP 1i
Packit Service dc579d
\s-1WM_COMMAND\s+1
Packit Service dc579d
The command and arguments, null-separated, used to invoke the
Packit Service dc579d
application.
Packit Service dc579d
.SH DIAGNOSTICS
Packit Service dc579d
.TP 1i
Packit Service dc579d
.ZN BadAlloc
Packit Service dc579d
The server failed to allocate the requested resource or server memory.
Packit Service dc579d
.TP 1i
Packit Service dc579d
.ZN BadWindow
Packit Service dc579d
A value for a Window argument does not name a defined Window.
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
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
XStringListToTextProperty(__libmansuffix__)
Packit Service dc579d
.br
Packit Service dc579d
\fI\*(xL\fP