types.html
来自「linux图形界面x liberary手册」· HTML 代码 · 共 110 行
HTML
110 行
<HTML><HEAD><TITLE>Xlib Programming Manual: Event Types</TITLE></HEAD><BODY><H1 ALIGN=center>10.1 Event Types</H1><!.IN "Event" "types">An event is data generated asynchronously by the X server as a result of some device activity or as side effects of a request sent by an Xlib function.<!.IN "Event" >Device-related events propagate from the source window to ancestor windowsuntil some client application has selected that event type or until the event is explicitly discarded.The X server generally sends an event to a client applicationonly if the client has specifically asked to be informed of that event type, typically by setting the <A HREF="../window/attributes/event-and-do-not-propagate.html">event-mask</A> attribute of the window.The mask can also be set when you create a windowor by changing the window's<A HREF="../window/attributes/event-and-do-not-propagate.html">event-mask</A>.You can also mask out events that would propagate to ancestor windowsby manipulating the<A HREF="../window/attributes/event-and-do-not-propagate.html">do-not-propagate</A> mask of the window's attributes.However,<B><A HREF="window-state-change/mapping.html">MappingNotify</A></B>events are always sent to all clients.<!.IN "Input Control"><!.IN "Output Control"><P>An event type describes a specific event generated by the X server.For each event type, a corresponding constant name is defined in<B><TT>X11/X.h</TT></B>,which is used when referring to an event type.<!.IN "Event" "categories">The following table lists the event category and its associated event type or types. The processing associated with these events is discussed in section "<A HREF="processing-overview.html">Event Processing Overview</A>".<P><TABLE><TR><TD COLSPAN=2><HR><TR><TD><B>Event Category <TD><B>Event Type<TR><TD COLSPAN=2><HR><TR><TD><A HREF="keyboard-pointer/">Keyboard events</A> <TD> <B><A HREF="keyboard-pointer/keyboard-pointer.html">KeyPress</A></B>, <B><A HREF="keyboard-pointer/keyboard-pointer.html">KeyRelease</A></B><TR><TD><A HREF="keyboard-pointer/keyboard-pointer.html">Pointer events</A> <TD> <B><A HREF="keyboard-pointer/keyboard-pointer.html">ButtonPress</A></B>, <B><A HREF="keyboard-pointer/keyboard-pointer.html">ButtonRelease</A></B>, <B><A HREF="keyboard-pointer/keyboard-pointer.html">MotionNotify</A></B><TR><TD><A HREF="window-entry-exit/">Window crossing events</A> <TD> <B><A HREF="window-entry-exit/">EnterNotify</A></B>, <B><A HREF="window-entry-exit/">LeaveNotify</A></B><TR><TD><A HREF="input-focus/">Input focus events</A> <TD> <B><A HREF="input-focus/">FocusIn</A></B>, <B><A HREF="input-focus/">FocusOut</A></B><TR><TD><A HREF="key-map.html">Keymap state notification event</A> <TD> <B><A HREF="key-map.html">KeymapNotify</A></B><TR><TD><A HREF="exposure/">Exposure events</A> <TD> <B><A HREF="exposure/expose.html">Expose</A></B>, <B><A HREF="exposure/graphics-expose-and-no-expose.html">GraphicsExpose</A></B>, <B><A HREF="exposure/graphics-expose-and-no-expose.html">NoExpose</A></B><TR><TD><A HREF="structure-control/">Structure control events</A> <TD> <B><A HREF="structure-control/circulate.html">CirculateRequest</A></B>, <B><A HREF="structure-control/configure.html">ConfigureRequest</A></B>, <B><A HREF="structure-control/map.html">MapRequest</A></B>, <B><A HREF="structure-control/resize.html">ResizeRequest</A></B><TR><TD><A HREF="window-state-change/">Window state notification events</A> <TD> <B><A HREF="window-state-change/circulate.html">CirculateNotify</A></B>, <B><A HREF="window-state-change/configure.html">ConfigureNotify</A></B>, <B><A HREF="window-state-change/create.html">CreateNotify</A></B>, <B><A HREF="window-state-change/destroy.html">DestroyNotify</A></B>, <B><A HREF="window-state-change/gravity.html">GravityNotify</A></B>, <B><A HREF="window-state-change/map.html">MapNotify</A></B>, <B><A HREF="window-state-change/mapping.html">MappingNotify</A></B>, <B><A HREF="window-state-change/reparent.html">ReparentNotify</A></B>, <B><A HREF="window-state-change/unmap.html">UnmapNotify</A></B>, <B><A HREF="window-state-change/visibility.html">VisibilityNotify</A></B><TR><TD><A HREF="colormap-state.html">Colormap state notification event</A> <TD> <B><A HREF="colormap-state.html">ColormapNotify</A></B><TR><TD><A HREF="client-communication/">Client communication events</A> <TD> <B><A HREF="client-communication/client-message.html">ClientMessage</A></B>, <B><A HREF="client-communication/property.html">PropertyNotify</A></B>, <B><A HREF="client-communication/selection-clear.html">SelectionClear</A></B>, <B><A HREF="client-communication/selection.html">SelectionNotify</A></B>, <B><A HREF="client-communication/selection-request.html">SelectionRequest</A></B><TR><TD COLSPAN=2><HR></TABLE><H5 ALIGN=right><I>Next: <A HREF="structures.html">Event Structures</A></I></H5><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 + -
显示快捷键?