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

📄 gtktreemodelsort.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<hr><div class="refsect2" lang="en"><a name="id3806603"></a><h3><a name="gtk-tree-model-sort-convert-path-to-child-path"></a>gtk_tree_model_sort_convert_path_to_child_path ()</h3><a class="indexterm" name="id3806618"></a><pre class="programlisting"><a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a>*        gtk_tree_model_sort_convert_path_to_child_path                                                        (<a class="link" href="GtkTreeModelSort.html" title="GtkTreeModelSort">GtkTreeModelSort</a> *tree_model_sort,                                                         <a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *sorted_path);</pre><p>Converts <em class="parameter"><code>sorted_path</code></em> to a path on the child model of <em class="parameter"><code>tree_model_sort</code></em>.  That is, <em class="parameter"><code>sorted_path</code></em> points to a location in <em class="parameter"><code>tree_model_sort</code></em>.  The returned path will point to the same location in the model not being sorted.  If <em class="parameter"><code>sorted_path</code></em> does not point to a location in the child model, <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.</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>tree_model_sort</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModelSort.html" title="GtkTreeModelSort"><span class="type">GtkTreeModelSort</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>sorted_path</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a> to convert</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> A newly allocated <a class="link" href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</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></div><hr><div class="refsect2" lang="en"><a name="id3806779"></a><h3><a name="gtk-tree-model-sort-convert-iter-to-child-iter"></a>gtk_tree_model_sort_convert_iter_to_child_iter ()</h3><a class="indexterm" name="id3806794"></a><pre class="programlisting">void                gtk_tree_model_sort_convert_iter_to_child_iter                                                        (<a class="link" href="GtkTreeModelSort.html" title="GtkTreeModelSort">GtkTreeModelSort</a> *tree_model_sort,                                                         <a class="link" href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *child_iter,                                                         <a class="link" href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *sorted_iter);</pre><p>Sets <em class="parameter"><code>child_iter</code></em> to point to the row pointed to by <em class="parameter"><code>sorted_iter</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>tree_model_sort</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModelSort.html" title="GtkTreeModelSort"><span class="type">GtkTreeModelSort</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>child_iter</code></em>&#160;:</span></p></td><td> An uninitialized <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>sorted_iter</code></em>&#160;:</span></p></td><td> A valid <a class="link" href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a> pointing to a row on <em class="parameter"><code>tree_model_sort</code></em>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3806932"></a><h3><a name="gtk-tree-model-sort-reset-default-sort-func"></a>gtk_tree_model_sort_reset_default_sort_func ()</h3><a class="indexterm" name="id3806946"></a><pre class="programlisting">void                gtk_tree_model_sort_reset_default_sort_func                                                        (<a class="link" href="GtkTreeModelSort.html" title="GtkTreeModelSort">GtkTreeModelSort</a> *tree_model_sort);</pre><p>This resets the default sort function to be in the 'unsorted' state.  Thatis, it is in the same order as the child model. It will re-sort the modelto be in the same order as the child model only if the <a class="link" href="GtkTreeModelSort.html" title="GtkTreeModelSort"><span class="type">GtkTreeModelSort</span></a>is in 'unsorted' state.</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>tree_model_sort</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModelSort.html" title="GtkTreeModelSort"><span class="type">GtkTreeModelSort</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3807017"></a><h3><a name="gtk-tree-model-sort-clear-cache"></a>gtk_tree_model_sort_clear_cache ()</h3><a class="indexterm" name="id3807031"></a><pre class="programlisting">void                gtk_tree_model_sort_clear_cache     (<a class="link" href="GtkTreeModelSort.html" title="GtkTreeModelSort">GtkTreeModelSort</a> *tree_model_sort);</pre><p>This function should almost never be called.  It clears the <em class="parameter"><code>tree_model_sort</code></em>of any cached iterators that haven't been reffed with<a class="link" href="GtkTreeModel.html#gtk-tree-model-ref-node"><code class="function">gtk_tree_model_ref_node()</code></a>.  This might be useful if the child model beingsorted is static (and doesn't change often) and there has been a lot ofunreffed access to nodes.  As a side effect of this function, all unreffediters will be invalid.</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>tree_model_sort</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModelSort.html" title="GtkTreeModelSort"><span class="type">GtkTreeModelSort</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3807112"></a><h3><a name="gtk-tree-model-sort-iter-is-valid"></a>gtk_tree_model_sort_iter_is_valid ()</h3><a class="indexterm" name="id3807128"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_tree_model_sort_iter_is_valid   (<a class="link" href="GtkTreeModelSort.html" title="GtkTreeModelSort">GtkTreeModelSort</a> *tree_model_sort,                                                         <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><p>This function is slow. Only use it for debugging and/or testing purposes.</p></div><p></p><p>Checks if the given iter is a valid iter for this <a class="link" href="GtkTreeModelSort.html" title="GtkTreeModelSort"><span class="type">GtkTreeModelSort</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>tree_model_sort</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModelSort.html" title="GtkTreeModelSort"><span class="type">GtkTreeModelSort</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></div><div class="refsect1" lang="en"><a name="id3807272"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id3807282"></a><h3><a name="GtkTreeModelSort--model"></a>The <code class="literal">"model"</code> property</h3><a class="indexterm" name="id3807299"></a><pre class="programlisting">  "model"                    <a class="link" href="GtkTreeModel.html" title="GtkTreeModel">GtkTreeModel</a>          : Read / Write / Construct Only</pre><p>The model for the TreeModelSort to sort.</p></div></div><div class="refsect1" lang="en"><a name="id3807324"></a><h2>See Also</h2><p><a class="link" href="GtkTreeModel.html" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a>, <a class="link" href="GtkListStore.html" title="GtkListStore"><span class="type">GtkListStore</span></a>, <a class="link" href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>, <a class="link" href="GtkTreeSortable.html" title="GtkTreeSortable"><span class="type">GtkTreeSortable</span></a>, <a class="link" href="GtkTreeModelFilter.html" title="GtkTreeModelFilter"><span class="type">GtkTreeModelFilter</span></a></p></div><div class="refsect1" lang="en"><a name="id3807375"></a><div class="refsect2" lang="en"><a name="id3807376"></a></div><hr><div class="refsect2" lang="en"><a name="id3807377"></a></div></div></div></body></html>

⌨️ 快捷键说明

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