Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of the X Consortium shall
not be used in advertising or otherwise to promote the sale, use or
other dealings in this Software without prior written authorization
from the X Consortium.
Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991 by
Digital Equipment Corporation
Portions Copyright \(co 1990, 1991 by
Tektronix, Inc.
Permission to use, copy, modify and distribute this documentation for
any purpose and without fee is hereby granted, provided that the above
copyright notice appears in all copies and that both that copyright notice
and this permission notice appear in all copies, and that the names of
Digital and Tektronix not be used in in advertising or publicity pertaining
to this documentation without specific, written prior permission.
Digital and Tektronix makes no representations about the suitability
of this documentation for any purpose.
It is provided "as is" without express or implied warranty.
int XChangeWindowAttributes\^(\^Display *display\^, Window w\^, unsigned long valuemask\^, XSetWindowAttributes *attributes\^);
int XSetWindowBackground\^(\^Display *display\^, Window w\^, unsigned long background_pixel\^);
int XSetWindowBackgroundPixmap\^(\^Display *display\^, Window w\^, Pixmap background_pixmap\^);
int XSetWindowBorder\^(\^Display *display\^, Window w\^, unsigned long border_pixel\^);
int XSetWindowBorderPixmap\^(\^Display *display\^, Window w\^, Pixmap border_pixmap\^);
int XSetWindowColormap\^(\^Display *display\^, Window w\^, Colormap colormap\^);
Multiple clients can select input on the same window. Their event masks are maintained separately. When an event is generated, it is reported to all interested clients. However, only one client at a time can select for SubstructureRedirectMask , ResizeRedirectMask , and ButtonPressMask . If a client attempts to select any of these event masks and some other client has already selected one, a BadAccess error results. There is only one do-not-propagate-mask for a window, not one per client.
XChangeWindowAttributes can generate BadAccess , BadColor , BadCursor , BadMatch , BadPixmap , BadValue , and BadWindow errors.
The XSetWindowBackground function sets the background of the window to the specified pixel value. Changing the background does not cause the window contents to be changed. XSetWindowBackground uses a pixmap of undefined size filled with the pixel value you passed. If you try to change the background of an InputOnly window, a BadMatch error results.
XSetWindowBackground can generate BadMatch and BadWindow errors.
The XSetWindowBackgroundPixmap function sets the background pixmap of the window to the specified pixmap. The background pixmap can immediately be freed if no further explicit references to it are to be made. If ParentRelative is specified, the background pixmap of the window's parent is used, or on the root window, the default background is restored. If you try to change the background of an InputOnly window, a BadMatch error results. If the background is set to None , the window has no defined background.
XSetWindowBackgroundPixmap can generate BadMatch , BadPixmap , and BadWindow errors.
The XSetWindowBorder function sets the border of the window to the pixel value you specify. If you attempt to perform this on an InputOnly window, a BadMatch error results.
XSetWindowBorder can generate BadMatch and BadWindow errors.
The XSetWindowBorderPixmap function sets the border pixmap of the window to the pixmap you specify. The border pixmap can be freed immediately if no further explicit references to it are to be made. If you specify CopyFromParent , a copy of the parent window's border pixmap is used. If you attempt to perform this on an InputOnly window, a BadMatch error results.
XSetWindowBorderPixmap can generate BadMatch , BadPixmap , and BadWindow errors.
The XSetWindowColormap function sets the specified colormap of the specified window. The colormap must have the same visual type as the window, or a BadMatch error results.
XSetWindowColormap can generate BadColor , BadMatch , and BadWindow errors.
1i BadAccess A client attempted to free a color map entry that it did not already allocate.
1i BadAccess A client attempted to store into a read-only color map entry.
1i BadColor A value for a Colormap argument does not name a defined Colormap.
1i BadCursor A value for a Cursor argument does not name a defined Cursor.
1i BadMatch Some argument or pair of arguments has the correct type and range but fails to match in some other way required by the request.
1i BadMatch An InputOnly window locks this attribute.
1i BadPixmap A value for a Pixmap argument does not name a defined Pixmap.
1i BadValue Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error.
1i BadWindow A value for a Window argument does not name a defined Window.
\*(xL