xsettextproperty.html

来自「linux图形界面x liberary手册」· HTML 代码 · 共 104 行

HTML
104
字号
<HTML><HEAD><TITLE>Xlib Programming Manual: XSetTextProperty</TITLE></HEAD><BODY><H1 ALIGN=center>XSetTextProperty</H1><H2>Syntax</H2><!.IN "XSetTextProperty" "" "@DEF@"><CODE><PRE>void XSetTextProperty(<B>display</B>, <B>w</B>, <B>text_prop</B>, <B>property</B>)      <A HREF="../../display/opening.html#Display">Display</A> *<B>display</B>;      Window <B>w</B>;      <A HREF="converting-string-lists.html">XTextProperty</A> *<B>text_prop</B>;      Atom <B>property</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>text_prop</B><TD> Specifies the<A HREF="converting-string-lists.html">XTextProperty</A>structure to be used.<TR><TD> <B>property</B><TD> Specifies the property name.</TABLE><H2>Description</H2>The<B>XSetTextProperty()</B>function replaces the existing specified property for the named window with the data, type, format, and number of items determined by the value field, the encoding field, the format field, and the nitems field, respectively, of the specified<A HREF="converting-string-lists.html">XTextProperty</A>structure.If the property does not already exist,<B>XSetTextProperty()</B>sets it for the specified window.<P><B>XSetTextProperty()</B>can generate<B>BadAlloc</B>,<B>BadAtom</B>, <B>BadValue</B>, and <B>BadWindow</B>  errors.<H2>Diagnostics</H2><TABLE><TR><TD><B>BadAlloc</B><TD> The server failed to allocate the requested     source or server memory.<TR><TD><B>BadAtom</B><TD> A value for an Atom argument does not name a     defined Atom.<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="XAllocClassHint.html">XAllocClassHint()</A></B>,<B><A HREF="XAllocIconSize.html">XAllocIconSize()</A></B>,<B><A HREF="XAllocSizeHints.html">XAllocSizeHints()</A></B>,<B><A HREF="XAllocWMHints.html">XAllocWMHints()</A></B>,<B><A HREF="XGetTextProperty.html">XGetTextProperty()</A></B>,<B><A HREF="../client-to-session-manager/XSetCommand.html">XSetCommand()</A></B>,<B><A HREF="XSetTransientForHint.html">XSetTransientForHint()</A></B>,<B><A HREF="../client-to-session-manager/XSetWMClientMachine.html">XSetWMClientMachine()</A></B>,<B><A HREF="XSetWMColormapWindows.html">XSetWMColormapWindows()</A></B>,<B><A HREF="XSetWMIconName.html">XSetWMIconName()</A></B>,<B><A HREF="XSetWMName.html">XSetWMName()</A></B>,<B><A HREF="XSetWMProperties.html">XSetWMProperties()</A></B>,<B><A HREF="XSetWMProtocols.html">XSetWMProtocols()</A></B>,<B><A HREF="XStringListToTextProperty.html">XStringListToTextProperty()</A></B>,"<A HREF="text.html">Setting and Reading Text Properties</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 + =
减小字号Ctrl + -
显示快捷键?