⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xeseterror.html

📁 linux图形界面x liberary手册
💻 HTML
字号:
<HTML><HEAD><TITLE>Xlib Programming Manual: Extensions: XESetError</TITLE></HEAD><BODY><H1 ALIGN=center>XESetError</H1><H2>Syntax</H2><!.IN "XESetError" "" "@DEF@"><CODE><PRE>int (*XESetError(<B>display</B>, <B>extension</B>, <B>proc</B>))()      <A HREF="../../display/opening.html#Display">Display</A> *<B>display</B>;      int <B>extension</B>;      int (*<B>proc</B>)();</PRE></CODE><H2>Arguments</H2><TABLE><TR><TD> <B>display</B><TD> Specifies the connection to the X server.<TR><TD> <B>extension</B><TD> Specifies the extension number.<TR><TD> <B>proc</B><TD> Specifies the procedure to call when an error is received.</TABLE><H2>Description</H2>Inside Xlib, there are times that you may want to suppress thecalling of the external error handling when an error occurs.This allows status to be returned on a call at the cost of the callbeing synchronous (though most such functions are query operations, in anycase, and are typically programmed to be synchronous).<P>When Xlib detects a protocol error in <B>_XReply</B>, it calls your procedure with these arguments:<P><PRE><CODE>int (*<B>proc</B>)(<B>display</B>, <B>err</B>, <B>codes</B>, <B>ret_code</B>)	<A HREF="../../display/opening.html#Display">Display</A> *<B>display</B>;	xError *<B>err</B>;	<A HREF="hooking-into-xlib.html#XExtCodes">XExtCodes</A> *<B>codes</B>;	int *<B>ret_code</B>;</PRE></CODE><P>The <B>err</B> argument is a pointer to the 32-byte wire format error.The <B>codes</B> argument is a pointer to the extension codes structure.The <B>ret_code</B> argument is the return code you may want <B>_XReply</B>returned to.<P>If your procedure returns a zero value, the error is not suppressed, and the client's error handler is called.(For further information, see "<A HREF="../../event-handling/protocol-errors/default-handlers.html">Using the Default Error Handlers</A>".)If your procedure returns nonzero, the error is suppressed, and <B>_XReply</B>returns the value of <B>ret_code</B>.<H2>See also</H2><B><A HREF="XESetBeforeFlush.html">XESetBeforeFlush()</A></B>,<B><A HREF="XESetCloseDisplay.html">XESetCloseDisplay()</A></B>,<B><A HREF="XESetCopyGC.html">XESetCopyGC()</A></B>,<B><A HREF="XESetCreateFont.html">XESetCreateFont()</A></B>,<B><A HREF="XESetCreateGC.html">XESetCreateGC()</A></B>,<B><A HREF="XESetErrorString.html">XESetErrorString()</A></B>,<B><A HREF="XESetEventToWire.html">XESetEventToWire()</A></B>,<B><A HREF="XESetFlushGC.html">XESetFlushGC()</A></B>,<B><A HREF="XESetFreeFont.html">XESetFreeFont()</A></B>,<B><A HREF="XESetFreeGC.html">XESetFreeGC()</A></B>,<B><A HREF="XESetPrintErrorValues.html">XESetPrintErrorValues()</A></B>,<B><A HREF="XESetWireToError.html">XESetWireToError()</A></B>,<B><A HREF="XESetWireToEvent.html">XESetWireToEvent()</A></B>,<B><A HREF="_XSetLastRequestRead.html">_XSetLastRequestRead()</A></B>,"<A HREF="hooks-into-the-library.html">Hooks into the Library</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 + -