📄 gtkentrycompletion.html
字号:
<a class="indexterm" name="id3535639"></a><pre class="programlisting">void gtk_entry_completion_delete_action (<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_);</pre><p>Deletes the action at <em class="parameter"><code>index_</code></em> from <em class="parameter"><code>completion</code></em>'s action list.</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> :</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> :</span></p></td><td> The index of the item to Delete.</td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3535738"></a><h3><a name="gtk-entry-completion-set-text-column"></a>gtk_entry_completion_set_text_column ()</h3><a class="indexterm" name="id3535754"></a><pre class="programlisting">void gtk_entry_completion_set_text_column (<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> column);</pre><p>Convenience function for setting up the most used case of this code: acompletion list with just strings. This function will set up <em class="parameter"><code>completion</code></em>to have a list displaying all (and just) strings in the completion list,and to get those strings from <em class="parameter"><code>column</code></em> in the model of <em class="parameter"><code>completion</code></em>.</p><p>This functions creates and adds a <a class="link" href="GtkCellRendererText.html" title="GtkCellRendererText"><span class="type">GtkCellRendererText</span></a> for the selected column. If you need to set the text column, but don't want the cell renderer, use <ahref="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-set"><code class="function">g_object_set()</code></a> to set the ::text_column property directly.</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> :</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>column</code></em> :</span></p></td><td> The column in the model of <em class="parameter"><code>completion</code></em> to get strings from.</td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3535897"></a><h3><a name="gtk-entry-completion-get-text-column"></a>gtk_entry_completion_get_text_column ()</h3><a class="indexterm" name="id3535913"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> gtk_entry_completion_get_text_column (<a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion">GtkEntryCompletion</a> *completion);</pre><p>Returns the column in the model of <em class="parameter"><code>completion</code></em> to get strings from.</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> :</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> :</span></p></td><td> the column containing the strings</td></tr></tbody></table></div><p class="since">Since 2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3535997"></a><h3><a name="gtk-entry-completion-set-inline-completion"></a>gtk_entry_completion_set_inline_completion ()</h3><a class="indexterm" name="id3536014"></a><pre class="programlisting">void gtk_entry_completion_set_inline_completion (<a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion">GtkEntryCompletion</a> *completion, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> inline_completion);</pre><p>Sets whether the common prefix of the possible completions shouldbe automatically inserted in the entry.</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> :</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>inline_completion</code></em> :</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to do inline completion</td></tr></tbody></table></div><p class="since">Since 2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3536113"></a><h3><a name="gtk-entry-completion-get-inline-completion"></a>gtk_entry_completion_get_inline_completion ()</h3><a class="indexterm" name="id3536130"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> gtk_entry_completion_get_inline_completion (<a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion">GtkEntryCompletion</a> *completion);</pre><p>Returns whether the common prefix of the possible completions shouldbe automatically inserted in the entry.</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> :</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> :</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if inline completion is turned on</td></tr></tbody></table></div><p class="since">Since 2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3536218"></a><h3><a name="gtk-entry-completion-set-inline-selection"></a>gtk_entry_completion_set_inline_selection ()</h3><a class="indexterm" name="id3536236"></a><pre class="programlisting">void gtk_entry_completion_set_inline_selection (<a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion">GtkEntryCompletion</a> *completion, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> inline_selection);</pre><p>Sets whether it is possible to cycle through the possible completionsinside the entry.</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> :</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>inline_selection</code></em> :</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to do inline selection</td></tr></tbody></table></div><p class="since">Since 2.12</p></div><hr><div class="refsect2" lang="en"><a name="id3536335"></a><h3><a name="gtk-entry-completion-get-inline-selection"></a>gtk_entry_completion_get_inline_selection ()</h3><a class="indexterm" name="id3536352"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> gtk_entry_completion_get_inline_selection (<a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion">GtkEntryCompletion</a> *completion);</pre><p>Returns <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if inline-selection mode is turned on.</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> :</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> :</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if inline-selection mode is on</td></tr></tbody></table></div><p class="since">Since 2.12</p></div><hr><div class="refsect2" lang="en"><a name="id3536450"></a><h3><a name="gtk-entry-completion-set-popup-completion"></a>gtk_entry_completion_set_popup_completion ()</h3><a class="indexterm" name="id3536467"></a><pre class="programlisting">void gtk_entry_completion_set_popup_completion (<a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion">GtkEntryCompletion</a> *completion, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> popup_completion);</pre><p>Sets whether the completions should be presented in a popup window.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -