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

📄 gtk-clipboards.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> data);</pre><p>    A function to be called when the results of <a class="link" href="gtk-Clipboards.html#gtk-clipboard-request-image"><code class="function">gtk_clipboard_request_image()</code></a>    are received, or when the request fails.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>clipboard</code></em>&#160;:</span></p></td><td>the <a class="link" href="gtk-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>pixbuf</code></em>&#160;:</span></p></td><td>the received image</td></tr><tr><td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td><td>the <em class="parameter"><code>user_data</code></em> supplied to <a class="link" href="gtk-Clipboards.html#gtk-clipboard-request-image"><code class="function">gtk_clipboard_request_image()</code></a>.</td></tr></tbody></table></div><p class="since">Since 2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3172462"></a><h3><a name="GtkClipboardTargetsReceivedFunc"></a>GtkClipboardTargetsReceivedFunc ()</h3><a class="indexterm" name="id3172477"></a><pre class="programlisting">void                (*GtkClipboardTargetsReceivedFunc)  (<a class="link" href="gtk-Clipboards.html#GtkClipboard">GtkClipboard</a> *clipboard,                                                         <ahref="/usr/share/gtk-doc/html/gdk/gdk-Properties-and-Atoms.html#GdkAtom">GdkAtom</a> *atoms,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> n_atoms,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> data);</pre><p>    A function to be called when the results of <a class="link" href="gtk-Clipboards.html#gtk-clipboard-request-targets"><code class="function">gtk_clipboard_request_targets()</code></a>    are received, or when the request fails.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>clipboard</code></em>&#160;:</span></p></td><td>the <a class="link" href="gtk-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>atoms</code></em>&#160;:</span></p></td><td>the supported targets, as array of <ahref="/usr/share/gtk-doc/html/gdk/gdk-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a>, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>             if retrieving the data failed.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>n_atoms</code></em>&#160;:</span></p></td><td>the length of the <em class="parameter"><code>atoms</code></em> array.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td><td>the <em class="parameter"><code>user_data</code></em> supplied to <a class="link" href="gtk-Clipboards.html#gtk-clipboard-request-targets"><code class="function">gtk_clipboard_request_targets()</code></a>.</td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3172660"></a><h3><a name="GtkClipboardRichTextReceivedFunc"></a>GtkClipboardRichTextReceivedFunc ()</h3><a class="indexterm" name="id3172673"></a><pre class="programlisting">void                (*GtkClipboardRichTextReceivedFunc) (<a class="link" href="gtk-Clipboards.html#GtkClipboard">GtkClipboard</a> *clipboard,                                                         <ahref="/usr/share/gtk-doc/html/gdk/gdk-Properties-and-Atoms.html#GdkAtom">GdkAtom</a> format,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8">guint8</a> *text,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize">gsize</a> length,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> data);</pre><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>clipboard</code></em>&#160;:</span></p></td><td></td></tr><tr><td><p><span class="term"><em class="parameter"><code>format</code></em>&#160;:</span></p></td><td></td></tr><tr><td><p><span class="term"><em class="parameter"><code>text</code></em>&#160;:</span></p></td><td></td></tr><tr><td><p><span class="term"><em class="parameter"><code>length</code></em>&#160;:</span></p></td><td></td></tr><tr><td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td><td></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3172805"></a><h3><a name="GtkClipboardGetFunc"></a>GtkClipboardGetFunc ()</h3><a class="indexterm" name="id3172819"></a><pre class="programlisting">void                (*GtkClipboardGetFunc)              (<a class="link" href="gtk-Clipboards.html#GtkClipboard">GtkClipboard</a> *clipboard,                                                         <a class="link" href="GtkWidget.html#GtkSelectionData">GtkSelectionData</a> *selection_data,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> info,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> user_data_or_owner);</pre><p>A function that will be called to provide the contents of the selection.If multiple types of data were advertised, the requested type canbe determined from the <em class="parameter"><code>info</code></em> parameter or by checking the target fieldof <em class="parameter"><code>selection_data</code></em>. If the data could successfully be converted intothen it should be stored into the <em class="parameter"><code>selection_data</code></em> object bycalling <a class="link" href="gtk-Selections.html#gtk-selection-data-set"><code class="function">gtk_selection_data_set()</code></a> (or related functions suchas <a class="link" href="gtk-Selections.html#gtk-selection-data-set-text"><code class="function">gtk_selection_data_set_text()</code></a>). If no data is set, the requestorwill be informed that the attempt to get the data failed.    </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>clipboard</code></em>&#160;:</span></p></td><td>the <a class="link" href="gtk-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>selection_data</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkWidget.html#GtkSelectionData"><span class="type">GtkSelectionData</span></a> argument in which the requested                     data should be stored.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>info</code></em>&#160;:</span></p></td><td>the info field corresponding to the requested                     target from the <a class="link" href="gtk-Selections.html#GtkTargetEntry"><span class="type">GtkTargetEntry</span></a> array passed to                     <a class="link" href="gtk-Clipboards.html#gtk-clipboard-set-with-data"><code class="function">gtk_clipboard_set_with_data()</code></a> or <a class="link" href="gtk-Clipboards.html#gtk-clipboard-set-with-owner"><code class="function">gtk_clipboard_set_with_owner()</code></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_data_or_owner</code></em>&#160;:</span></p></td><td>the <em class="parameter"><code>user_data</code></em> argument passed to <a class="link" href="gtk-Clipboards.html#gtk-clipboard-set-with-data"><code class="function">gtk_clipboard_set_with_data()</code></a>, or                     the <em class="parameter"><code>owner</code></em> argument passed to <a class="link" href="gtk-Clipboards.html#gtk-clipboard-set-with-owner"><code class="function">gtk_clipboard_set_with_owner()</code></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3173067"></a><h3><a name="GtkClipboardClearFunc"></a>GtkClipboardClearFunc ()</h3><a class="indexterm" name="id3173080"></a><pre class="programlisting">void                (*GtkClipboardClearFunc)            (<a class="link" href="gtk-Clipboards.html#GtkClipboard">GtkClipboard</a> *clipboard,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> user_data_or_owner);</pre><p>A function that will be called when the contents of the clipboard are changedor cleared. Once this has called, the <em class="parameter"><code>user_data_or_owner</code></em> argumentwill not be used again.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>clipboard</code></em>&#160;:</span></p></td><td>the <a class="link" href="gtk-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_data_or_owner</code></em>&#160;:</span></p></td><td>the <em class="parameter"><code>user_data</code></em> argument passed to <a class="link" href="gtk-Clipboards.html#gtk-clipboard-set-with-data"><code class="function">gtk_clipboard_set_with_data()</code></a>, or                     the <em class="parameter"><code>owner</code></em> argument passed to <a class="link" href="gtk-Clipboards.html#gtk-clipboard-set-with-owner"><code class="function">gtk_clipboard_set_with_owner()</code></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3173201"></a><h3><a name="gtk-clipboard-get"></a>gtk_clipboard_get ()</h3><a class="indexterm" name="id3173214"></a><pre class="programlisting"><a class="link" href="gtk-Clipboards.html#GtkClipboard">GtkClipboard</a>*       gtk_clipboard_get                   (<ahref="/usr/share/gtk-doc/html/gdk/gdk-Properties-and-Atoms.html#GdkAtom">GdkAtom</a> selection);</pre><p>Returns the clipboard object for the given selection.See <a class="link" href="gtk-Clipboards.html#gtk-clipboard-get-for-display"><code class="function">gtk_clipboard_get_for_display()</code></a> for complete details.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top">

⌨️ 快捷键说明

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