Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > ca81b57b553ae75608ba0fc5e7925e4e > files > 305

libgtkmm1.2-devel-1.2.10-1mdk.ppc.rpm

<html>
<head><title>Gtk-- Reference: Gtk::CTree</title></head>

<body bgcolor="#F0F0F0" text="#000000" link="#0000FF"
vlink="#000077" alink="#FF0000">
<table align=center border=0 cellspacing=10> <tr>
<td><a href="class_index.html">Class Index</a></td>
<td><a href="cross_index.html">Cross Index</a></td>
<td><a href="name_index.html">Namespace Index</a></td>
</table>
<h1 align=center>Class Gtk::CTree</h1><p>
<b>  A widget displaying a hierarchical tree.</b><br>
Contained in: <a href="Gtk.html">Gtk</a><br>
Derived from:
<a href="Gtk%3A%3ACList.html">Gtk::CList</a>
<br>
Derived by:
<i>none</i>
<p>
#include &lt;gtk--/ctree.h&gt;
<p>
<hr noshade>
<table border=0>
<tr><td colspan=3><h3>public function member index:</h3></td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1312"><tt><font color=blue><b>CTree</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="Gtk%3A%3ASArray.html"><tt><font color=navy><b>SArray</b></font></tt></a>& <tt><font color=blue>titles</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>tree_column</font></tt>=0)</tt>;</td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1313"><tt><font color=blue><b>CTree</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>columns</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>tree_column</font></tt>=0)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>GtkCTree</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1303"><tt><font color=blue><b>gtkobj</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>const</tt> <tt><font color=navy>GtkCTree</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1304"><tt><font color=blue><b>gtkobj</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt>static</tt> <tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1305"><tt><font color=blue><b>isA</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3AObject.html"><tt><font color=navy><b>Object</b></font></tt></a>* <tt><font color=blue>object</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1314"><tt><font color=blue><b>is_hot_spot</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>x</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>y</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><a href="Gtk%3A%3ACTree.html#1309">Row</a></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1332"><tt><font color=blue><b>row</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>i</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>const</tt> <a href="Gtk%3A%3ACTree.html#1309">Row</a></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1333"><tt><font color=blue><b>row</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>i</font></tt>) <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><a href="Gtk%3A%3ACTree.html#1310">RowList</a></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1330"><tt><font color=blue><b>rows</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>const</tt> <a href="Gtk%3A%3ACTree.html#1310">RowList</a></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1331"><tt><font color=blue><b>rows</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><a href="Gtk%3A%3ACTree_Helpers%3A%3ASelectionList.html"><tt><font color=navy><b>SelectionList</b></font></tt></a>&</tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1334"><tt><font color=blue><b>selection</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>const</tt> <a href="Gtk%3A%3ACTree_Helpers%3A%3ASelectionList.html"><tt><font color=navy><b>SelectionList</b></font></tt></a>&</tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1335"><tt><font color=blue><b>selection</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1323"><tt><font color=blue><b>set_drag_compare_func</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3ACTree.html#1320">CompareDragFunc</a> <tt><font color=blue>p0</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1322"><tt><font color=blue><b>set_expander_style</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3ACTree.html#1319">ExpanderStyle</a> <tt><font color=blue>style</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1315"><tt><font color=blue><b>set_indent</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>indent</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1321"><tt><font color=blue><b>set_line_style</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3ACTree.html#1318">LineStyle</a> <tt><font color=blue>style</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1317"><tt><font color=blue><b>set_show_stub</b></font></tt></a></td><td><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>show_stub</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1316"><tt><font color=blue><b>set_spacing</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>spacing</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><a href="Gtk%3A%3ACTree.html#1311">TreeList</a></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1328"><tt><font color=blue><b>tree</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>const</tt> <a href="Gtk%3A%3ACTree.html#1311">TreeList</a></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1329"><tt><font color=blue><b>tree</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt>signal</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1327"><tt><font color=blue><b>tree_collapse</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3ACTree.html#1309">Row</a>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>signal</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1326"><tt><font color=blue><b>tree_expand</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3ACTree.html#1309">Row</a>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>signal</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1324"><tt><font color=blue><b>tree_select_row</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3ACTree.html#1309">Row</a>, <tt><font color=purple>gint</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>signal</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1325"><tt><font color=blue><b>tree_unselect_row</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3ACTree.html#1309">Row</a>, <tt><font color=purple>gint</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1306"><tt><font color=blue><b>~CTree</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr><td>&nbsp;</td><tr><td colspan=3><h3>protected function member index:</h3></td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1339"><tt><font color=blue><b>tree_collapse_impl</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3ACTree.html#1309">Row</a> <tt><font color=blue>row</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1338"><tt><font color=blue><b>tree_expand_impl</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3ACTree.html#1309">Row</a> <tt><font color=blue>row</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1336"><tt><font color=blue><b>tree_select_row_impl</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3ACTree.html#1309">Row</a> <tt><font color=blue>row</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>column</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ACTree.html#1337"><tt><font color=blue><b>tree_unselect_row_impl</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3ACTree.html#1309">Row</a> <tt><font color=blue>row</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>column</font></tt>)</tt>;</td>
<tr><td>&nbsp;</td></table>
<hr noshade>
<h2>Description:</h2>
  The <tt><font color=navy><b>Gtk::CTree</b></font></tt> widget is used for showing a hierarchical tree to the user, for example a directory tree.
