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

📄 gtkliststore.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>list_store</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkListStore.html" title="GtkListStore"><span class="type">GtkListStore</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></p></td><td> An unset <a class="link" href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a> to set to the prepend row</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3851214"></a><h3><a name="gtk-list-store-append"></a>gtk_list_store_append ()</h3><a class="indexterm" name="id3851228"></a><pre class="programlisting">void                gtk_list_store_append               (<a class="link" href="GtkListStore.html" title="GtkListStore">GtkListStore</a> *list_store,                                                         <a class="link" href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter);</pre><p>Appends a new row to <em class="parameter"><code>list_store</code></em>.  <em class="parameter"><code>iter</code></em> will be changed to point to this newrow.  The row will be empty after this function is called.  To fill invalues, you need to call <a class="link" href="GtkListStore.html#gtk-list-store-set"><code class="function">gtk_list_store_set()</code></a> or <a class="link" href="GtkListStore.html#gtk-list-store-set-value"><code class="function">gtk_list_store_set_value()</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>list_store</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkListStore.html" title="GtkListStore"><span class="type">GtkListStore</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></p></td><td> An unset <a class="link" href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a> to set to the appended row</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3851352"></a><h3><a name="gtk-list-store-clear"></a>gtk_list_store_clear ()</h3><a class="indexterm" name="id3851364"></a><pre class="programlisting">void                gtk_list_store_clear                (<a class="link" href="GtkListStore.html" title="GtkListStore">GtkListStore</a> *list_store);</pre><p>Removes all rows from the list store.</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>list_store</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkListStore.html" title="GtkListStore"><span class="type">GtkListStore</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3851423"></a><h3><a name="gtk-list-store-iter-is-valid"></a>gtk_list_store_iter_is_valid ()</h3><a class="indexterm" name="id3851439"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_list_store_iter_is_valid        (<a class="link" href="GtkListStore.html" title="GtkListStore">GtkListStore</a> *list_store,                                                         <a class="link" href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter);</pre><p></p><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3>This function is slow. Only use it for debugging and/or testingpurposes.</div><p></p><p>Checks if the given iter is a valid iter for this <a class="link" href="GtkListStore.html" title="GtkListStore"><span class="type">GtkListStore</span></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>list_store</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkListStore.html" title="GtkListStore"><span class="type">GtkListStore</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</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 iter is valid, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if the iter is invalid.</td></tr></tbody></table></div><p class="since">Since  2.2</p></div><hr><div class="refsect2" lang="en"><a name="id3851581"></a><h3><a name="gtk-list-store-reorder"></a>gtk_list_store_reorder ()</h3><a class="indexterm" name="id3851596"></a><pre class="programlisting">void                gtk_list_store_reorder              (<a class="link" href="GtkListStore.html" title="GtkListStore">GtkListStore</a> *store,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> *new_order);</pre><p>Reorders <em class="parameter"><code>store</code></em> to follow the order indicated by <em class="parameter"><code>new_order</code></em>. Note thatthis function only works with unsorted stores.</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>store</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkListStore.html" title="GtkListStore"><span class="type">GtkListStore</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>new_order</code></em>&#160;:</span></p></td><td> an array of integers mapping the new position of each child     to its old position before the re-ordering,     i.e. <em class="parameter"><code>new_order</code></em><code class="literal">[newpos] = oldpos</code>.</td></tr></tbody></table></div><p class="since">Since  2.2</p></div><hr><div class="refsect2" lang="en"><a name="id3851709"></a><h3><a name="gtk-list-store-swap"></a>gtk_list_store_swap ()</h3><a class="indexterm" name="id3851724"></a><pre class="programlisting">void                gtk_list_store_swap                 (<a class="link" href="GtkListStore.html" title="GtkListStore">GtkListStore</a> *store,                                                         <a class="link" href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *a,                                                         <a class="link" href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *b);</pre><p>Swaps <em class="parameter"><code>a</code></em> and <em class="parameter"><code>b</code></em> in <em class="parameter"><code>store</code></em>. Note that this function only works withunsorted stores.</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>store</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkListStore.html" title="GtkListStore"><span class="type">GtkListStore</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>a</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>b</code></em>&#160;:</span></p></td><td> Another <a class="link" href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>.</td></tr></tbody></table></div><p class="since">Since  2.2</p></div><hr><div class="refsect2" lang="en"><a name="id3851865"></a><h3><a name="gtk-list-store-move-before"></a>gtk_list_store_move_before ()</h3><a class="indexterm" name="id3851881"></a><pre class="programlisting">void                gtk_list_store_move_before          (<a class="link" href="GtkListStore.html" title="GtkListStore">GtkListStore</a> *store,                                                         <a class="link" href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,                                                         <a class="link" href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *position);</pre><p>Moves <em class="parameter"><code>iter</code></em> in <em class="parameter"><code>store</code></em> to the position before <em class="parameter"><code>position</code></em>. Note that thisfunction only works with unsorted stores. If <em class="parameter"><code>position</code></em> is <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, <em class="parameter"><code>iter</code></em>will be moved to the end of the 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>store</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkListStore.html" title="GtkListStore"><span class="type">GtkListStore</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>position</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td></tr></tbody></table></div><p class="since">Since  2.2</p></div><hr><div class="refsect2" lang="en"><a name="id3852056"></a><h3><a name="gtk-list-store-move-after"></a>gtk_list_store_move_after ()</h3><a class="indexterm" name="id3852072"></a><pre class="programlisting">void                gtk_list_store_move_after           (<a class="link" href="GtkListStore.html" title="GtkListStore">GtkListStore</a> *store,                                                         <a class="link" href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,                                                         <a class="link" href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *position);</pre><p>Moves <em class="parameter"><code>iter</code></em> in <em class="parameter"><code>store</code></em> to the position after <em class="parameter"><code>position</code></em>. Note that thisfunction only works with unsorted stores. If <em class="parameter"><code>position</code></em> is <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, <em class="parameter"><code>iter</code></em>will be moved to the start of the 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"><co

⌨️ 快捷键说明

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