xinitextension.html

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

HTML
70
字号
<HTML><HEAD><TITLE>Xlib Programming Manual: Extensions: XInitExtension</TITLE></HEAD><BODY><H1 ALIGN=center>XInitExtension</H1><H2>Syntax</H2><!.IN "XInitExtension" "" "@DEF@"><CODE><PRE><A HREF="hooking-into-xlib.html#XExtCodes">XExtCodes</A> *XInitExtension(<B>display</B>, <B>name</B>)      <A HREF="../../display/opening.html#Display">Display</A> *<B>display</B>;      char *<B>name</B>;</PRE></CODE><H2>Arguments</H2><TABLE><TR><TD> <B>display</B><TD> Specifies the connection to the X server.<TR><TD> <B>name</B><TD> Specifies the extension name.</TABLE><H2>Description</H2>The<B>XInitExtension()</B>function determines if the named extension exists. Then, it allocates storage for maintaining the information about the extension on the connection, chains this onto the extension list for the connection,and returns the information the stub implementor will need to accessthe extension.If the extension does not exist,<B>XInitExtension()</B>returns NULL.<P>If the extension name is not in the Host Portable Character Encoding,the result is implementation dependent.Uppercase and lowercase matter;the strings ``thing'', ``Thing'', and ``thinG'' are all considered different names.<P>The extension number in the <A HREF="hooking-into-xlib.html#XExtCodes">XExtCodes</A> structure isneeded in the other calls that follow.  This extension number is unique only to a single connection.<H2>See also</H2><B><A HREF="XAddExtension.html">XAddExtension()</A></B>,"<A HREF="hooking-into-xlib.html">Hooking into Xlib </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 + -
显示快捷键?