gdk-selections.html

来自「最新gtk中文资料集」· HTML 代码 · 共 837 行 · 第 1/3 页

HTML
837
字号
<div class="refsect2" lang="en"><a name="id3260291"></a><h3><a name="GDK-TARGET-DRAWABLE:CAPS"></a>GDK_TARGET_DRAWABLE</h3><a class="indexterm" name="id3260304"></a><pre class="programlisting">#define GDK_TARGET_DRAWABLE 		_GDK_MAKE_ATOM (17)</pre><p>A <a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> representing the <code class="literal">DRAWABLE</code> selection target.</p></div><hr><div class="refsect2" lang="en"><a name="id3260334"></a><h3><a name="GDK-TARGET-PIXMAP:CAPS"></a>GDK_TARGET_PIXMAP</h3><a class="indexterm" name="id3260347"></a><pre class="programlisting">#define GDK_TARGET_PIXMAP 		_GDK_MAKE_ATOM (20)</pre><p>A <a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> representing the <code class="literal">PIXMAP</code> selection target.</p></div><hr><div class="refsect2" lang="en"><a name="id3260376"></a><h3><a name="GDK-TARGET-STRING:CAPS"></a>GDK_TARGET_STRING</h3><a class="indexterm" name="id3260390"></a><pre class="programlisting">#define GDK_TARGET_STRING 		_GDK_MAKE_ATOM (31)</pre><p>A <a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> representing the <code class="literal">STRING</code> selection target.</p></div><hr><div class="refsect2" lang="en"><a name="id3260420"></a><h3><a name="GDK-SELECTION-TYPE-ATOM:CAPS"></a>GDK_SELECTION_TYPE_ATOM</h3><a class="indexterm" name="id3260433"></a><pre class="programlisting">#define GDK_SELECTION_TYPE_ATOM 	_GDK_MAKE_ATOM (4)</pre><p>A <a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> representing the <code class="literal">ATOM</code> selection type.</p></div><hr><div class="refsect2" lang="en"><a name="id3260463"></a><h3><a name="GDK-SELECTION-TYPE-BITMAP:CAPS"></a>GDK_SELECTION_TYPE_BITMAP</h3><a class="indexterm" name="id3260476"></a><pre class="programlisting">#define GDK_SELECTION_TYPE_BITMAP 	_GDK_MAKE_ATOM (5)</pre><p>A <a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> representing the <code class="literal">BITMAP</code> selection type.</p></div><hr><div class="refsect2" lang="en"><a name="id3260506"></a><h3><a name="GDK-SELECTION-TYPE-COLORMAP:CAPS"></a>GDK_SELECTION_TYPE_COLORMAP</h3><a class="indexterm" name="id3260520"></a><pre class="programlisting">#define GDK_SELECTION_TYPE_COLORMAP 	_GDK_MAKE_ATOM (7)</pre><p>A <a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> representing the <code class="literal">COLORMAP</code> selection type.</p></div><hr><div class="refsect2" lang="en"><a name="id3260550"></a><h3><a name="GDK-SELECTION-TYPE-DRAWABLE:CAPS"></a>GDK_SELECTION_TYPE_DRAWABLE</h3><a class="indexterm" name="id3260564"></a><pre class="programlisting">#define GDK_SELECTION_TYPE_DRAWABLE 	_GDK_MAKE_ATOM (17)</pre><p>A <a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> representing the <code class="literal">DRAWABLE</code> selection type.</p></div><hr><div class="refsect2" lang="en"><a name="id3260594"></a><h3><a name="GDK-SELECTION-TYPE-INTEGER:CAPS"></a>GDK_SELECTION_TYPE_INTEGER</h3><a class="indexterm" name="id3260608"></a><pre class="programlisting">#define GDK_SELECTION_TYPE_INTEGER 	_GDK_MAKE_ATOM (19)</pre><p>A <a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> representing the <code class="literal">INTEGER</code> selection type.</p></div><hr><div class="refsect2" lang="en"><a name="id3260638"></a><h3><a name="GDK-SELECTION-TYPE-PIXMAP:CAPS"></a>GDK_SELECTION_TYPE_PIXMAP</h3><a class="indexterm" name="id3260651"></a><pre class="programlisting">#define GDK_SELECTION_TYPE_PIXMAP 	_GDK_MAKE_ATOM (20)</pre><p>A <a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> representing the <code class="literal">PIXMAP</code> selection type.</p></div><hr><div class="refsect2" lang="en"><a name="id3260681"></a><h3><a name="GDK-SELECTION-TYPE-WINDOW:CAPS"></a>GDK_SELECTION_TYPE_WINDOW</h3><a class="indexterm" name="id3260695"></a><pre class="programlisting">#define GDK_SELECTION_TYPE_WINDOW 	_GDK_MAKE_ATOM (33)</pre><p>A <a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> representing the <code class="literal">WINDOW</code> selection type.</p></div><hr><div class="refsect2" lang="en"><a name="id3260725"></a><h3><a name="GDK-SELECTION-TYPE-STRING:CAPS"></a>GDK_SELECTION_TYPE_STRING</h3><a class="indexterm" name="id3260738"></a><pre class="programlisting">#define GDK_SELECTION_TYPE_STRING 	_GDK_MAKE_ATOM (31)</pre><p>A <a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> representing the <code class="literal">STRING</code> selection type.</p></div><hr><div class="refsect2" lang="en"><a name="id3260768"></a><h3><a name="gdk-selection-owner-set"></a>gdk_selection_owner_set ()</h3><a class="indexterm" name="id3260782"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gdk_selection_owner_set             (<a class="link" href="gdk-Windows.html#GdkWindow">GdkWindow</a> *owner,                                                         <a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom">GdkAtom</a> selection,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32">guint32</a> time_,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> send_event);</pre><p>Sets the owner of the given selection.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>owner</code></em>&#160;:</span></p></td><td>a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to indicate that the        the owner for the given should be unset.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></p></td><td>an atom identifying a selection.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>time_</code></em>&#160;:</span></p></td><td>timestamp to use when setting the selection.       If this is older than the timestamp given last       time the owner was set for the given selection, the        request will be ignored.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>send_event</code></em>&#160;:</span></p></td><td>if <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, and the new owner is different             from the current owner, the current owner             will be sent a SelectionClear event.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</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 selection owner was successfully          changed to <em class="parameter"><code>owner</code></em>, otherwise <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3260965"></a><h3><a name="gdk-selection-owner-set-for-display"></a>gdk_selection_owner_set_for_display ()</h3><a class="indexterm" name="id3260981"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gdk_selection_owner_set_for_display (<a class="link" href="GdkDisplay.html" title="GdkDisplay">GdkDisplay</a> *display,                                                         <a class="link" href="gdk-Windows.html#GdkWindow">GdkWindow</a> *owner,                                                         <a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom">GdkAtom</a> selection,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32">guint32</a> time_,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> send_event);</pre><p>Sets the <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> <em class="parameter"><code>owner</code></em> as the current owner of the selection <em class="parameter"><code>selection</code></em>.</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>&#160;:</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>owner</code></em>&#160;:</span></p></td><td> a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to indicate that the owner for        the given should be unset.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></p></td><td> an atom identifying a selection.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>time_</code></em>&#160;:</span></p></td><td> timestamp to use when setting the selection.         If this is older than the timestamp given last time the owner was         set for the given selection, the request will be ignored.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>send_event</code></em>&#160;:</span></p></td><td> if <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, and the new owner is different from the current             owner, the current owner will be sent a SelectionClear event.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</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 selection owner was successfully changed to owner,    otherwise <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>. </td></tr></tbody></table></div><p class="since">Since  2.2</p></div><hr><div class="refsect2" lang="en"><a name="id3261218"></a><h3><a name="gdk-selection-owner-get"></a>gdk_selection_owner_get ()</h3><a class="indexterm" name="id3261232"></a><pre class="programlisting"><a class="link" href="gdk-Windows.html#GdkWindow">GdkWindow</a>*          gdk_selection_owner_get             (<a class="link" href="gdk-Properties-and-Atoms.html#GdkAtom">GdkAtom</a> selection);</pre><p>Determines the owner of the given selection.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></p></td><td>an atom indentifying a selection.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td>if there is a selection owner for this window,          and it is a window known to the current process,          the <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> that owns the selection, otherwise          <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. Note that the return value may be owned          by a different process if a foreign window          was previously created for that window, but          a new foreign window will never be created by          this call.</td></tr>

⌨️ 快捷键说明

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