29
32
<div class="contents">
30
<h1>Gtk::TreeRow Class Reference<br>
33
<h1>Gtk::TreeRow Class Reference<br/>
32
35
[<a class="el" href="group__TreeView.html">TreeView Classes</a>]</small>
33
</h1><!-- doxytag: class="Gtk::TreeRow" --><!-- doxytag: inherits="Gtk::TreeIter" -->Typedefed as <a class="el" href="classGtk_1_1TreeModel.html#297c9db68905e82fe7c3fac57f6c4de8">TreeModel::Row</a>. <a href="#_details">More...</a>
35
Inherits <a class="el" href="classGtk_1_1TreeIter.html">Gtk::TreeIter</a>.
36
</h1><!-- doxytag: class="Gtk::TreeRow" --><!-- doxytag: inherits="Gtk::TreeIter" -->
37
<p>Typedefed as <a class="el" href="classGtk_1_1TreeModel.html#a297c9db68905e82fe7c3fac57f6c4de8">TreeModel::Row</a>. <a href="#_details">More...</a></p>
39
<p>Inherits <a class="el" href="classGtk_1_1TreeIter.html">Gtk::TreeIter</a>.</p>
37
40
<div class="dynheader">
38
41
Collaboration diagram for Gtk::TreeRow:</div>
39
42
<div class="dynsection">
40
<p><center><img src="classGtk_1_1TreeRow__coll__graph.png" border="0" usemap="#Gtk_1_1TreeRow__coll__map" alt="Collaboration graph"></center>
41
<map name="Gtk_1_1TreeRow__coll__map">
42
<area shape="rect" href="classGtk_1_1TreeIter.html" title="A Gtk::TreeModel::iterator is a reference to a specific node on a specific model..." alt="" coords="20,80,113,107"><area shape="rect" href="classGtk_1_1TreeIterBase.html" title="Gtk::TreeIterBase" alt="" coords="5,5,128,32"></map>
43
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
46
<a href="classGtk_1_1TreeRow-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
48
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
49
<tr><td class="memTemplParams" nowrap colspan="2">template<class ColumnType > </td></tr>
50
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top"><a class="el" href="classGtk_1_1TreeValueProxy.html">TreeValueProxy</a>< ColumnType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#d1880375e2c3b45a6ba69b225dd7f6a4">operator[]</a> (const <a class="el" href="classGtk_1_1TreeModelColumn.html">TreeModelColumn</a>< ColumnType >& column) const </td></tr>
52
<tr><td class="mdescLeft"> </td><td class="mdescRight">Use this to set and get the value of this <em>column</em> of this row. <a href="#d1880375e2c3b45a6ba69b225dd7f6a4"></a><br></td></tr>
53
<tr><td class="memTemplParams" nowrap colspan="2">template<class ColumnType > </td></tr>
54
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#e25785fc6de538f6dd632bb434a5f2ff">set_value</a> (const <a class="el" href="classGtk_1_1TreeModelColumn.html">TreeModelColumn</a>< ColumnType >& column, const ColumnType& data) const </td></tr>
56
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the value of this <em>column</em> of this row. <a href="#e25785fc6de538f6dd632bb434a5f2ff"></a><br></td></tr>
57
<tr><td class="memTemplParams" nowrap colspan="2">template<class ColumnType > </td></tr>
58
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#bc6ffaec37d8bde03d94c39218390065">set_value</a> (int column, const ColumnType& data) const </td></tr>
60
<tr><td class="mdescLeft"> </td><td class="mdescRight">Use set_value(const TreeModelColumn<>& column, const ColumnType& data) unless you do not know the column type at compile-time. <a href="#bc6ffaec37d8bde03d94c39218390065"></a><br></td></tr>
61
<tr><td class="memTemplParams" nowrap colspan="2">template<class ColumnType > </td></tr>
62
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">ColumnType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#193b7d490eed8f7e25aa70d73d746f6a">get_value</a> (const <a class="el" href="classGtk_1_1TreeModelColumn.html">TreeModelColumn</a>< ColumnType >& column) const </td></tr>
64
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the value of this <em>column</em> of this row. <a href="#193b7d490eed8f7e25aa70d73d746f6a"></a><br></td></tr>
65
<tr><td class="memTemplParams" nowrap colspan="2">template<class ColumnType > </td></tr>
66
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#9b1db0af89cc50bb0b16a1daf8d5c5e1">get_value</a> (int column, ColumnType& data) const </td></tr>
68
<tr><td class="mdescLeft"> </td><td class="mdescRight">Use get_value(const TreeModelColumn<>& column) unless you do not know the column type at compile-time. <a href="#9b1db0af89cc50bb0b16a1daf8d5c5e1"></a><br></td></tr>
69
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classGtk_1_1TreeNodeChildren.html">TreeNodeChildren</a>& </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#334dc0b2d96c219e24de467d3fcbd091">children</a> () const </td></tr>
71
<tr><td class="mdescLeft"> </td><td class="mdescRight">This returns an STL-like container API, for iterating over the rows. <a href="#334dc0b2d96c219e24de467d3fcbd091"></a><br></td></tr>
72
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGtk_1_1TreeIter.html">TreeIter</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#9d55079617fc05a849af189b657e7679">parent</a> () const </td></tr>
74
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets an iterator to the parent row of this row. <a href="#9d55079617fc05a849af189b657e7679"></a><br></td></tr>
75
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#256d9c1def321f1968c2f01299781e14">operator bool</a> () const </td></tr>
77
<tr><td class="mdescLeft"> </td><td class="mdescRight">Discover whether this is a valid row. <a href="#256d9c1def321f1968c2f01299781e14"></a><br></td></tr>
78
<tr><td class="memItemLeft" nowrap align="right" valign="top">GtkTreeIter* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#70f407de60552e0270ed73471ad07cd1">gobj</a> ()</td></tr>
80
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#70f407de60552e0270ed73471ad07cd1"></a><br></td></tr>
81
<tr><td class="memItemLeft" nowrap align="right" valign="top">const GtkTreeIter* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#abd78b5aa80816c10b49d51f797ce7b7">gobj</a> () const </td></tr>
83
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#abd78b5aa80816c10b49d51f797ce7b7"></a><br></td></tr>
43
<div class="center"><img src="classGtk_1_1TreeRow__coll__graph.png" border="0" usemap="#Gtk_1_1TreeRow_coll__map" alt="Collaboration graph"/></div>
44
<map name="Gtk_1_1TreeRow_coll__map" id="Gtk_1_1TreeRow_coll__map">
45
<area shape="rect" href="classGtk_1_1TreeIter.html" title="A Gtk::TreeModel::iterator is a reference to a specific node on a specific model..." alt="" coords="20,80,113,107"/><area shape="rect" href="classGtk_1_1TreeIterBase.html" title="Gtk::TreeIterBase" alt="" coords="5,5,128,32"/></map>
46
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
48
<p><a href="classGtk_1_1TreeRow-members.html">List of all members.</a></p>
49
<table border="0" cellpadding="0" cellspacing="0">
50
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
51
<tr><td class="memTemplParams" colspan="2">template<class ColumnType > </td></tr>
52
<tr><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1TreeValueProxy.html">TreeValueProxy</a>< ColumnType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#ad1880375e2c3b45a6ba69b225dd7f6a4">operator[]</a> (const <a class="el" href="classGtk_1_1TreeModelColumn.html">TreeModelColumn</a>< ColumnType >& column) const </td></tr>
53
<tr><td class="mdescLeft"> </td><td class="mdescRight">Use this to set and get the value of this <em>column</em> of this row. <a href="#ad1880375e2c3b45a6ba69b225dd7f6a4"></a><br/></td></tr>
54
<tr><td class="memTemplParams" colspan="2">template<class ColumnType > </td></tr>
55
<tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#ae25785fc6de538f6dd632bb434a5f2ff">set_value</a> (const <a class="el" href="classGtk_1_1TreeModelColumn.html">TreeModelColumn</a>< ColumnType >& column, const ColumnType& data) const </td></tr>
56
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the value of this <em>column</em> of this row. <a href="#ae25785fc6de538f6dd632bb434a5f2ff"></a><br/></td></tr>
57
<tr><td class="memTemplParams" colspan="2">template<class ColumnType > </td></tr>
58
<tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#abc6ffaec37d8bde03d94c39218390065">set_value</a> (int column, const ColumnType& data) const </td></tr>
59
<tr><td class="mdescLeft"> </td><td class="mdescRight">Use set_value(const TreeModelColumn<>& column, const ColumnType& data) unless you do not know the column type at compile-time. <a href="#abc6ffaec37d8bde03d94c39218390065"></a><br/></td></tr>
60
<tr><td class="memTemplParams" colspan="2">template<class ColumnType > </td></tr>
61
<tr><td class="memTemplItemLeft" align="right" valign="top">ColumnType </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#a193b7d490eed8f7e25aa70d73d746f6a">get_value</a> (const <a class="el" href="classGtk_1_1TreeModelColumn.html">TreeModelColumn</a>< ColumnType >& column) const </td></tr>
62
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the value of this <em>column</em> of this row. <a href="#a193b7d490eed8f7e25aa70d73d746f6a"></a><br/></td></tr>
63
<tr><td class="memTemplParams" colspan="2">template<class ColumnType > </td></tr>
64
<tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#a9b1db0af89cc50bb0b16a1daf8d5c5e1">get_value</a> (int column, ColumnType& data) const </td></tr>
65
<tr><td class="mdescLeft"> </td><td class="mdescRight">Use get_value(const TreeModelColumn<>& column) unless you do not know the column type at compile-time. <a href="#a9b1db0af89cc50bb0b16a1daf8d5c5e1"></a><br/></td></tr>
66
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classGtk_1_1TreeNodeChildren.html">TreeNodeChildren</a>& </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#a334dc0b2d96c219e24de467d3fcbd091">children</a> () const </td></tr>
67
<tr><td class="mdescLeft"> </td><td class="mdescRight">This returns an STL-like container API, for iterating over the rows. <a href="#a334dc0b2d96c219e24de467d3fcbd091"></a><br/></td></tr>
68
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1TreeIter.html">TreeIter</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#a9d55079617fc05a849af189b657e7679">parent</a> () const </td></tr>
69
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets an iterator to the parent row of this row. <a href="#a9d55079617fc05a849af189b657e7679"></a><br/></td></tr>
70
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#a256d9c1def321f1968c2f01299781e14">operator bool</a> () const </td></tr>
71
<tr><td class="mdescLeft"> </td><td class="mdescRight">Discover whether this is a valid row. <a href="#a256d9c1def321f1968c2f01299781e14"></a><br/></td></tr>
72
<tr><td class="memItemLeft" align="right" valign="top">GtkTreeIter* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#a70f407de60552e0270ed73471ad07cd1">gobj</a> ()</td></tr>
73
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a70f407de60552e0270ed73471ad07cd1"></a><br/></td></tr>
74
<tr><td class="memItemLeft" align="right" valign="top">const GtkTreeIter* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeRow.html#aabd78b5aa80816c10b49d51f797ce7b7">gobj</a> () const </td></tr>
75
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#aabd78b5aa80816c10b49d51f797ce7b7"></a><br/></td></tr>
85
<hr><a name="_details"></a><h2>Detailed Description</h2>
86
Typedefed as <a class="el" href="classGtk_1_1TreeModel.html#297c9db68905e82fe7c3fac57f6c4de8">TreeModel::Row</a>. <p>
87
Dereference a <a class="el" href="classGtk_1_1TreeModel.html#754e74cd833ff30e729f9b8d7daf4d8c">TreeModel::iterator</a> to get the Row. Use operator[] or <a class="el" href="classGtk_1_1TreeRow.html#e25785fc6de538f6dd632bb434a5f2ff" title="Sets the value of this column of this row.">set_value()</a> and <a class="el" href="classGtk_1_1TreeRow.html#193b7d490eed8f7e25aa70d73d746f6a" title="Gets the value of this column of this row.">get_value()</a> to access the values in the columns of this row.<p>
88
If the model contains a hierarchy of rows (such as <a class="el" href="classGtk_1_1TreeStore.html">Gtk::TreeStore</a>), then you can access the child rows with <a class="el" href="classGtk_1_1TreeRow.html#334dc0b2d96c219e24de467d3fcbd091" title="This returns an STL-like container API, for iterating over the rows.">children()</a>.<p>
89
You can use a const <a class="el" href="classGtk_1_1TreeModel.html#297c9db68905e82fe7c3fac57f6c4de8">TreeModel::Row</a>& for any parameter that takes a const <a class="el" href="classGtk_1_1TreeModel.html#754e74cd833ff30e729f9b8d7daf4d8c">TreeModel::iterator</a>&. <hr><h2>Member Function Documentation</h2>
90
<a class="anchor" name="334dc0b2d96c219e24de467d3fcbd091"></a><!-- doxytag: member="Gtk::TreeRow::children" ref="334dc0b2d96c219e24de467d3fcbd091" args="() const " -->
77
<hr/><a name="_details"></a><h2>Detailed Description</h2>
78
<p>Typedefed as <a class="el" href="classGtk_1_1TreeModel.html#a297c9db68905e82fe7c3fac57f6c4de8">TreeModel::Row</a>. </p>
79
<p>Dereference a <a class="el" href="classGtk_1_1TreeModel.html#a754e74cd833ff30e729f9b8d7daf4d8c">TreeModel::iterator</a> to get the Row. Use operator[] or <a class="el" href="classGtk_1_1TreeRow.html#ae25785fc6de538f6dd632bb434a5f2ff" title="Sets the value of this column of this row.">set_value()</a> and <a class="el" href="classGtk_1_1TreeRow.html#a193b7d490eed8f7e25aa70d73d746f6a" title="Gets the value of this column of this row.">get_value()</a> to access the values in the columns of this row.</p>
80
<p>If the model contains a hierarchy of rows (such as <a class="el" href="classGtk_1_1TreeStore.html">Gtk::TreeStore</a>), then you can access the child rows with <a class="el" href="classGtk_1_1TreeRow.html#a334dc0b2d96c219e24de467d3fcbd091" title="This returns an STL-like container API, for iterating over the rows.">children()</a>.</p>
81
<p>You can use a const <a class="el" href="classGtk_1_1TreeModel.html#a297c9db68905e82fe7c3fac57f6c4de8">TreeModel::Row</a>& for any parameter that takes a const <a class="el" href="classGtk_1_1TreeModel.html#a754e74cd833ff30e729f9b8d7daf4d8c">TreeModel::iterator</a>&. </p>
82
<hr/><h2>Member Function Documentation</h2>
83
<a class="anchor" id="a334dc0b2d96c219e24de467d3fcbd091"></a><!-- doxytag: member="Gtk::TreeRow::children" ref="a334dc0b2d96c219e24de467d3fcbd091" args="() const " -->
91
84
<div class="memitem">
92
85
<div class="memproto">
93
86
<table class="memname">
95
88
<td class="memname">const <a class="el" href="classGtk_1_1TreeNodeChildren.html">TreeNodeChildren</a>& Gtk::TreeRow::children </td>
97
<td class="paramname"> </td>
90
<td class="paramname"></td>
98
91
<td> ) </td>