Sophie

Sophie

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

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

<html>
<head><title>Gtk-- Reference: Gtk::Tree</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::Tree</h1><p>
<b>  A treelist widget.</b><br>
Contained in: <a href="Gtk.html">Gtk</a><br>
Derived from:
<a href="Gtk%3A%3AContainer.html">Gtk::Container</a>
<br>
Derived by:
<i>none</i>
<p>
#include &lt;gtk--/tree.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%3ATree.html#3202"><tt><font color=blue><b>Tree</b></font></tt></a></td><td><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%3ATree.html#3203"><tt><font color=blue><b>append</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3ATreeItem.html"><tt><font color=navy><b>TreeItem</b></font></tt></a>& <tt><font color=blue>widget</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>gint</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ATree.html#3212"><tt><font color=blue><b>child_position</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3ATreeItem.html"><tt><font color=navy><b>TreeItem</b></font></tt></a>& <tt><font color=blue>child</font></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%3ATree.html#3206"><tt><font color=blue><b>clear_items</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>start</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>end</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>guint</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ATree.html#3217"><tt><font color=blue><b>get_level</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>GtkTree</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3ATree.html#3196"><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>GtkTree</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3ATree.html#3197"><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><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ATree.html#3205"><tt><font color=blue><b>insert</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3ATreeItem.html"><tt><font color=navy><b>TreeItem</b></font></tt></a>& <tt><font color=blue>widget</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>position</font></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%3ATree.html#3198"><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>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ATree.html#3204"><tt><font color=blue><b>prepend</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3ATreeItem.html"><tt><font color=navy><b>TreeItem</b></font></tt></a>& <tt><font color=blue>widget</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%3ATree.html#3209"><tt><font color=blue><b>remove_item</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3ATreeItem.html"><tt><font color=navy><b>TreeItem</b></font></tt></a>& <tt><font color=blue>child</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>emitable</tt> <tt>signal</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ATree.html#3210"><tt><font color=blue><b>select_child</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3AWidget.html"><tt><font color=navy><b>Widget</b></font></tt></a>&)</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%3ATree.html#3207"><tt><font color=blue><b>select_item</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>item</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><a href="Gtk%3A%3ATree.html#3201">SelectionList</a>&</tt> </td><td align=right><a href="Gtk%3A%3ATree.html#3220"><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%3ATree.html#3201">SelectionList</a>&</tt> </td><td align=right><a href="Gtk%3A%3ATree.html#3221"><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>signal</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ATree.html#3216"><tt><font color=blue><b>selection_changed</b></font></tt></a></td><td><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%3ATree.html#3213"><tt><font color=blue><b>set_selection_mode</b></font></tt></a></td><td><tt>(<tt><font color=navy>GtkSelectionMode</font></tt> <tt><font color=blue>mode</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%3ATree.html#3215"><tt><font color=blue><b>set_view_lines</b></font></tt></a></td><td><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>flag</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%3ATree.html#3214"><tt><font color=blue><b>set_view_mode</b></font></tt></a></td><td><tt>(<tt><font color=navy>GtkTreeViewMode</font></tt> <tt><font color=blue>mode</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><a href="Gtk%3A%3ATree.html#3200">ItemList</a>&</tt> </td><td align=right><a href="Gtk%3A%3ATree.html#3218"><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%3ATree.html#3200">ItemList</a>&</tt> </td><td align=right><a href="Gtk%3A%3ATree.html#3219"><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>emitable</tt> <tt>signal</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ATree.html#3211"><tt><font color=blue><b>unselect_child</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3AWidget.html"><tt><font color=navy><b>Widget</b></font></tt></a>&)</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%3ATree.html#3208"><tt><font color=blue><b>unselect_item</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>item</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="Gtk%3A%3ATree.html#3199"><tt><font color=blue><b>~Tree</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%3ATree.html#3222"><tt><font color=blue><b>select_child_impl</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3AWidget.html"><tt><font color=navy><b>Widget</b></font></tt></a>& <tt><font color=blue>p0</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%3ATree.html#3224"><tt><font color=blue><b>selection_changed_impl</b></font></tt></a></td><td><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%3ATree.html#3223"><tt><font color=blue><b>unselect_child_impl</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3AWidget.html"><tt><font color=navy><b>Widget</b></font></tt></a>& <tt><font color=blue>p0</font></tt>)</tt>;</td>
<tr><td>&nbsp;</td></table>
<hr noshade>
<h2>Description:</h2>
  The <tt><font color=navy><b>Gtk::Tree</b></font></tt> widget is a container that shows users a list of items,
  in a tree  complete with branches and leafnodes. Branches can be expanded
  to show their child items, or collapsed to hide them.<br>
