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

📄 gtkentrycompletion.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<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>popup_completion</code></em>&#160;:</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 popup completion</td></tr></tbody></table></div><p class="since">Since  2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3536566"></a><h3><a name="gtk-entry-completion-get-popup-completion"></a>gtk_entry_completion_get_popup_completion ()</h3><a class="indexterm" name="id3536583"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_entry_completion_get_popup_completion                                                        (<a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion">GtkEntryCompletion</a> *completion);</pre><p>Returns 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><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> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if popup 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="id3536670"></a><h3><a name="gtk-entry-completion-set-popup-set-width"></a>gtk_entry_completion_set_popup_set_width ()</h3><a class="indexterm" name="id3536686"></a><pre class="programlisting">void                gtk_entry_completion_set_popup_set_width                                                        (<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_set_width);</pre><p>Sets whether the completion popup window will be resized to be the samewidth as 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>&#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>popup_set_width</code></em>&#160;:</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to make the width of the popup the same as the entry</td></tr></tbody></table></div><p class="since">Since  2.8</p></div><hr><div class="refsect2" lang="en"><a name="id3536787"></a><h3><a name="gtk-entry-completion-get-popup-set-width"></a>gtk_entry_completion_get_popup_set_width ()</h3><a class="indexterm" name="id3536803"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_entry_completion_get_popup_set_width                                                        (<a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion">GtkEntryCompletion</a> *completion);</pre><p>Returns whether the  completion popup window will be resized to the width of 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>&#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> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the popup window will be resized to the width of   the entry</td></tr></tbody></table></div><p class="since">Since  2.8</p></div><hr><div class="refsect2" lang="en"><a name="id3536892"></a><h3><a name="gtk-entry-completion-set-popup-single-match"></a>gtk_entry_completion_set_popup_single_match ()</h3><a class="indexterm" name="id3536909"></a><pre class="programlisting">void                gtk_entry_completion_set_popup_single_match                                                        (<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_single_match);</pre><p>Sets whether the completion popup window will appear even if there isonly a single match. You may want to set this to <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if youare using <a class="link" href="GtkEntryCompletion.html#GtkEntryCompletion--inline-completion">inlinecompletion</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>popup_single_match</code></em>&#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 popup should appear even for a single  match</td></tr></tbody></table></div><p class="since">Since  2.8</p></div><hr><div class="refsect2" lang="en"><a name="id3537028"></a><h3><a name="gtk-entry-completion-get-popup-single-match"></a>gtk_entry_completion_get_popup_single_match ()</h3><a class="indexterm" name="id3537044"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_entry_completion_get_popup_single_match                                                        (<a class="link" href="GtkEntryCompletion.html" title="GtkEntryCompletion">GtkEntryCompletion</a> *completion);</pre><p>Returns whether the completion popup window will appear even if there isonly a single match.</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> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the popup window will appear regardless of the   number of matches.</td></tr></tbody></table></div><p class="since">Since  2.8</p></div></div><div class="refsect1" lang="en"><a name="id3537134"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id3537144"></a><h3><a name="GtkEntryCompletion--inline-completion"></a>The <code class="literal">"inline-completion"</code> property</h3><a class="indexterm" name="id3537161"></a><pre class="programlisting">  "inline-completion"        <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write</pre><p>Determines whether the common prefix of the possible completions should be inserted automatically in the entry. Note that thisrequires text-column to be set, even if you are using a custommatch function.</p><p></p><p>Default value: FALSE</p><p>Since  2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3537200"></a><h3><a name="GtkEntryCompletion--inline-selection"></a>The <code class="literal">"inline-selection"</code> property</h3><a class="indexterm" name="id3537217"></a><pre class="programlisting">  "inline-selection"         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write</pre><p>Determines whether the possible completions on the popupwill appear in the entry as you navigate through them.</p><p></p><p>Default value: FALSE</p><p>Since  2.12</p></div><hr><div class="refsect2" lang="en"><a name="id3537255"></a><h3><a name="GtkEntryCompletion--minimum-key-length"></a>The <code class="literal">"minimum-key-length"</code> property</h3><a class="indexterm" name="id3537271"></a><pre class="programlisting">  "minimum-key-length"       <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read / Write</pre><p>Minimum length of the search key in order to look up matches.</p><p>Allowed values: &gt;= 0</p><p>Default value: 1</p></div><hr><div class="refsect2" lang="en"><a name="id3537302"></a><h3><a name="GtkEntryCompletion--model"></a>The <code class="literal">"model"</code> property</h3><a class="indexterm" name="id3537318"></a><pre class="programlisting">  "model"                    <a class="link" href="GtkTreeModel.html" title="GtkTreeModel">GtkTreeModel</a>          : Read / Write</pre><p>The model to find matches in.</p></div><hr><div class="refsect2" lang="en"><a name="id3537342"></a><h3><a name="GtkEntryCompletion--popup-completion"></a>The <code class="lite

⌨️ 快捷键说明

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