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

📄 gtktreemodel.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</div><hr><div class="refsect2" lang="en"><a name="id3675481"></a><h3><a name="gtk-tree-path-append-index"></a>gtk_tree_path_append_index ()</h3><a class="indexterm" name="id3675494"></a><pre class="programlisting">void                gtk_tree_path_append_index          (<a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> index_);</pre><p>Appends a new index to a path.  As a result, the depth of the path isincreased.</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>path</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>index_</code></em>&#160;:</span></p></td><td> The index.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3675574"></a><h3><a name="gtk-tree-path-prepend-index"></a>gtk_tree_path_prepend_index ()</h3><a class="indexterm" name="id3675588"></a><pre class="programlisting">void                gtk_tree_path_prepend_index         (<a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> index_);</pre><p>Prepends a new index to a path.  As a result, the depth of the path isincreased.</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>path</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>index_</code></em>&#160;:</span></p></td><td> The index.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3675668"></a><h3><a name="gtk-tree-path-get-depth"></a>gtk_tree_path_get_depth ()</h3><a class="indexterm" name="id3675681"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                gtk_tree_path_get_depth             (<a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path);</pre><p>Returns the current depth of <em class="parameter"><code>path</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>path</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> The depth of <em class="parameter"><code>path</code></em></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3675761"></a><h3><a name="gtk-tree-path-get-indices"></a>gtk_tree_path_get_indices ()</h3><a class="indexterm" name="id3675775"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>*               gtk_tree_path_get_indices           (<a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path);</pre><p>Returns the current indices of <em class="parameter"><code>path</code></em>.  This is an array of integers, eachrepresenting a node in a tree.  This value should not be freed.</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>path</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> The current indices, 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="id3675860"></a><h3><a name="gtk-tree-path-free"></a>gtk_tree_path_free ()</h3><a class="indexterm" name="id3675874"></a><pre class="programlisting">void                gtk_tree_path_free                  (<a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path);</pre><p>Frees <em class="parameter"><code>path</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>path</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3675936"></a><h3><a name="gtk-tree-path-copy"></a>gtk_tree_path_copy ()</h3><a class="indexterm" name="id3675949"></a><pre class="programlisting"><a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a>*        gtk_tree_path_copy                  (const <a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path);</pre><p>Creates a new <a class="link" href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a> as a copy of <em class="parameter"><code>path</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>path</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> A new <a class="link" href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3676038"></a><h3><a name="gtk-tree-path-compare"></a>gtk_tree_path_compare ()</h3><a class="indexterm" name="id3676052"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                gtk_tree_path_compare               (const <a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *a,                                                         const <a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *b);</pre><p>Compares two paths.  If <em class="parameter"><code>a</code></em> appears before <em class="parameter"><code>b</code></em> in a tree, then -1 is returned.If <em class="parameter"><code>b</code></em> appears before <em class="parameter"><code>a</code></em>, then 1 is returned.  If the two nodes are equal,then 0 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>a</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>b</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a> to compare with.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> The relative positions of <em class="parameter"><code>a</code></em> and <em class="parameter"><code>b</code></em></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3676185"></a><h3><a name="gtk-tree-path-next"></a>gtk_tree_path_next ()</h3><a class="indexterm" name="id3676198"></a><pre class="programlisting">void                gtk_tree_path_next                  (<a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path);</pre><p>Moves the <em class="parameter"><code>path</code></em> to point to the next node at the current depth.</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>path</code></em>&#160;:</span></p></td><td> A <a class="link" href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3676262"></a><h3><a name="gtk-tree-path-prev"></a>gtk_tree_path_prev ()</h3><a class="indexterm" name="id3676275"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_tree_path_prev                  (<a class="link" href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path);</pre><p>Moves the <em class="parameter"><code>path</code></em> to point to the previous node at the current depth, if i

⌨️ 快捷键说明

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