<p>
<hr noshade>
<h2>Function Member Descriptions:</h2>
<a name="3203"><font size=+1><b>Gtk::Tree::append</b></font></a> -   deprecated - use tree().push_back(w);<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ATree.html#3203"><tt><font color=blue><b>append</b></font></tt></a><tt>(<a href="Gtk%3A%3ATreeItem.html"><tt><font color=navy><b>TreeItem</b></font></tt></a>& <tt><font color=blue>widget</font></tt>)</tt>;<br><br>
<a name="3206"><font size=+1><b>Gtk::Tree::clear_items</b></font></a> -   deprecated - use tree().erase(start,end);<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ATree.html#3206"><tt><font color=blue><b>clear_items</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>start</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>end</font></tt>)</tt>;<br><br>
<a name="3196"><font size=+1><b>Gtk::Tree::gtkobj</b></font></a> -   Returns the underlaying gtk+ object.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>GtkTree</font></tt>*</tt> <a href="Gtk%3A%3ATree.html#3196"><tt><font color=blue><b>gtkobj</b></font></tt></a><tt>()</tt>;<br><br>
<a name="3205"><font size=+1><b>Gtk::Tree::insert</b></font></a> -   deprecated - use tree().insert(loc,w);<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ATree.html#3205"><tt><font color=blue><b>insert</b></font></tt></a><tt>(<a href="Gtk%3A%3ATreeItem.html"><tt><font color=navy><b>TreeItem</b></font></tt></a>& <tt><font color=blue>widget</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>position</font></tt>)</tt>;<br><br>
<a name="3198"><font size=+1><b>Gtk::Tree::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%3ATree.html#3198"><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="3204"><font size=+1><b>Gtk::Tree::prepend</b></font></a> -   deprecated - use tree().push_front(w);<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ATree.html#3204"><tt><font color=blue><b>prepend</b></font></tt></a><tt>(<a href="Gtk%3A%3ATreeItem.html"><tt><font color=navy><b>TreeItem</b></font></tt></a>& <tt><font color=blue>widget</font></tt>)</tt>;<br><br>
<a name="3209"><font size=+1><b>Gtk::Tree::remove_item</b></font></a> -   deprecated use tree().remove(w);<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ATree.html#3209"><tt><font color=blue><b>remove_item</b></font></tt></a><tt>(<a href="Gtk%3A%3ATreeItem.html"><tt><font color=navy><b>TreeItem</b></font></tt></a>& <tt><font color=blue>child</font></tt>)</tt>;<br><br>
<a name="3207"><font size=+1><b>Gtk::Tree::select_item</b></font></a> -   select item by number.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ATree.html#3207"><tt><font color=blue><b>select_item</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>item</font></tt>)</tt>;<br><blockquote>  equivelent to tree()[itemnum]-&gt;select();</blockquote>
<br><br>
<a name="3208"><font size=+1><b>Gtk::Tree::unselect_item</b></font></a> -   equivelent to tree()[itemnum]-&gt;unselect();<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ATree.html#3208"><tt><font color=blue><b>unselect_item</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>item</font></tt>)</tt>;<br><br>
<hr noshade>
</html>