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

📄 gtkentrycompletion.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<tbody><tr><td><p><span class="term"><em class="parameter"><code>completion</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion"><span class="type">GtkEntryCompletion</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>func</code></em>&#160;:</span></p></td><td> The <a class="link" href="GtkEntryCompletion.html#GtkEntryCompletionMatchFunc"><span class="type">GtkEntryCompletionMatchFunc</span></a> to use.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>func_data</code></em>&#160;:</span></p></td><td> The user data for <em class="parameter"><code>func</code></em>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>func_notify</code></em>&#160;:</span></p></td><td> Destroy notifier for <em class="parameter"><code>func_data</code></em>.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3534826"></a><h3><a name="gtk-entry-completion-set-minimum-key-length"></a>gtk_entry_completion_set_minimum_key_length ()</h3><a class="indexterm" name="id3534843"></a><pre class="programlisting">void                gtk_entry_completion_set_minimum_key_length                                                        (<a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion">GtkEntryCompletion</a> *completion,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> length);</pre><p>Requires the length of the search key for <em class="parameter"><code>completion</code></em> to be at least<em class="parameter"><code>length</code></em>. This is useful for long lists, where completing using a smallkey takes a lot of time and will come up with meaningless results anyway(ie, a too large dataset).</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>completion</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion"><span class="type">GtkEntryCompletion</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>length</code></em>&#160;:</span></p></td><td> The minimum length of the key in order to start completing.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3534946"></a><h3><a name="gtk-entry-completion-get-minimum-key-length"></a>gtk_entry_completion_get_minimum_key_length ()</h3><a class="indexterm" name="id3534963"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                gtk_entry_completion_get_minimum_key_length                                                        (<a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion">GtkEntryCompletion</a> *completion);</pre><p>Returns the minimum key length as set for <em class="parameter"><code>completion</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>completion</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion"><span class="type">GtkEntryCompletion</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> The currently used minimum key length.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3535046"></a><h3><a name="gtk-entry-completion-complete"></a>gtk_entry_completion_complete ()</h3><a class="indexterm" name="id3535062"></a><pre class="programlisting">void                gtk_entry_completion_complete       (<a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion">GtkEntryCompletion</a> *completion);</pre><p>Requests a completion operation, or in other words a refiltering of thecurrent list with completions, using the current key. The completion listview will be updated accordingly.</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>completion</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion"><span class="type">GtkEntryCompletion</span></a>.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3535130"></a><h3><a name="gtk-entry-completion-get-completion-prefix"></a>gtk_entry_completion_get_completion_prefix ()</h3><a class="indexterm" name="id3535147"></a><pre class="programlisting">const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a>*        gtk_entry_completion_get_completion_prefix                                                        (<a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion">GtkEntryCompletion</a> *completion);</pre><p>Get the original text entered by the user that triggeredthe completion or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if there's no completion ongoing.</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>completion</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion"><span class="type">GtkEntryCompletion</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the prefix for the current completion</td></tr></tbody></table></div><p class="since">Since  2.12</p></div><hr><div class="refsect2" lang="en"><a name="id3535237"></a><h3><a name="gtk-entry-completion-insert-prefix"></a>gtk_entry_completion_insert_prefix ()</h3><a class="indexterm" name="id3535254"></a><pre class="programlisting">void                gtk_entry_completion_insert_prefix  (<a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion">GtkEntryCompletion</a> *completion);</pre><p>Requests a prefix insertion.</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>completion</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion"><span class="type">GtkEntryCompletion</span></a></td></tr></tbody></table></div><p class="since">Since  2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3535319"></a><h3><a name="gtk-entry-completion-insert-action-text"></a>gtk_entry_completion_insert_action_text ()</h3><a class="indexterm" name="id3535335"></a><pre class="programlisting">void                gtk_entry_completion_insert_action_text                                                        (<a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion">GtkEntryCompletion</a> *completion,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> index_,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *text);</pre><p>Inserts an action in <em class="parameter"><code>completion</code></em>'s action item list at position <em class="parameter"><code>index_</code></em>with text <em class="parameter"><code>text</code></em>. If you want the action item to have markup, use<a class="link" href="GtkEntryCompletion.html#gtk-entry-completion-insert-action-markup"><code class="function">gtk_entry_completion_insert_action_markup()</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>completion</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion"><span class="type">GtkEntryCompletion</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>index_</code></em>&#160;:</span></p></td><td> The index of the item to insert.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>text</code></em>&#160;:</span></p></td><td> Text of the item to insert.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3535476"></a><h3><a name="gtk-entry-completion-insert-action-markup"></a>gtk_entry_completion_insert_action_markup ()</h3><a class="indexterm" name="id3535494"></a><pre class="programlisting">void                gtk_entry_completion_insert_action_markup                                                        (<a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion">GtkEntryCompletion</a> *completion,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> index_,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *markup);</pre><p>Inserts an action in <em class="parameter"><code>completion</code></em>'s action item list at position <em class="parameter"><code>index_</code></em>with markup <em class="parameter"><code>markup</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>completion</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion"><span class="type">GtkEntryCompletion</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>index_</code></em>&#160;:</span></p></td><td> The index of the item to insert.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>markup</code></em>&#160;:</span></p></td><td> Markup of the item to insert.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3535622"></a><h3><a name="gtk-entry-completion-delete-action"></a>gtk_entry_completion_delete_action ()</h3>

⌨️ 快捷键说明

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