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

📄 gtk-selections.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the target was found, 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="id3317881"></a><h3><a name="gtk-target-table-free"></a>gtk_target_table_free ()</h3><a class="indexterm" name="id3317893"></a><pre class="programlisting">void                gtk_target_table_free               (<a class="link" href="gtk-Selections.html#GtkTargetEntry">GtkTargetEntry</a> *targets,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> n_targets);</pre><p>This function frees a target table as returned by<a class="link" href="gtk-Selections.html#gtk-target-table-new-from-list"><code class="function">gtk_target_table_new_from_list()</code></a></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>targets</code></em>&#160;:</span></p></td><td> a <a class="link" href="gtk-Selections.html#GtkTargetEntry"><span class="type">GtkTargetEntry</span></a> array</td></tr><tr><td><p><span class="term"><em class="parameter"><code>n_targets</code></em>&#160;:</span></p></td><td> the number of entries in the array</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id3317980"></a><h3><a name="gtk-target-table-new-from-list"></a>gtk_target_table_new_from_list ()</h3><a class="indexterm" name="id3317994"></a><pre class="programlisting"><a class="link" href="gtk-Selections.html#GtkTargetEntry">GtkTargetEntry</a>*     gtk_target_table_new_from_list      (<a class="link" href="gtk-Selections.html#GtkTargetList">GtkTargetList</a> *list,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> *n_targets);</pre><p>This function creates an <a class="link" href="gtk-Selections.html#GtkTargetEntry"><span class="type">GtkTargetEntry</span></a> array that contains thesame targets as the passed <code class="literal">list</code>. The returned table is newlyallocated and should be freed using <a class="link" href="gtk-Selections.html#gtk-target-table-free"><code class="function">gtk_target_table_free()</code></a> when nolonger needed.</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>list</code></em>&#160;:</span></p></td><td> a <a class="link" href="gtk-Selections.html#GtkTargetList"><span class="type">GtkTargetList</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>n_targets</code></em>&#160;:</span></p></td><td> return location for the number ot targets in the table</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the new table.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id3318124"></a><h3><a name="gtk-selection-owner-set"></a>gtk_selection_owner_set ()</h3><a class="indexterm" name="id3318137"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_selection_owner_set             (<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,                                                         <ahref="/usr/share/gtk-doc/html/gdk/gdk-Properties-and-Atoms.html#GdkAtom">GdkAtom</a> selection,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32">guint32</a> time_);</pre><p>Claims ownership of a given selection for a particular widget,or, if <em class="parameter"><code>widget</code></em> is <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, release ownership of the selection.</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>widget</code></em>&#160;:</span></p></td><td>  a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></p></td><td>  an interned atom representing the selection to claim</td></tr><tr><td><p><span class="term"><em class="parameter"><code>time_</code></em>&#160;:</span></p></td><td> timestamp with which to claim the selection</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 operation succeeded</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3318289"></a><h3><a name="gtk-selection-owner-set-for-display"></a>gtk_selection_owner_set_for_display ()</h3><a class="indexterm" name="id3318305"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_selection_owner_set_for_display (<ahref="/usr/share/gtk-doc/html/gdk/GdkDisplay.html">GdkDisplay</a> *display,                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,                                                         <ahref="/usr/share/gtk-doc/html/gdk/gdk-Properties-and-Atoms.html#GdkAtom">GdkAtom</a> selection,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32">guint32</a> time_);</pre><p>Claim ownership of a given selection for a particular widget, or,if <em class="parameter"><code>widget</code></em> is <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, release ownership of the selection.</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 <span class="type">Gdkdisplay</span> where the selection is set </td></tr><tr><td><p><span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></p></td><td> new selection owner (a <span class="type">GdkWidget</span>), or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></p></td><td> an interned atom representing the selection to claim.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>time_</code></em>&#160;:</span></p></td><td> timestamp with which to claim the selection</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> TRUE if the operation succeeded </td></tr></tbody></table></div><p class="since">Since  2.2</p></div><hr><div class="refsect2" lang="en"><a name="id3318485"></a><h3><a name="gtk-selection-add-target"></a>gtk_selection_add_target ()</h3><a class="indexterm" name="id3318498"></a><pre class="programlisting">void                gtk_selection_add_target            (<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,                                                         <ahref="/usr/share/gtk-doc/html/gdk/gdk-Properties-and-Atoms.html#GdkAtom">GdkAtom</a> selection,                                                         <ahref="/usr/share/gtk-doc/html/gdk/gdk-Properties-and-Atoms.html#GdkAtom">GdkAtom</a> target,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> info);</pre><p>Appends a specified target to the list of supported targets for a given widget and selection.</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>widget</code></em>&#160;:</span></p></td><td>  a <span class="type">GtkTarget</span></td></tr><tr><td><p><span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></p></td><td> the selection</td></tr><tr><td><p><span class="term"><em class="parameter"><code>target</code></em>&#160;:</span></p></td><td> target to add.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>info</code></em>&#160;:</span></p></td><td> A unsigned integer which will be passed back to the application.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3318624"></a><h3><a name="gtk-selection-add-targets"></a>gtk_selection_add_targets ()</h3><a class="indexterm" name="id3318638"></a><pre class="programlisting">void                gtk_selection_add_targets           (<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,                                                         <ahref="/usr/share/gtk-doc/html/gdk/gdk-Properties-and-Atoms.html#GdkAtom">GdkAtom</a> selection,                                                         const <a class="link" href="gtk-Selections.html#GtkTargetEntry">GtkTargetEntry</a> *targets,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> ntargets);</pre><p>Prepends a table of targets to the list of supported targetsfor a given widget and selection.</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>widget</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></p></td><td> the selection

⌨️ 快捷键说明

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