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

📄 gdk-event-structures.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>&#160;<em class="structfield"><code>focus</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 <em class="parameter"><code>window</code></em> is the focus window or an inferior.</td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a>&#160;<em class="structfield"><code>state</code></em>;</span></p></td><td>a bit-mask representing the state of the modifier keys (e.g. Control,  Shift and Alt) and the pointer buttons. See <a class="link" href="gdk-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3241458"></a><h3><a name="GdkEventFocus"></a>GdkEventFocus</h3><a class="indexterm" name="id3241471"></a><pre class="programlisting">typedef struct {  GdkEventType type;  GdkWindow *window;  gint8 send_event;  gint16 in;} GdkEventFocus;</pre><p>Describes a change of keyboard focus.</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>&#160;<em class="structfield"><code>type</code></em>;</span></p></td><td>the type of the event (<a class="link" href="gdk-Events.html#GDK-FOCUS-CHANGE:CAPS"><code class="literal">GDK_FOCUS_CHANGE</code></a>).</td></tr><tr><td><p><span class="term"><a class="link" href="gdk-Windows.html#GdkWindow">GdkWindow</a>&#160;*<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>&#160;<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#gint16">gint16</a>&#160;<em class="structfield"><code>in</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 window has gained the keyboard focus, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if it has lostthe focus.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3241623"></a><h3><a name="GdkEventConfigure"></a>GdkEventConfigure</h3><a class="indexterm" name="id3241635"></a><pre class="programlisting">typedef struct {  GdkEventType type;  GdkWindow *window;  gint8 send_event;  gint x, y;  gint width;  gint height;} GdkEventConfigure;</pre><p>Generated when a window size or position has changed.</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>&#160;<em class="structfield"><code>type</code></em>;</span></p></td><td>the type of the event (<a class="link" href="gdk-Events.html#GDK-CONFIGURE:CAPS"><code class="literal">GDK_CONFIGURE</code></a>).</td></tr><tr><td><p><span class="term"><a class="link" href="gdk-Windows.html#GdkWindow">GdkWindow</a>&#160;*<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>&#160;<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#gint">gint</a>&#160;<em class="structfield"><code>x</code></em>;</span></p></td><td>the new x coordinate of the window, relative to its parent.</td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>&#160;<em class="structfield"><code>y</code></em>;</span></p></td><td>the new y coordinate of the window, relative to its parent.</td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>&#160;<em class="structfield"><code>width</code></em>;</span></p></td><td>the new width of the window.</td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>&#160;<em class="structfield"><code>height</code></em>;</span></p></td><td>the new height of the window.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3241830"></a><h3><a name="GdkEventProperty"></a>GdkEventProperty</h3><a class="indexterm" name="id3241843"></a><pre class="programlisting">typedef struct {  GdkEventType type;  GdkWindow *window;  gint8 send_event;  GdkAtom atom;  guint32 time;  guint state;} GdkEventProperty;</pre><p>Describes a property change on a window.</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>&#160;<em class="structfield"><code>type</code></em>;</span></p></td><td>the type of the event (<a class="link" href="gdk-Events.html#GDK-PROPERTY-NOTIFY:CAPS"><code class="literal">GDK_PROPERTY_NOTIFY</code></a>).</td></tr><tr><td><p><span class="term"><a class="link" href="gdk-Windows.html#GdkWindow">GdkWindow</a>&#160;*<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>&#160;<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>&#160;<em class="structfield"><code>atom</code></em>;</span></p></td><td>the property that was changed.</td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32">guint32</a>&#160;<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#guint">guint</a>&#160;<em class="structfield"><code>state</code></em>;</span></p></td><td>whether the property was changed (<a class="link" href="gdk-Event-Structures.html#GDK-PROPERTY-NEW-VALUE:CAPS"><code class="literal">GDK_PROPERTY_NEW_VALUE</code></a>) ordeleted (<a class="link" href="gdk-Event-Structures.html#GDK-PROPERTY-DELETE:CAPS"><code class="literal">GDK_PROPERTY_DELETE</code></a>).</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3242042"></a><h3><a name="GdkEventSelection"></a>GdkEventSelection</h3><a class="indexterm" name="id3242055"></a><pre class="programlisting">typedef struct {  GdkEventType type;  GdkWindow *window;  gint8 send_event;  GdkAtom selection;  GdkAtom target;  GdkAtom property;  guint32 time;  GdkNativeWindow requestor;} GdkEventSelection;</pre><p>Generated when a selection is requested or ownership of a selection is taken over 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>&#160;<em class="structfield"><code>type</code></em>;</span></p></td><td>the type of the event (<a class="link" href="gdk-Events.html#GDK-SELECTION-CLEAR:CAPS"><code class="literal">GDK_SELECTION_CLEAR</code></a>, <a class="link" href="gdk-Events.html#GDK-SELECTION-NOTIFY:CAPS"><code class="literal">GDK_SELECTION_NOTIFY</code></a> or <a class="link" href="gdk-Events.html#GDK-SELECTION-REQUEST:CAPS"><code class="literal">GDK_SELECTION_REQUEST</code></a>).</td></tr><tr><td><p><span class="term"><a class="link" href="gdk-Windows.html#GdkWindow">GdkWindow</a>&#160;*<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>&#160;<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>&#160;<em class="structfield"><code>selection</code></em>;</span></p></td><td>the selection.</td></tr><tr><td><p><span class="term"><a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom">GdkAtom</a>&#160;<em class="structfield"><code>target</code></em>;</span></p></td><td>the target to which the selection should be converted.</td></tr><tr><td><p><span class="term"><a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom">GdkAtom</a>&#160;<em class="structfield"><code>property</code></em>;</span></p></td><td>the property in which to place the result of the conversion.</td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32">guint32</a>&#160;<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-Event-Structures.html#GdkNativeWindow">GdkNativeWindow</a>&#160;<em class="structfield"><code>requestor</code></em>;</span></p></td><td>the native window on which to place <em class="parameter"><code>property</code></em>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3242303"></a><h3><a name="GdkNativeWindow"></a>GdkNativeWindow</h3><a class="indexterm" name="id3242316"></a><p>Used to represent native windows (<span class="type">Window</span>s for the X11 backend, <span class="type">HWND</span>s for Win32).</p></div><hr><div class="refsect2" lang="en"><a name="id3242333"></a><h3><a name="GdkEventDND"></a>GdkEventDND</h3><a class="indexterm" name="id3242346"></a><pre class="programlisting">typedef struct {  GdkEventType type;  GdkWindow *window;  gint8 send_event;  GdkDragContext *context;  guint32 time;  gshort x_root, y_root;} GdkEventDND;</pre><p>Generated during DND operations. </p>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -