📄 xsetwindowbackgroundpixmap.html
字号:
<HTML><HEAD><TITLE>Xlib Programming Manual: </TITLE></HEAD><BODY><H1 ALIGN=center></H1><H2>Syntax</H2><!.IN "Window" "background"><!.IN "XSetWindowBackgroundPixmap" "" "@DEF@"><CODE><PRE>XSetWindowBackgroundPixmap(<B>display</B>, <B>w</B>, <B>background_pixmap</B>) Display *<B>display</B>; Window <B>w</B>; Pixmap <B>background_pixmap</B>;</PRE></CODE><H2>Arguments</H2><TABLE><TR><TD> <B>display</B><TD> Specifies the connection to the X server.<TR><TD> <B>w</B><TD> Specifies the window.<TR><TD> <B>background_pixmap</B><TD> Specifies the background pixmap,<B>ParentRelative</B>,or<B>None</B>.</TABLE><H2>Description</H2><!.IN "Resource IDs" "freeing"><!.IN "Freeing" "resources">The<B>XSetWindowBackgroundPixmap()</B>function sets the background pixmap of the window to the specified pixmap.The background pixmap can immediately be freed if no further explicitreferences to it are to be made.If <B>ParentRelative</B>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 <B><A HREF="create.html#InputClass">InputOnly</A></B>window, a<B>BadMatch</B>error results.If the background is set to<B>None</B>,the window has no defined background.<P><B>XSetWindowBackgroundPixmap()</B>can generate<B>BadMatch</B>,<B>BadPixmap</B>,and <B>BadWindow</B>errors.<P ALIGN=center>Note<BLOCKQUOTE><B><A HREF="XSetWindowBackground.html">XSetWindowBackground()</A></B>and<B>XSetWindowBackgroundPixmap()</B>do not change the current contents of the window.</BLOCKQUOTE><H2>Diagnostics</H2><TABLE><TR><TD><B>BadMatch</B><TD>An<B><A HREF="create.html#InputClass">InputOnly</A></B>window is used as a Drawable.<TR><TD><B>BadMatch</B><TD>Some argument or pair of arguments has the correct type and range but fails to match in some other way required by the request.<TR><TD><B>BadPixmap</B><TD> A value for a Pixmap argument does not name a defined Pixmap.<TR><TD><B>BadWindow</B><TD>A value for a Window argument does not name a defined Window.</TABLE><H2>See also</H2><B><A HREF="XChangeWindowAttributes.html">XChangeWindowAttributes()</A></B>,<B><A HREF="XConfigureWindow.html">XConfigureWindow()</A></B>,<B><A HREF="XCreateWindow.html">XCreateWindow()</A></B>,<B><A HREF="XDestroyWindow.html">XDestroyWindow()</A></B>,<B><A HREF="../window-and-session-manager/XInstallColormap.html">XInstallColormap()</A></B>,<B><A HREF="XMapWindow.html">XMapWindow()</A></B>,<B><A HREF="XRaiseWindow.html">XRaiseWindow()</A></B>,<B><A HREF="XSetWindowBackground.html">XSetWindowBackground()</A></B>,<B><A HREF="XSetWindowBorder.html">XSetWindowBorder()</A></B>,<B><A HREF="XSetWindowBorderPixmap.html">XSetWindowBorderPixmap()</A></B>,<B><A HREF="XSetWindowColormap.html">XSetWindowColormap()</A></B>,<B><A HREF="XUnmapWindow.html">XUnmapWindow()</A></B>,"<A HREF="change-attributes.html">Changing Window Attributes</A>"<HR><ADDRESS><A HREF="http://tronche.com/">Christophe Tronche</A>, <A HREF="mailto:ch.tronche@computer.org">ch.tronche@computer.org</A></ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -