📄 xesetprinterrorvalues.html
字号:
<HTML><HEAD><TITLE>Xlib Programming Manual: Extensions: XESetPrintErrorValues</TITLE></HEAD><BODY><H1 ALIGN=center>XESetPrintErrorValues</H1><H2>Syntax</H2><!.IN "XESetPrintErrorValues" "" "@DEF@"><CODE><PRE>void (*XESetPrintErrorValues(<B>display</B>, <B>extension</B>, <B>proc</B>))() <A HREF="../../display/opening.html#Display">Display</A> *<B>display</B>; int <B>extension</B>; void (*<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 printed.</TABLE><H2>Description</H2>The<B>XESetPrintErrorValues()</B>function defines a procedure to be called when an extensionerror is printed, to print the error values.Use this function for extension errors that contain additional error valuesbeyond those in a core X error.It returns any previously defined procedure.<P>When Xlib needs to print an error,the procedure is called with these arguments:<P><PRE><CODE>void (*<B>proc</B>)(<B>display</B>, <B>ev</B>, <B>fp</B>) <A HREF="../../display/opening.html#Display">Display</A> *<B>display</B>; <A HREF="../../event-handling/protocol-errors/default-handlers.html#XErrorEvent">XErrorEvent</A> *<B>ev</B>; void *<B>fp</B>;</PRE></CODE><P>The structure pointed at by <B>ev</B> is guaranteed to be as large as an<A HREF="../../events/structures.html#XEvent">XEvent</A>structure and so can be cast to a type larger than an<A HREF="../../event-handling/protocol-errors/default-handlers.html#XErrorEvent">XErrorEvent</A>to obtain additional values set by using<B><A HREF="XESetWireToError.html">XESetWireToError()</A></B>.The underlying type of the fp argument is system dependent;on a POSIX-compliant system, fp should be cast to type FILE*.<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="XESetError.html">XESetError()</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="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 + -