📄 xpeekifevent.html
字号:
<HTML><HEAD><TITLE>Xlib Programming Manual: XPeekIfEvent</TITLE></HEAD><BODY><H1 ALIGN=center>XPeekIfEvent</H1><H2>Syntax</H2><!.IN "XPeekIfEvent" "" "@DEF@"><CODE><PRE>XPeekIfEvent(<B>display</B>, <B>event_return</B>, <B>predicate</B>, <B>arg</B>) <A HREF="../../display/opening.html#Display">Display</A> *<B>display</B>; <A HREF="../../events/structures.html#XEvent">XEvent</A> *<B>event_return</B>; Bool (*<B><A HREF="selecting-using-predicate.html#predicate">predicate</A></B>)(); XPointer <B>arg</B>;</PRE></CODE><H2>Arguments</H2><TABLE><TR><TD> <B>display</B><TD> Specifies the connection to the X server.<TR><TD> <B>event_return</B><TD> Returns a copy of the matched event's associated structure.<TR><TD> <B>predicate</B><TD> Specifies the procedure that is to be called to determineif the next event in the queue matches what you want.<TR><TD> <B>arg</B><TD> Specifies the user-supplied argument that will be passed to the predicate procedure.</TABLE><H2>Description</H2>The<B>XPeekIfEvent()</B>function returns only when the specified predicateprocedure returns <B>True</B>for an event.After the predicate procedure finds a match,<B>XPeekIfEvent()</B>copies the matched event into the client-supplied<A HREF="../../events/structures.html#XEvent">XEvent</A>structure without removing the event from the queue.<B>XPeekIfEvent()</B>flushes the output buffer if it blocks waiting for additional events.<H2>See also</H2><B><A HREF="XCheckIfEvent.html">XCheckIfEvent()</A></B>,<B><A HREF="XIfEvent.html">XIfEvent()</A></B>,<B><A HREF="XNextEvent.html">XNextEvent()</A></B>,<B><A HREF="../XPutBackEvent.html">XPutBackEvent()</A></B>,<B><A HREF="../XSendEvent.html">XSendEvent()</A></B>,"<A HREF="selecting-using-predicate.html">Selecting Events Using a Predicate Procedure</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 + -