<P>
  The tree is internally represented as a set of <tt><tt><font color=blue>GtkCTreeNode</font></tt></tt> structures.
<P>
  The interface has much in common with the <tt><font color=navy><b>Gtk::CList</b></font></tt> widget: rows (nodes) can be selected by
  the user etc.
<P>
  Positions in the tree are often indicated by two arguments, a parent and a sibling, both
  <tt><tt><font color=blue>GtkCTreeNode</font></tt></tt> pointers. If the parent is NULL, the position is at the root of the tree and if
  the sibling is NULL, it will be the last child of parent, otherwise it will be inserted just before the
  sibling.<br>
<p>
<hr noshade>
<h2>Function Member Descriptions:</h2>
<a name="1312"><font size=+1><b>Gtk::CTree::CTree</b></font></a> -   Create tree with titles.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt></tt> <a href="Gtk%3A%3ACTree.html#1312"><tt><font color=blue><b>CTree</b></font></tt></a><tt>(<tt>const</tt> <a href="Gtk%3A%3ASArray.html"><tt><font color=navy><b>SArray</b></font></tt></a>& <tt><font color=blue>titles</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>tree_column</font></tt>=0)</tt>;<br><br>
<a name="1313"><font size=+1><b>Gtk::CTree::CTree</b></font></a> -   Create tree without titles.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt></tt> <a href="Gtk%3A%3ACTree.html#1313"><tt><font color=blue><b>CTree</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>columns</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>tree_column</font></tt>=0)</tt>;<br><br>
<a name="1303"><font size=+1><b>Gtk::CTree::gtkobj</b></font></a> -   Returns the underlaying gtk+ object.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>GtkCTree</font></tt>*</tt> <a href="Gtk%3A%3ACTree.html#1303"><tt><font color=blue><b>gtkobj</b></font></tt></a><tt>()</tt>;<br><br>
<a name="1305"><font size=+1><b>Gtk::CTree::isA</b></font></a> -   Returns true if object is this type.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt>static</tt> <tt><font color=purple>bool</font></tt></tt> <a href="Gtk%3A%3ACTree.html#1305"><tt><font color=blue><b>isA</b></font></tt></a><tt>(<a href="Gtk%3A%3AObject.html"><tt><font color=navy><b>Object</b></font></tt></a>* <tt><font color=blue>object</font></tt>)</tt>;<br><br>
<a name="1314"><font size=+1><b>Gtk::CTree::is_hot_spot</b></font></a> -   Used to determine if a particular coordinat lies on an expander button.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>bool</font></tt></tt> <a href="Gtk%3A%3ACTree.html#1314"><tt><font color=blue><b>is_hot_spot</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>x</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>y</font></tt>)</tt>;<br><blockquote>  x, y: The coordinates to check.
  Returns: True if the given coordinates lie on an expander button.</blockquote>
<br><br>
<a name="1315"><font size=+1><b>Gtk::CTree::set_indent</b></font></a> -   Set the amount of indentation between levels in the tree.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ACTree.html#1315"><tt><font color=blue><b>set_indent</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>indent</font></tt>)</tt>;<br><blockquote>  indent: The number of pixels to  the levels of the tree.</blockquote>
<br><br>
<a name="1316"><font size=+1><b>Gtk::CTree::set_spacing</b></font></a> -   Set the spacing between the tree graphic and the actual node content.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ACTree.html#1316"><tt><font color=blue><b>set_spacing</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>spacing</font></tt>)</tt>;<br><blockquote>  spacing: The number of pixels between the tree and the node's content.</blockquote>
<br><br>
<hr noshade>
</html>