📄 xinstallcolormap.html
字号:
<HTML><HEAD><TITLE>Xlib Programming Manual: XInstallColormap</TITLE></HEAD><BODY><H1 ALIGN=center>XInstallColormap</H1><H2>Syntax</H2><!.IN "XInstallColormap" "" "@DEF@"><CODE><PRE>XInstallColormap(<B>display</B>, <B>colormap</B>) <A HREF="../display/opening.html#Display">Display</A> *<B>display</B>; <A HREF="../color/#colormap">Colormap</A> <B>colormap</B>;</PRE></CODE><H2>Arguments</H2><TABLE><TR><TD> <B>display</B><TD> Specifies the connection to the X server.<TR><TD> <B>colormap</B><TD> Specifies the colormap.</TABLE><H2>Description</H2>The<B><A HREF="XInstallColormap.html">XInstallColormap()</A></B>function installs the specified colormap for its associated screen.All windows associated with this colormap immediately display withtrue colors.You associated the windows with this colormap when you created them by calling<B><A HREF="../window/XCreateWindow.html">XCreateWindow()</A></B>,<B><A HREF="../window/XCreateWindow.html">XCreateSimpleWindow()</A></B>,<B><A HREF="../window/XChangeWindowAttributes.html">XChangeWindowAttributes()</A></B>,or<B><A HREF="../window/XSetWindowColormap.html">XSetWindowColormap()</A></B>.<P>If the specified colormap is not already an installed colormap, the X server generates a<B><A HREF="../events/colormap-state.html">ColormapNotify</A></B>event on each window that has that colormap.In addition, for every other colormap that is installed as a result of a call to<B><A HREF="XInstallColormap.html">XInstallColormap()</A></B>,the X server generates a<B><A HREF="../events/colormap-state.html">ColormapNotify</A></B>event on each window that has that colormap.<P><B><A HREF="XInstallColormap.html">XInstallColormap()</A></B>can generate a<B>BadColor</B> error.<H2>Diagnostics</H2><TABLE><TR><TD><B>BadColor</B><TD> A value for a Colormap argument does not name a defined Colormap.</TABLE><H2>See also</H2><B><A HREF="../window/XChangeWindowAttributes.html">XChangeWindowAttributes()</A></B>,<B><A HREF="../color/XCreateColormap.html">XCreateColormap()</A></B>,<B><A HREF="../window/XCreateWindow.html">XCreateWindow()</A></B>,<B><A HREF="../display/XFree.html">XFree()</A></B>,<B><A HREF="XListInstalledColormaps.html">XListInstalledColormaps()</A></B>,<B><A HREF="XUninstallColormap.html">XUninstallColormap()</A></B>,"<A HREF="managing-installed-colormap.html">Managing Installed Colormaps</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 + -