📄 gtklist.html
字号:
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4549618"></a><h3><a name="gtk-list-append-items"></a>gtk_list_append_items ()</h3><a class="indexterm" name="id4549634"></a><pre class="programlisting">void gtk_list_append_items (<a class="link" href="GtkList.html" title="GtkList">GtkList</a> *list, <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList">GList</a> *items);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_list_append_items</code> is deprecated and should not be used in newly-written code.</p></div><p>Adds <em class="parameter"><code>items</code></em> to the end of the <em class="parameter"><code>list</code></em>.</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> :</span></p></td><td>the list widget.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>items</code></em> :</span></p></td><td>the items.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4549727"></a><h3><a name="gtk-list-prepend-items"></a>gtk_list_prepend_items ()</h3><a class="indexterm" name="id4549743"></a><pre class="programlisting">void gtk_list_prepend_items (<a class="link" href="GtkList.html" title="GtkList">GtkList</a> *list, <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList">GList</a> *items);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_list_prepend_items</code> is deprecated and should not be used in newly-written code.</p></div><p>Inserts <em class="parameter"><code>items</code></em> at the beginning of the <em class="parameter"><code>list</code></em>.</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> :</span></p></td><td>the list widget.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>items</code></em> :</span></p></td><td>the items.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4549836"></a><h3><a name="gtk-list-remove-items"></a>gtk_list_remove_items ()</h3><a class="indexterm" name="id4549852"></a><pre class="programlisting">void gtk_list_remove_items (<a class="link" href="GtkList.html" title="GtkList">GtkList</a> *list, <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList">GList</a> *items);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_list_remove_items</code> is deprecated and should not be used in newly-written code.</p></div><p>Removes the <em class="parameter"><code>items</code></em> from the <em class="parameter"><code>list</code></em>.</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> :</span></p></td><td>the list widget.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>items</code></em> :</span></p></td><td>the items to remove.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4549945"></a><h3><a name="gtk-list-remove-items-no-unref"></a>gtk_list_remove_items_no_unref ()</h3><a class="indexterm" name="id4549961"></a><pre class="programlisting">void gtk_list_remove_items_no_unref (<a class="link" href="GtkList.html" title="GtkList">GtkList</a> *list, <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList">GList</a> *items);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_list_remove_items_no_unref</code> is deprecated and should not be used in newly-written code.</p></div><p>Removes the <em class="parameter"><code>items</code></em> from the <em class="parameter"><code>list</code></em>, without unreferencing them. Itmay be useful if you want to move the items from one list to another.</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> :</span></p></td><td>the list widget.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>items</code></em> :</span></p></td><td>the items.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4550056"></a><h3><a name="gtk-list-clear-items"></a>gtk_list_clear_items ()</h3><a class="indexterm" name="id4550072"></a><pre class="programlisting">void gtk_list_clear_items (<a class="link" href="GtkList.html" title="GtkList">GtkList</a> *list, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> start, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> end);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_list_clear_items</code> is deprecated and should not be used in newly-written code.</p></div><p>Removes the items between index <em class="parameter"><code>start</code></em> (included) and <em class="parameter"><code>end</code></em> (excluded)from the <em class="parameter"><code>list</code></em>. If <em class="parameter"><code>end</code></em> is negative, or greater than the number ofchildren of <em class="parameter"><code>list</code></em>, it's assumed to be exactly the number ofelements. If <em class="parameter"><code>start</code></em> is greater than or equal to <em class="parameter"><code>end</code></em>, nothing isdone.</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> :</span></p></td><td>the list widget.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>start</code></em> :</span></p></td><td>the index of the first item to remove.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>end</code></em> :</span></p></td><td>the index of the lest item to remove plus one.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4550220"></a><h3><a name="gtk-list-select-item"></a>gtk_list_select_item ()</h3><a class="indexterm" name="id4550235"></a><pre class="programlisting">void gtk_list_select_item (<a class="link" href="GtkList.html" title="GtkList">GtkList</a> *list, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> item);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_list_select_item</code> is deprecated and should not be used in newly-written code.</p></div><p>Selects the child number <em class="parameter"><code>item</code></em> of the <em class="parameter"><code>list</code></em>. Nothing happens if <em class="parameter"><code>item</code></em>is out of bounds. The signal GtkList::select-child will be emitted.</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> :</span></p></td><td>the list widget.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td><td>the index of the child to select.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4550337"></a><h3><a name="gtk-list-unselect-item"></a>gtk_list_unselect_item ()</h3><a class="indexterm" name="id4550352"></a><pre class="programlisting">void gtk_list_unselect_item (<a class="link" href="GtkList.html" title="GtkList">GtkList</a> *list, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> item);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_list_unselect_item</code> is deprecated and should not be used in newly-written code.</p></div><p>Unselects the child number <em class="parameter"><code>item</code></em> of the <em class="parameter"><code>list</code></em>. Nothing happens if<em class="parameter"><code>item</code></em> is out of bounds. The signal GtkList::unselect-child will beemitted.</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> :</span></p></td><td>the list widget.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td><td>the index of the child to unselect.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4550454"></a><h3><a name="gtk-list-select-child"></a>gtk_list_select_child ()</h3><a class="indexterm" name="id4550469"></a><pre class="programlisting">void gtk_list_select_child (<a class="link" href="GtkList.html" title="GtkList">GtkList</a> *list, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_list_select_child</code> is deprecated and should not be used in newly-written code.</p></div><p>Selects the given <em class="parameter"><code>child</code></em>. The signal GtkList::select-child will beemitted.</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> :</span></p></td><td>the list widget</td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td><td>the child to select.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4550558"></a><h3><a name="gtk-list-unselect-child"></a>gtk_list_unselect_child ()</h3><a class="indexterm" name="id4550573"></a><pre class="programlisting">void gtk_list_unselect_child (<a class="link" href="GtkList.html" title="GtkList">GtkList</a> *list, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_list_unselect_child</code> is deprecated and should not be used in newly-written code.</p></div><p>Unselects the given <em class="parameter"><code>child</code></em>. The signal GtkList::unselect-child will beemitted.</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> :</span></p></td><td>the list widget.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td><td>the child to unselect.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -