📄 gdk-x-window-system-interaction.html
字号:
<td> the width of the pixmap identified by <em class="parameter"><code>anid</code></em></td></tr><tr><td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td><td> the height of the pixmap identified by <em class="parameter"><code>anid</code></em></td></tr><tr><td><p><span class="term"><em class="parameter"><code>depth</code></em> :</span></p></td><td> the depth of the pixmap identified by <em class="parameter"><code>anid</code></em></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the newly-created <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> wrapper for the native pixmap or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if the pixmap has been destroyed.</td></tr></tbody></table></div><p class="since">Since 2.10</p></div><hr><div class="refsect2" lang="en"><a name="id3307047"></a><h3><a name="gdk-window-foreign-new"></a>gdk_window_foreign_new ()</h3><a class="indexterm" name="id3307061"></a><pre class="programlisting"><a class="link" href="gdk-Windows.html#GdkWindow">GdkWindow</a>* gdk_window_foreign_new (<a class="link" href="gdk-Event-Structures.html#GdkNativeWindow">GdkNativeWindow</a> anid);</pre><p>Wraps a native window for the default display in a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>.This may fail if the window has been destroyed.</p><p>For example in the X backend, a native window handle is an Xlib<span class="type">XID</span>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>anid</code></em> :</span></p></td><td> a native window handle.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the newly-created <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> wrapper for the native window or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if the window has been destroyed.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3307157"></a><h3><a name="gdk-window-foreign-new-for-display"></a>gdk_window_foreign_new_for_display ()</h3><a class="indexterm" name="id3307174"></a><pre class="programlisting"><a class="link" href="gdk-Windows.html#GdkWindow">GdkWindow</a>* gdk_window_foreign_new_for_display (<a class="link" href="GdkDisplay.html" title="GdkDisplay">GdkDisplay</a> *display, <a class="link" href="gdk-Event-Structures.html#GdkNativeWindow">GdkNativeWindow</a> anid);</pre><p>Wraps a native window in a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>.This may fail if the window has been destroyed. If the windowwas already known to GDK, a new reference to the existing <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> is returned.</p><p>For example in the X backend, a native window handle is an Xlib<span class="type">XID</span>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td><td> the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> where the window handle comes from.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>anid</code></em> :</span></p></td><td> a native window handle.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> wrapper for the native window or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if the window has been destroyed. The wrapper will be newly created, if one doesn't exist already.</td></tr></tbody></table></div><p class="since">Since 2.2</p></div><hr><div class="refsect2" lang="en"><a name="id3307318"></a><h3><a name="gdk-xid-table-lookup"></a>gdk_xid_table_lookup ()</h3><a class="indexterm" name="id3307331"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> gdk_xid_table_lookup (XID xid);</pre><p>Returns the Gdk object associated with the given X id.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>xid</code></em> :</span></p></td><td> an X id.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the associated Gdk object, which may be a <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>,a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> or a <a class="link" href="gdk-Fonts.html#GdkFont"><span class="type">GdkFont</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3307416"></a><h3><a name="gdk-xid-table-lookup-for-display"></a>gdk_xid_table_lookup_for_display ()</h3><a class="indexterm" name="id3307432"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> gdk_xid_table_lookup_for_display (<a class="link" href="GdkDisplay.html" title="GdkDisplay">GdkDisplay</a> *display, XID xid);</pre><p>Returns the GDK object associated with the given X id.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td><td> the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>xid</code></em> :</span></p></td><td> an X id.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a GDK object associated with the given X id.</td></tr></tbody></table></div><p class="since">Since 2.2</p></div><hr><div class="refsect2" lang="en"><a name="id3307529"></a><h3><a name="gdk-window-lookup"></a>gdk_window_lookup ()</h3><a class="indexterm" name="id3307543"></a><pre class="programlisting"><a class="link" href="gdk-Windows.html#GdkWindow">GdkWindow</a>* gdk_window_lookup (<a class="link" href="gdk-Event-Structures.html#GdkNativeWindow">GdkNativeWindow</a> anid);</pre><p>Looks up the <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> that wraps the given native window handle. </p><p>For example in the X backend, a native window handle is an Xlib<span class="type">XID</span>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>anid</code></em> :</span></p></td><td> a native window handle.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> wrapper for the native window, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is none.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3307638"></a><h3><a name="gdk-window-lookup-for-display"></a>gdk_window_lookup_for_display ()</h3><a class="indexterm" name="id3307654"></a><pre class="programlisting"><a class="link" href="gdk-Windows.html#GdkWindow">GdkWindow</a>* gdk_window_lookup_for_display (<a class="link" href="GdkDisplay.html" title="GdkDisplay">GdkDisplay</a> *display, <a class="link" href="gdk-Event-Structures.html#GdkNativeWindow">GdkNativeWindow</a> anid);</pre><p>Looks up the <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> that wraps the given native window handle.</p><p>For example in the X backend, a native window handle is an Xlib<span class="type">XID</span>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td><td> the <a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> corresponding to the window handle</td></tr><tr><td><p><span class="term"><em class="parameter"><code>anid</code></em> :</span></p></td><td> a native window handle.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> wrapper for the native window, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is none.</td></tr></tbody></table></div><p class="since">Since 2.2</p></div><hr><div class="refsect2" lang="en"><a name="id3307788"></a><h3><a name="gdk-pixmap-lookup"></a>gdk_pixmap_lookup ()</h3><a class="indexterm" name="id3307801"></a><pre class="programlisting"><a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap">GdkPixmap</a>* gdk_pixmap_lookup (<a class="link" href="gdk-Event-Structures.html#GdkNativeWindow">GdkNativeWindow</a> anid);</pre><p>Looks up the <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a> that wraps the given native pixmap handle.</p><p>For example in the X backend, a nat
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -