📄 gdk-event-structures.html
字号:
<div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><a class="link" href="gdk-Events.html#GdkEventType">GdkEventType</a> <em class="structfield"><code>type</code></em>;</span></p></td><td>the type of the event (<a class="link" href="gdk-Events.html#GDK-DRAG-ENTER:CAPS"><code class="literal">GDK_DRAG_ENTER</code></a>, <a class="link" href="gdk-Events.html#GDK-DRAG-LEAVE:CAPS"><code class="literal">GDK_DRAG_LEAVE</code></a>, <a class="link" href="gdk-Events.html#GDK-DRAG-MOTION:CAPS"><code class="literal">GDK_DRAG_MOTION</code></a>, <a class="link" href="gdk-Events.html#GDK-DRAG-STATUS:CAPS"><code class="literal">GDK_DRAG_STATUS</code></a>, <a class="link" href="gdk-Events.html#GDK-DROP-START:CAPS"><code class="literal">GDK_DROP_START</code></a> or <a class="link" href="gdk-Events.html#GDK-DROP-FINISHED:CAPS"><code class="literal">GDK_DROP_FINISHED</code></a>).</td></tr><tr><td><p><span class="term"><a class="link" href="gdk-Windows.html#GdkWindow">GdkWindow</a> *<em class="structfield"><code>window</code></em>;</span></p></td><td>the window which received the event.</td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint8">gint8</a> <em class="structfield"><code>send_event</code></em>;</span></p></td><td><ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the event was sent explicitly (e.g. using <code class="function">XSendEvent</code>).</td></tr><tr><td><p><span class="term"><a class="link" href="gdk-Drag-and-Drop.html#GdkDragContext">GdkDragContext</a> *<em class="structfield"><code>context</code></em>;</span></p></td><td>the <a class="link" href="gdk-Drag-and-Drop.html#GdkDragContext"><span class="type">GdkDragContext</span></a> for the current DND operation.</td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32">guint32</a> <em class="structfield"><code>time</code></em>;</span></p></td><td>the time of the event in milliseconds.</td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gshort">gshort</a> <em class="structfield"><code>x_root</code></em>;</span></p></td><td>the x coordinate of the pointer relative to the root of the screen, only set for <a class="link" href="gdk-Events.html#GDK-DRAG-MOTION:CAPS"><code class="literal">GDK_DRAG_MOTION</code></a> and <a class="link" href="gdk-Events.html#GDK-DROP-START:CAPS"><code class="literal">GDK_DROP_START</code></a>.</td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gshort">gshort</a> <em class="structfield"><code>y_root</code></em>;</span></p></td><td>the y coordinate of the pointer relative to the root of the screen, only set for <a class="link" href="gdk-Events.html#GDK-DRAG-MOTION:CAPS"><code class="literal">GDK_DRAG_MOTION</code></a> and <a class="link" href="gdk-Events.html#GDK-DROP-START:CAPS"><code class="literal">GDK_DROP_START</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3242654"></a><h3><a name="GdkEventProximity"></a>GdkEventProximity</h3><a class="indexterm" name="id3242667"></a><pre class="programlisting">typedef struct { GdkEventType type; GdkWindow *window; gint8 send_event; guint32 time; GdkDevice *device;} GdkEventProximity;</pre><p>Proximity events are generated when using GDK's wrapper for theXInput extension. The XInput extension is an add-on for standard Xthat allows you to use nonstandard devices such as graphics tablets.A proximity event indicates that the stylus has moved in or out ofcontact with the tablet, or perhaps that the user's finger has movedin or out of contact with a touch screen.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><a class="link" href="gdk-Events.html#GdkEventType">GdkEventType</a> <em class="structfield"><code>type</code></em>;</span></p></td><td>the type of the event (<a class="link" href="gdk-Events.html#GDK-PROXIMITY-IN:CAPS"><code class="literal">GDK_PROXIMITY_IN</code></a> or <a class="link" href="gdk-Events.html#GDK-PROXIMITY-OUT:CAPS"><code class="literal">GDK_PROXIMITY_OUT</code></a>).</td></tr><tr><td><p><span class="term"><a class="link" href="gdk-Windows.html#GdkWindow">GdkWindow</a> *<em class="structfield"><code>window</code></em>;</span></p></td><td>the window which received the event.</td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint8">gint8</a> <em class="structfield"><code>send_event</code></em>;</span></p></td><td><ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the event was sent explicitly (e.g. using <code class="function">XSendEvent</code>).</td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32">guint32</a> <em class="structfield"><code>time</code></em>;</span></p></td><td>the time of the event in milliseconds.</td></tr><tr><td><p><span class="term"><a class="link" href="gdk-Input-Devices.html#GdkDevice">GdkDevice</a> *<em class="structfield"><code>device</code></em>;</span></p></td><td>the device where the event originated.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3242838"></a><h3><a name="GdkEventClient"></a>GdkEventClient</h3><a class="indexterm" name="id3242850"></a><pre class="programlisting">typedef struct { GdkEventType type; GdkWindow *window; gint8 send_event; GdkAtom message_type; gushort data_format; union { char b[20]; short s[10]; long l[5]; } data;} GdkEventClient;</pre><p>An event sent by another client application.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><a class="link" href="gdk-Events.html#GdkEventType">GdkEventType</a> <em class="structfield"><code>type</code></em>;</span></p></td><td>the type of the event (<a class="link" href="gdk-Events.html#GDK-CLIENT-EVENT:CAPS"><code class="literal">GDK_CLIENT_EVENT</code></a>).</td></tr><tr><td><p><span class="term"><a class="link" href="gdk-Windows.html#GdkWindow">GdkWindow</a> *<em class="structfield"><code>window</code></em>;</span></p></td><td>the window which received the event.</td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint8">gint8</a> <em class="structfield"><code>send_event</code></em>;</span></p></td><td><ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the event was sent explicitly (e.g. using <code class="function">XSendEvent</code>).</td></tr><tr><td><p><span class="term"><a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom">GdkAtom</a> <em class="structfield"><code>message_type</code></em>;</span></p></td><td>the type of the message, which can be defined by theapplication.</td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gushort">gushort</a> <em class="structfield"><code>data_format</code></em>;</span></p></td><td>the format of the data, given as the number of bits in eachdata element, i.e. 8, 16, or 32. 8-bit data uses the b array of the dataunion, 16-bit data uses the s array, and 32-bit data uses the l array.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3243009"></a><h3><a name="GdkEventNoExpose"></a>GdkEventNoExpose</h3><a class="indexterm" name="id3243022"></a><pre class="programlisting">typedef struct { GdkEventType type; GdkWindow *window; gint8 send_event;} GdkEventNoExpose;</pre><p>Generated when the area of a <a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> being copied, with <a class="link" href="gdk-Drawing-Primitives.html#gdk-draw-drawable"><code class="function">gdk_draw_drawable()</code></a>or <a class="link" href="gdk-Windows.html#gdk-window-copy-area"><code class="function">gdk_window_copy_area()</code></a>, was completely available.</p><p>FIXME: add more here.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><a class="link" href="gdk-Events.html#GdkEventType">GdkEventType</a> <em class="structfield"><code>type</code></em>;</span></p></td><td>the type of the event (<a class="link" href="gdk-Events.html#GDK-NO-EXPOSE:CAPS"><code class="literal">GDK_NO_EXPOSE</code></a>).</td></tr><tr><td><p><span class="term"><a class="link" href="gdk-Windows.html#GdkWindow">GdkWindow</a> *<em class="structfield"><code>window</code></em>;</span></p></td><td>the window which received the event.</td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint8">gint8</a> <em class="structfield"><code>send_event</code></em>;</span></p></td><td><ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the event was sent explicitly (e.g. using <code class="function">XSendEvent</code>).</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3243166"></a><h3><a name="GdkEventWindowState"></a>GdkEventWindowState</h3><a class="indexterm" name="id3243179"></a><pre class="programlisting">typedef struct { GdkEventType type; GdkWindow *window; gint8 send_event; GdkWindowState changed_mask; GdkWindowState new_window_state;} GdkEventWindowState;</pre><p>Generated when the state of a toplevel window changes.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><a class="link" href="gdk-Events.html#GdkEventType">GdkEventType</a> <em class="structfield"><code>type</code></em>;</span></p></td><td>the type of the event (<a class="link" href="gdk-Events.html#GDK-WINDOW-STATE:CAPS"><code class="literal">GDK_WINDOW_STATE</code></a>).</td></tr><tr><td><p><span class="term"><a class="link" href="gdk-Windows.html#GdkWindow">GdkWindow</a> *<em class="structfield"><code>window</code></em>;</span></p></td><td>the window which received the event.</td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint8">gint8</a> <em class="structfield"><code>send_event</code></em>;</span></p></td><td><ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the event was sent explicitly (e.g. using <code class="function">XSendEvent</code>).</td></tr><tr><td><p><span class="term"><a class="link" href="gdk-Event-Structures.html#GdkWindowState">GdkWindowState</a> <em class="structfield"><code>changed_mask</code></em>;</span></p></td><td>mask specifying what flags have changed.</td></tr><tr><td><p><span class="term"><a class="link" href="gdk-Event-Structures.html#GdkWindowState">GdkWindowState</a> <em class="structfield"><code>new_window_state</code></em>;</span></p></td><td>the new window state, a combination of <a class="link" href="gdk-Event-Structures.html#GdkWindowState"><span class="type">GdkWindowState</span></a> bits.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3243342"></a><h3><a name="GdkEventSetting"></a>GdkEventSetting</h3><a class="indexterm" name="id3243355"></a><pre class="programlisting">typedef struct { GdkEventType type; GdkWindow *window; gint8 send_event; GdkSettingAction action; char *name;} GdkEventSetting;</pre><p>Generated when a setting is modified.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><a class="link" href="gdk-Events.html#GdkEventType">GdkEventType</a> <em class="structfield"><code>type</code></em>;</span></p></td><td>the type of the event (<a class="link" href="gdk-Events.html#GDK-SETTING:CAPS"><code class="literal">GDK_SETTING</code></a>).</td></tr><tr><td><p><span class="term"><a class="link" href="gdk-Windows.html#GdkWindow">GdkWindow</a> *<em class="structfield"><code>window</code></em>;</span></p></td><td>the window which received the event.</td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint8">gint8</a> <em class="structfield"><code>send_event</code></em>;</span></p></td><td><ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the event was sent expl
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -