Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 9a0a79014b834e3e43ba7caa953e8c16 > files > 715

gtkmm3.0-doc-3.10.1-1.mga4.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>gtkmm: Gtk::TreeSelection Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">gtkmm
   &#160;<span id="projectnumber">3.10.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceGtk.html">Gtk</a></li><li class="navelem"><a class="el" href="classGtk_1_1TreeSelection.html">TreeSelection</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#related">Related Functions</a> &#124;
<a href="classGtk_1_1TreeSelection-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Gtk::TreeSelection Class Reference<div class="ingroups"><a class="el" href="group__TreeView.html">TreeView Classes</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Typedefed as <a class="el" href="classGtk_1_1TreeView.html#ac8c004cc10cc48e6e4ce8ccfe0e49279" title="A selection object for Gtk::TreeView.">Gtk::TreeView::Selection</a>.  
 <a href="classGtk_1_1TreeSelection.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for Gtk::TreeSelection:</div>
<div class="dyncontent">
<div class="center"><img src="classGtk_1_1TreeSelection__inherit__graph.png" border="0" usemap="#Gtk_1_1TreeSelection_inherit__map" alt="Inheritance graph"/></div>
<map name="Gtk_1_1TreeSelection_inherit__map" id="Gtk_1_1TreeSelection_inherit__map">
<area shape="rect" id="node2" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="26,155,120,181"/><area shape="rect" id="node3" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="10,80,136,107"/><area shape="rect" id="node4" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="16,5,131,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a2262e022dc13c1918af1127f42a158b1"><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">sigc::slot</a>&lt; bool, <br class="typebreak"/>
const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a> &gt;<br class="typebreak"/>
&amp;, const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a> <br class="typebreak"/>
&amp;, bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a2262e022dc13c1918af1127f42a158b1">SlotSelect</a></td></tr>
<tr class="memdesc:a2262e022dc13c1918af1127f42a158b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">For instance, bool on_select_function(const Glib::RefPtr&lt;TreeModel&gt;&amp; model, const TreeModel::Path&amp; path, bool path_currently_selected) The select function should return true if the state of the node may be toggled, and false if the state of the node should be left unchanged.  <a href="#a2262e022dc13c1918af1127f42a158b1">More...</a><br/></td></tr>
<tr class="separator:a2262e022dc13c1918af1127f42a158b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0157e2ca1c2fa319a93913c782a7b640"><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">sigc::slot</a>&lt; void, <br class="typebreak"/>
const <a class="el" href="classGtk_1_1TreeModel.html#a754e74cd833ff30e729f9b8d7daf4d8c">TreeModel::iterator</a>&amp; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a0157e2ca1c2fa319a93913c782a7b640">SlotForeachIter</a></td></tr>
<tr class="memdesc:a0157e2ca1c2fa319a93913c782a7b640"><td class="mdescLeft">&#160;</td><td class="mdescRight">For example, void on_foreach(const Gtk::TreeModel::iterator&amp; iter);.  <a href="#a0157e2ca1c2fa319a93913c782a7b640">More...</a><br/></td></tr>
<tr class="separator:a0157e2ca1c2fa319a93913c782a7b640"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab1d3454d5216f1574cb53bf54205f74"><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">sigc::slot</a>&lt; void, <br class="typebreak"/>
const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#aab1d3454d5216f1574cb53bf54205f74">SlotForeachPath</a></td></tr>
<tr class="memdesc:aab1d3454d5216f1574cb53bf54205f74"><td class="mdescLeft">&#160;</td><td class="mdescRight">For example, void on_foreach(const Gtk::TreeModel::Path&amp; path);.  <a href="#aab1d3454d5216f1574cb53bf54205f74">More...</a><br/></td></tr>
<tr class="separator:aab1d3454d5216f1574cb53bf54205f74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31c44b43f5acd501a0a411c04bdf4706"><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">sigc::slot</a>&lt; void, <br class="typebreak"/>
const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp;, const <br class="typebreak"/>
<a class="el" href="classGtk_1_1TreeModel.html#a754e74cd833ff30e729f9b8d7daf4d8c">TreeModel::iterator</a>&amp; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a31c44b43f5acd501a0a411c04bdf4706">SlotForeachPathAndIter</a></td></tr>
<tr class="memdesc:a31c44b43f5acd501a0a411c04bdf4706"><td class="mdescLeft">&#160;</td><td class="mdescRight">For example, void on_foreach(const Gtk::TreeModel::Path&amp; path, const Gtk::TreeModel::iterator&amp; iter);.  <a href="#a31c44b43f5acd501a0a411c04bdf4706">More...</a><br/></td></tr>
<tr class="separator:a31c44b43f5acd501a0a411c04bdf4706"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a53c5fcfea07919973631158579e9bbc0"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a53c5fcfea07919973631158579e9bbc0">~TreeSelection</a> ()</td></tr>
<tr class="separator:a53c5fcfea07919973631158579e9bbc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa272d22e2a8cf68ef941bb898e6ae7a5"><td class="memItemLeft" align="right" valign="top">GtkTreeSelection*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#aa272d22e2a8cf68ef941bb898e6ae7a5">gobj</a> ()</td></tr>
<tr class="memdesc:aa272d22e2a8cf68ef941bb898e6ae7a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject.  <a href="#aa272d22e2a8cf68ef941bb898e6ae7a5">More...</a><br/></td></tr>
<tr class="separator:aa272d22e2a8cf68ef941bb898e6ae7a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afbfe1d2a5920a31ad730124c0ed2ffbe"><td class="memItemLeft" align="right" valign="top">const GtkTreeSelection*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#afbfe1d2a5920a31ad730124c0ed2ffbe">gobj</a> () const </td></tr>
<tr class="memdesc:afbfe1d2a5920a31ad730124c0ed2ffbe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject.  <a href="#afbfe1d2a5920a31ad730124c0ed2ffbe">More...</a><br/></td></tr>
<tr class="separator:afbfe1d2a5920a31ad730124c0ed2ffbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa691fc7df426d2f19612cc82c512596d"><td class="memItemLeft" align="right" valign="top">GtkTreeSelection*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#aa691fc7df426d2f19612cc82c512596d">gobj_copy</a> ()</td></tr>
<tr class="memdesc:aa691fc7df426d2f19612cc82c512596d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.  <a href="#aa691fc7df426d2f19612cc82c512596d">More...</a><br/></td></tr>
<tr class="separator:aa691fc7df426d2f19612cc82c512596d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c77e2bc04394554fe272c90aec1b064"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a8c77e2bc04394554fe272c90aec1b064">set_mode</a> (<a class="el" href="group__gtkmmEnums.html#ga3e58167cfed0be4c87474c3bdca80d78">SelectionMode</a> type)</td></tr>
<tr class="memdesc:a8c77e2bc04394554fe272c90aec1b064"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the selection mode of the <em>selection</em>.  <a href="#a8c77e2bc04394554fe272c90aec1b064">More...</a><br/></td></tr>
<tr class="separator:a8c77e2bc04394554fe272c90aec1b064"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab83925a34c53e387e2813f2dc6a08587"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gtkmmEnums.html#ga3e58167cfed0be4c87474c3bdca80d78">SelectionMode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#ab83925a34c53e387e2813f2dc6a08587">get_mode</a> () const </td></tr>
<tr class="memdesc:ab83925a34c53e387e2813f2dc6a08587"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the selection mode for <em>selection</em>.  <a href="#ab83925a34c53e387e2813f2dc6a08587">More...</a><br/></td></tr>
<tr class="separator:ab83925a34c53e387e2813f2dc6a08587"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c408b8e2b45b4a65a2a9ad66d9602cf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a7c408b8e2b45b4a65a2a9ad66d9602cf">set_select_function</a> (const <a class="el" href="classGtk_1_1TreeSelection.html#a2262e022dc13c1918af1127f42a158b1">SlotSelect</a>&amp; slot)</td></tr>
<tr class="memdesc:a7c408b8e2b45b4a65a2a9ad66d9602cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the selection callback slot.  <a href="#a7c408b8e2b45b4a65a2a9ad66d9602cf">More...</a><br/></td></tr>
<tr class="separator:a7c408b8e2b45b4a65a2a9ad66d9602cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5564087ad3cb1979d546d905e9364294"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1TreeView.html">TreeView</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a5564087ad3cb1979d546d905e9364294">get_tree_view</a> ()</td></tr>
<tr class="memdesc:a5564087ad3cb1979d546d905e9364294"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the tree view associated with <em>selection</em>.  <a href="#a5564087ad3cb1979d546d905e9364294">More...</a><br/></td></tr>
<tr class="separator:a5564087ad3cb1979d546d905e9364294"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0eb46be8a024f92607b1f12b581e16c2"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classGtk_1_1TreeView.html">TreeView</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a0eb46be8a024f92607b1f12b581e16c2">get_tree_view</a> () const </td></tr>
<tr class="memdesc:a0eb46be8a024f92607b1f12b581e16c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the tree view associated with <em>selection</em>.  <a href="#a0eb46be8a024f92607b1f12b581e16c2">More...</a><br/></td></tr>
<tr class="separator:a0eb46be8a024f92607b1f12b581e16c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6e6474b69278a024ce2f50cc81f3bac"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#ae6e6474b69278a024ce2f50cc81f3bac">get_model</a> ()</td></tr>
<tr class="memdesc:ae6e6474b69278a024ce2f50cc81f3bac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shortcut for <a class="el" href="classGtk_1_1TreeSelection.html#a5564087ad3cb1979d546d905e9364294" title="Returns the tree view associated with selection.">get_tree_view()</a>-&gt;<a class="el" href="classGtk_1_1TreeSelection.html#ae6e6474b69278a024ce2f50cc81f3bac" title="Shortcut for get_tree_view()-&gt;get_model().">get_model()</a>.  <a href="#ae6e6474b69278a024ce2f50cc81f3bac">More...</a><br/></td></tr>
<tr class="separator:ae6e6474b69278a024ce2f50cc81f3bac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32d988aaf33b721a41f264255f8f2ee3"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; const <a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a32d988aaf33b721a41f264255f8f2ee3">get_model</a> () const </td></tr>
<tr class="separator:a32d988aaf33b721a41f264255f8f2ee3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af949a1a078bc5c2272e25e0c2987a81f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1TreeModel.html#a754e74cd833ff30e729f9b8d7daf4d8c">TreeModel::iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#af949a1a078bc5c2272e25e0c2987a81f">get_selected</a> ()</td></tr>
<tr class="memdesc:af949a1a078bc5c2272e25e0c2987a81f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the currently selected row.  <a href="#af949a1a078bc5c2272e25e0c2987a81f">More...</a><br/></td></tr>
<tr class="separator:af949a1a078bc5c2272e25e0c2987a81f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c38032e5eb2a7b4a089fb74552c7910"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1TreeModel.html#a754e74cd833ff30e729f9b8d7daf4d8c">TreeModel::iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a6c38032e5eb2a7b4a089fb74552c7910">get_selected</a> (<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a> &gt;&amp; model)</td></tr>
<tr class="memdesc:a6c38032e5eb2a7b4a089fb74552c7910"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the currently selected row.  <a href="#a6c38032e5eb2a7b4a089fb74552c7910">More...</a><br/></td></tr>
<tr class="separator:a6c38032e5eb2a7b4a089fb74552c7910"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a601c30abb10d1a8f21b1688b594b5682"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00973.html">std::vector</a>&lt; <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a601c30abb10d1a8f21b1688b594b5682">get_selected_rows</a> () const </td></tr>
<tr class="memdesc:a601c30abb10d1a8f21b1688b594b5682"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a list of paths of all selected rows.  <a href="#a601c30abb10d1a8f21b1688b594b5682">More...</a><br/></td></tr>
<tr class="separator:a601c30abb10d1a8f21b1688b594b5682"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45adf98479215cd6965996b4986fce85"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00973.html">std::vector</a>&lt; <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a45adf98479215cd6965996b4986fce85">get_selected_rows</a> (<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a> &gt;&amp; model)</td></tr>
<tr class="memdesc:a45adf98479215cd6965996b4986fce85"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a list of paths of all selected rows.  <a href="#a45adf98479215cd6965996b4986fce85">More...</a><br/></td></tr>
<tr class="separator:a45adf98479215cd6965996b4986fce85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd81154bc8b483b8110bf67bf25a0022"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#abd81154bc8b483b8110bf67bf25a0022">count_selected_rows</a> () const </td></tr>
<tr class="memdesc:abd81154bc8b483b8110bf67bf25a0022"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of rows that have been selected in <em>tree</em>.  <a href="#abd81154bc8b483b8110bf67bf25a0022">More...</a><br/></td></tr>
<tr class="separator:abd81154bc8b483b8110bf67bf25a0022"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a632c93a952e9597059647af3f7fd7f26"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a632c93a952e9597059647af3f7fd7f26">selected_foreach_iter</a> (const <a class="el" href="classGtk_1_1TreeSelection.html#a0157e2ca1c2fa319a93913c782a7b640">SlotForeachIter</a>&amp; slot) const </td></tr>
<tr class="memdesc:a632c93a952e9597059647af3f7fd7f26"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calls a callback slot for each selected node.  <a href="#a632c93a952e9597059647af3f7fd7f26">More...</a><br/></td></tr>
<tr class="separator:a632c93a952e9597059647af3f7fd7f26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2b0b0926ada175f4d363ecba50810f0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#ad2b0b0926ada175f4d363ecba50810f0">selected_foreach_path</a> (const <a class="el" href="classGtk_1_1TreeSelection.html#aab1d3454d5216f1574cb53bf54205f74">SlotForeachPath</a>&amp; slot) const </td></tr>
<tr class="memdesc:ad2b0b0926ada175f4d363ecba50810f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calls a callback slot for each selected node.  <a href="#ad2b0b0926ada175f4d363ecba50810f0">More...</a><br/></td></tr>
<tr class="separator:ad2b0b0926ada175f4d363ecba50810f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae954b4f6786bbc3c06daaf4ac348bfc8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#ae954b4f6786bbc3c06daaf4ac348bfc8">selected_foreach</a> (const <a class="el" href="classGtk_1_1TreeSelection.html#a31c44b43f5acd501a0a411c04bdf4706">SlotForeachPathAndIter</a>&amp; slot) const </td></tr>
<tr class="memdesc:ae954b4f6786bbc3c06daaf4ac348bfc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calls a callback slot for each selected node.  <a href="#ae954b4f6786bbc3c06daaf4ac348bfc8">More...</a><br/></td></tr>
<tr class="separator:ae954b4f6786bbc3c06daaf4ac348bfc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe2e36ac9f950b47e6290ce84af939ae"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#abe2e36ac9f950b47e6290ce84af939ae">select</a> (const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp; path)</td></tr>
<tr class="memdesc:abe2e36ac9f950b47e6290ce84af939ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Select the row at <em>path</em>.  <a href="#abe2e36ac9f950b47e6290ce84af939ae">More...</a><br/></td></tr>
<tr class="separator:abe2e36ac9f950b47e6290ce84af939ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70c91065737a3ff94fee94e1ed7b83ae"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a70c91065737a3ff94fee94e1ed7b83ae">select</a> (const <a class="el" href="classGtk_1_1TreeModel.html#a754e74cd833ff30e729f9b8d7daf4d8c">TreeModel::iterator</a>&amp; iter)</td></tr>
<tr class="memdesc:a70c91065737a3ff94fee94e1ed7b83ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Selects the specified iterator.  <a href="#a70c91065737a3ff94fee94e1ed7b83ae">More...</a><br/></td></tr>
<tr class="separator:a70c91065737a3ff94fee94e1ed7b83ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e5b782c5a0af7ae4f257d5af932038f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a0e5b782c5a0af7ae4f257d5af932038f">select</a> (const <a class="el" href="classGtk_1_1TreeModel.html#a297c9db68905e82fe7c3fac57f6c4de8">TreeModel::Row</a>&amp; row)</td></tr>
<tr class="memdesc:a0e5b782c5a0af7ae4f257d5af932038f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Selects the specified iterator.  <a href="#a0e5b782c5a0af7ae4f257d5af932038f">More...</a><br/></td></tr>
<tr class="separator:a0e5b782c5a0af7ae4f257d5af932038f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22b9264d8c0b06d3678dd022a6994a61"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a22b9264d8c0b06d3678dd022a6994a61">select</a> (const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp; start_path, const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp; end_path)</td></tr>
<tr class="memdesc:a22b9264d8c0b06d3678dd022a6994a61"><td class="mdescLeft">&#160;</td><td class="mdescRight">Selects a range of nodes, determined by <em>start_path</em> and <em>end_path</em> inclusive.  <a href="#a22b9264d8c0b06d3678dd022a6994a61">More...</a><br/></td></tr>
<tr class="separator:a22b9264d8c0b06d3678dd022a6994a61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77e91cb1efd4cfcc05832aa97bc92a4c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a77e91cb1efd4cfcc05832aa97bc92a4c">unselect</a> (const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp; path)</td></tr>
<tr class="memdesc:a77e91cb1efd4cfcc05832aa97bc92a4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unselects the row at <em>path</em>.  <a href="#a77e91cb1efd4cfcc05832aa97bc92a4c">More...</a><br/></td></tr>
<tr class="separator:a77e91cb1efd4cfcc05832aa97bc92a4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ef57ea9bc6f15126ba43f8da4199b46"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a5ef57ea9bc6f15126ba43f8da4199b46">unselect</a> (const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp; start_path, const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp; end_path)</td></tr>
<tr class="memdesc:a5ef57ea9bc6f15126ba43f8da4199b46"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unselects a range of nodes, determined by <em>start_path</em> and <em>end_path</em> inclusive.  <a href="#a5ef57ea9bc6f15126ba43f8da4199b46">More...</a><br/></td></tr>
<tr class="separator:a5ef57ea9bc6f15126ba43f8da4199b46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5aa28ea9eea8f0b8a02a28a4d4472a08"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a5aa28ea9eea8f0b8a02a28a4d4472a08">unselect</a> (const <a class="el" href="classGtk_1_1TreeModel.html#a754e74cd833ff30e729f9b8d7daf4d8c">TreeModel::iterator</a>&amp; iter)</td></tr>
<tr class="memdesc:a5aa28ea9eea8f0b8a02a28a4d4472a08"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unselects the specified iterator.  <a href="#a5aa28ea9eea8f0b8a02a28a4d4472a08">More...</a><br/></td></tr>
<tr class="separator:a5aa28ea9eea8f0b8a02a28a4d4472a08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5241ae9e120dcd3c680cec28d0f34f6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#ab5241ae9e120dcd3c680cec28d0f34f6">is_selected</a> (const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp; path) const </td></tr>
<tr class="memdesc:ab5241ae9e120dcd3c680cec28d0f34f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns <code>true</code> if the row pointed to by <em>path</em> is currently selected.  <a href="#ab5241ae9e120dcd3c680cec28d0f34f6">More...</a><br/></td></tr>
<tr class="separator:ab5241ae9e120dcd3c680cec28d0f34f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48d8c7d8dfab291eefc72dbc207ddbc3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a48d8c7d8dfab291eefc72dbc207ddbc3">is_selected</a> (const <a class="el" href="classGtk_1_1TreeModel.html#a754e74cd833ff30e729f9b8d7daf4d8c">TreeModel::iterator</a>&amp; iter) const </td></tr>
<tr class="memdesc:a48d8c7d8dfab291eefc72dbc207ddbc3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns <code>true</code> if the row at <em>iter</em> is currently selected.  <a href="#a48d8c7d8dfab291eefc72dbc207ddbc3">More...</a><br/></td></tr>
<tr class="separator:a48d8c7d8dfab291eefc72dbc207ddbc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2cb8620473e74aec20511c3f655e3e1a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a2cb8620473e74aec20511c3f655e3e1a">select_all</a> ()</td></tr>
<tr class="memdesc:a2cb8620473e74aec20511c3f655e3e1a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Selects all the nodes.  <a href="#a2cb8620473e74aec20511c3f655e3e1a">More...</a><br/></td></tr>
<tr class="separator:a2cb8620473e74aec20511c3f655e3e1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeac5766a4626733996641ed2583a09e5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#aeac5766a4626733996641ed2583a09e5">unselect_all</a> ()</td></tr>
<tr class="memdesc:aeac5766a4626733996641ed2583a09e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unselects all the nodes.  <a href="#aeac5766a4626733996641ed2583a09e5">More...</a><br/></td></tr>
<tr class="separator:aeac5766a4626733996641ed2583a09e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb0431905473fbf7252e422108877270"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><br class="typebreak"/>
&lt; <a class="el" href="group__gtkmmEnums.html#ga3e58167cfed0be4c87474c3bdca80d78">SelectionMode</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#afb0431905473fbf7252e422108877270">property_mode</a> ()</td></tr>
<tr class="memdesc:afb0431905473fbf7252e422108877270"><td class="mdescLeft">&#160;</td><td class="mdescRight">Selection mode.  <a href="#afb0431905473fbf7252e422108877270">More...</a><br/></td></tr>
<tr class="separator:afb0431905473fbf7252e422108877270"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af47dfd7a917c3ccde7e951e7a2155f7b"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/>
&lt; <a class="el" href="group__gtkmmEnums.html#ga3e58167cfed0be4c87474c3bdca80d78">SelectionMode</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#af47dfd7a917c3ccde7e951e7a2155f7b">property_mode</a> () const </td></tr>
<tr class="memdesc:af47dfd7a917c3ccde7e951e7a2155f7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Selection mode.  <a href="#af47dfd7a917c3ccde7e951e7a2155f7b">More...</a><br/></td></tr>
<tr class="separator:af47dfd7a917c3ccde7e951e7a2155f7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad880fbe3cf130fe7c46f410b7efe3c0f"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1SignalProxy0.html">Glib::SignalProxy0</a>&lt; void &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#ad880fbe3cf130fe7c46f410b7efe3c0f">signal_changed</a> ()</td></tr>
<tr class="separator:ad880fbe3cf130fe7c46f410b7efe3c0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a373c44490f8dda233fd36bea5d573eb5"><td class="memItemLeft" align="right" valign="top">static GType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a373c44490f8dda233fd36bea5d573eb5">get_type</a> ()</td></tr>
<tr class="memdesc:a373c44490f8dda233fd36bea5d573eb5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the GType for this class, for use with the underlying GObject type system.  <a href="#a373c44490f8dda233fd36bea5d573eb5">More...</a><br/></td></tr>
<tr class="separator:a373c44490f8dda233fd36bea5d573eb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a1c0c20b2c05f751112e8fa0a8da93844"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a1c0c20b2c05f751112e8fa0a8da93844">on_changed</a> ()</td></tr>
<tr class="memdesc:a1c0c20b2c05f751112e8fa0a8da93844"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is a default handler for the signal <a class="el" href="classGtk_1_1TreeSelection.html#ad880fbe3cf130fe7c46f410b7efe3c0f">signal_changed()</a>.  <a href="#a1c0c20b2c05f751112e8fa0a8da93844">More...</a><br/></td></tr>
<tr class="separator:a1c0c20b2c05f751112e8fa0a8da93844"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="related"></a>
Related Functions</h2></td></tr>
<tr><td class="ititle" colspan="2"><p>(Note that these are not member functions.) </p>
</td></tr>
<tr class="memitem:a3005841d69e579cf3a75e7a4699d4fa6"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1TreeSelection.html">Gtk::TreeSelection</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1TreeSelection.html#a3005841d69e579cf3a75e7a4699d4fa6">wrap</a> (GtkTreeSelection* object, bool take_copy=false)</td></tr>
<tr class="memdesc:a3005841d69e579cf3a75e7a4699d4fa6"><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object.  <a href="#a3005841d69e579cf3a75e7a4699d4fa6">More...</a><br/></td></tr>
<tr class="separator:a3005841d69e579cf3a75e7a4699d4fa6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Typedefed as <a class="el" href="classGtk_1_1TreeView.html#ac8c004cc10cc48e6e4ce8ccfe0e49279" title="A selection object for Gtk::TreeView.">Gtk::TreeView::Selection</a>. </p>
<p>This is a helper object to manage the selection for a <a class="el" href="classGtk_1_1TreeView.html" title="The TreeView widget displays the model (Gtk::TreeModel) data and allows the user to interact with it...">Gtk::TreeView</a> widget.</p>
<p>It is automatically created when a new <a class="el" href="classGtk_1_1TreeView.html" title="The TreeView widget displays the model (Gtk::TreeModel) data and allows the user to interact with it...">Gtk::TreeView</a> widget is created, and cannot exist independently of this widget. The primary reason this class exists is for cleanliness of code and API. That is, there is no conceptual reason all these methods could not be methods on the <a class="el" href="classGtk_1_1TreeView.html" title="The TreeView widget displays the model (Gtk::TreeModel) data and allows the user to interact with it...">Gtk::TreeView</a> widget instead of a separate class.</p>
<p>The <a class="el" href="classGtk_1_1TreeSelection.html" title="Typedefed as Gtk::TreeView::Selection.">Gtk::TreeSelection</a> object can be obtained from a <a class="el" href="classGtk_1_1TreeView.html" title="The TreeView widget displays the model (Gtk::TreeModel) data and allows the user to interact with it...">Gtk::TreeView</a> by calling <a class="el" href="classGtk_1_1TreeView.html#ae953e086ee80dbcd34e49dc55a600dcb" title="Gets the Gtk::TreeSelection associated with tree_view.">Gtk::TreeView::get_selection()</a>. It can be manipulated to check the selection status of the tree, as well as to select and deselect individual rows. Selection is done completely view-side. As a result, multiple views of the same model can have completely different selections. Additionally, you cannot change the selection of a row on the model that is not currently displayed by the view without expanding its parents first.</p>
<p>When monitoring the selection of a view, it's important to remember that the "changed" signal is mostly a hint. That is, it may only emit one signal when a range of rows is selected. Additionally, it may on occasion emit a "changed" signal when nothing has happened. </p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a class="anchor" id="a0157e2ca1c2fa319a93913c782a7b640"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">sigc::slot</a>&lt;void, const <a class="el" href="classGtk_1_1TreeModel.html#a754e74cd833ff30e729f9b8d7daf4d8c">TreeModel::iterator</a>&amp;&gt; <a class="el" href="classGtk_1_1TreeSelection.html#a0157e2ca1c2fa319a93913c782a7b640">Gtk::TreeSelection::SlotForeachIter</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>For example, void on_foreach(const Gtk::TreeModel::iterator&amp; iter);. </p>
<p>Note that you cannot modify the tree or selection from within the callback function. As a result, <a class="el" href="classGtk_1_1TreeSelection.html#a601c30abb10d1a8f21b1688b594b5682" title="Creates a list of paths of all selected rows.">get_selected_rows()</a> might be more useful. </p>

</div>
</div>
<a class="anchor" id="aab1d3454d5216f1574cb53bf54205f74"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">sigc::slot</a>&lt;void, const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp;&gt; <a class="el" href="classGtk_1_1TreeSelection.html#aab1d3454d5216f1574cb53bf54205f74">Gtk::TreeSelection::SlotForeachPath</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>For example, void on_foreach(const Gtk::TreeModel::Path&amp; path);. </p>
<p>Note that you cannot modify the tree or selection from within the callback function. As a result, <a class="el" href="classGtk_1_1TreeSelection.html#a601c30abb10d1a8f21b1688b594b5682" title="Creates a list of paths of all selected rows.">get_selected_rows()</a> might be more useful. </p>

</div>
</div>
<a class="anchor" id="a31c44b43f5acd501a0a411c04bdf4706"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">sigc::slot</a>&lt;void, const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp;, const <a class="el" href="classGtk_1_1TreeModel.html#a754e74cd833ff30e729f9b8d7daf4d8c">TreeModel::iterator</a>&amp;&gt; <a class="el" href="classGtk_1_1TreeSelection.html#a31c44b43f5acd501a0a411c04bdf4706">Gtk::TreeSelection::SlotForeachPathAndIter</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>For example, void on_foreach(const Gtk::TreeModel::Path&amp; path, const Gtk::TreeModel::iterator&amp; iter);. </p>
<p>Note that you cannot modify the tree or selection from within the callback function. As a result, <a class="el" href="classGtk_1_1TreeSelection.html#a601c30abb10d1a8f21b1688b594b5682" title="Creates a list of paths of all selected rows.">get_selected_rows()</a> might be more useful. </p>

</div>
</div>
<a class="anchor" id="a2262e022dc13c1918af1127f42a158b1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">sigc::slot</a>&lt;bool, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a>&gt;&amp;, const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp;, bool&gt; <a class="el" href="classGtk_1_1TreeSelection.html#a2262e022dc13c1918af1127f42a158b1">Gtk::TreeSelection::SlotSelect</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>For instance, bool on_select_function(const Glib::RefPtr&lt;TreeModel&gt;&amp; model, const TreeModel::Path&amp; path, bool path_currently_selected) The select function should return true if the state of the node may be toggled, and false if the state of the node should be left unchanged. </p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a53c5fcfea07919973631158579e9bbc0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gtk::TreeSelection::~TreeSelection </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="abd81154bc8b483b8110bf67bf25a0022"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Gtk::TreeSelection::count_selected_rows </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the number of rows that have been selected in <em>tree</em>. </p>
<dl class="since_2_2"><dt><b><a class="el" href="since_2_2.html#_since_2_2000081">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The number of rows selected. </dd></dl>

</div>
</div>
<a class="anchor" id="ab83925a34c53e387e2813f2dc6a08587"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__gtkmmEnums.html#ga3e58167cfed0be4c87474c3bdca80d78">SelectionMode</a> Gtk::TreeSelection::get_mode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the selection mode for <em>selection</em>. </p>
<p>See <a class="el" href="classGtk_1_1TreeSelection.html#a8c77e2bc04394554fe272c90aec1b064" title="Sets the selection mode of the selection.">set_mode()</a>. </p>
<dl class="section return"><dt>Returns</dt><dd>The current selection mode. </dd></dl>

</div>
</div>
<a class="anchor" id="ae6e6474b69278a024ce2f50cc81f3bac"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a>&gt; Gtk::TreeSelection::get_model </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Shortcut for <a class="el" href="classGtk_1_1TreeSelection.html#a5564087ad3cb1979d546d905e9364294" title="Returns the tree view associated with selection.">get_tree_view()</a>-&gt;<a class="el" href="classGtk_1_1TreeSelection.html#ae6e6474b69278a024ce2f50cc81f3bac" title="Shortcut for get_tree_view()-&gt;get_model().">get_model()</a>. </p>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="classGtk_1_1TreeModel.html" title="This class defines a generic tree interface for use by the Gtk::TreeView widget.">TreeModel</a> associated with this <a class="el" href="classGtk_1_1TreeSelection.html" title="Typedefed as Gtk::TreeView::Selection.">TreeSelection</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="a32d988aaf33b721a41f264255f8f2ee3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a>&gt; Gtk::TreeSelection::get_model </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="af949a1a078bc5c2272e25e0c2987a81f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGtk_1_1TreeModel.html#a754e74cd833ff30e729f9b8d7daf4d8c">TreeModel::iterator</a> Gtk::TreeSelection::get_selected </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the currently selected row. </p>
<dl class="section return"><dt>Returns</dt><dd>The currently selected row. </dd></dl>
<dl class="section note"><dt>Note</dt><dd>This method won't work if the selection mode is <code><a class="el" href="namespaceGtk.html#ga3e58167cfed0be4c87474c3bdca80d78a0001344812be65bc09b8acc4dcf8eec0" title="Any number of elements may be selected.The Ctrl key may be used to enlarge the selection, and Shiftkey to select between the focus and the child pointed to.Some widgets may also allow Click-drag to select a range of elements.">Gtk::SELECTION_MULTIPLE</a></code>. Use <a class="el" href="classGtk_1_1TreeSelection.html#a601c30abb10d1a8f21b1688b594b5682" title="Creates a list of paths of all selected rows.">get_selected_rows()</a> for multiple selections. </dd></dl>

</div>
</div>
<a class="anchor" id="a6c38032e5eb2a7b4a089fb74552c7910"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGtk_1_1TreeModel.html#a754e74cd833ff30e729f9b8d7daf4d8c">TreeModel::iterator</a> Gtk::TreeSelection::get_selected </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>model</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the currently selected row. </p>
<dl class="section return"><dt>Returns</dt><dd>The currently selected row. Or <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01657.html#ga791b934fd29c64f6f220effd72dedfe4">end()</a> if no rows were selected. </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">model</td><td>The current <a class="el" href="classGtk_1_1TreeModel.html" title="This class defines a generic tree interface for use by the Gtk::TreeView widget.">TreeModel</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>This method won't work if the selection mode is <code><a class="el" href="namespaceGtk.html#ga3e58167cfed0be4c87474c3bdca80d78a0001344812be65bc09b8acc4dcf8eec0" title="Any number of elements may be selected.The Ctrl key may be used to enlarge the selection, and Shiftkey to select between the focus and the child pointed to.Some widgets may also allow Click-drag to select a range of elements.">Gtk::SELECTION_MULTIPLE</a></code>. Use <a class="el" href="classGtk_1_1TreeSelection.html#a601c30abb10d1a8f21b1688b594b5682" title="Creates a list of paths of all selected rows.">get_selected_rows()</a> for multiple selections. </dd></dl>

</div>
</div>
<a class="anchor" id="a601c30abb10d1a8f21b1688b594b5682"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00973.html">std::vector</a>&lt;<a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&gt; Gtk::TreeSelection::get_selected_rows </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a list of paths of all selected rows. </p>
<p>Additionally, if you are planning on modifying the model after calling this function, you may want to convert the returned list into a list of GtkTreeRowReferences.</p>
<dl class="section return"><dt>Returns</dt><dd>a standard container containing a Gtk::Model::Path for each selected row. </dd></dl>

</div>
</div>
<a class="anchor" id="a45adf98479215cd6965996b4986fce85"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00973.html">std::vector</a>&lt;<a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&gt; Gtk::TreeSelection::get_selected_rows </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1TreeModel.html">TreeModel</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>model</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a list of paths of all selected rows. </p>
<p>Additionally, if you are planning on modifying the model after calling this function, you may want to convert the returned list into a list of GtkTreeRowReferences.</p>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">model</td><td>The current <a class="el" href="classGtk_1_1TreeModel.html" title="This class defines a generic tree interface for use by the Gtk::TreeView widget.">TreeModel</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a standard container containing a Gtk::Model::Path for each selected row. </dd></dl>

</div>
</div>
<a class="anchor" id="a5564087ad3cb1979d546d905e9364294"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGtk_1_1TreeView.html">TreeView</a>* Gtk::TreeSelection::get_tree_view </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the tree view associated with <em>selection</em>. </p>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="classGtk_1_1TreeView.html" title="The TreeView widget displays the model (Gtk::TreeModel) data and allows the user to interact with it...">Gtk::TreeView</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="a0eb46be8a024f92607b1f12b581e16c2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classGtk_1_1TreeView.html">TreeView</a>* Gtk::TreeSelection::get_tree_view </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the tree view associated with <em>selection</em>. </p>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="classGtk_1_1TreeView.html" title="The TreeView widget displays the model (Gtk::TreeModel) data and allows the user to interact with it...">Gtk::TreeView</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="a373c44490f8dda233fd36bea5d573eb5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static GType Gtk::TreeSelection::get_type </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the GType for this class, for use with the underlying GObject type system. </p>

</div>
</div>
<a class="anchor" id="aa272d22e2a8cf68ef941bb898e6ae7a5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GtkTreeSelection* Gtk::TreeSelection::gobj </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Provides access to the underlying C GObject. </p>

</div>
</div>
<a class="anchor" id="afbfe1d2a5920a31ad730124c0ed2ffbe"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const GtkTreeSelection* Gtk::TreeSelection::gobj </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Provides access to the underlying C GObject. </p>

</div>
</div>
<a class="anchor" id="aa691fc7df426d2f19612cc82c512596d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GtkTreeSelection* Gtk::TreeSelection::gobj_copy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. </p>

</div>
</div>
<a class="anchor" id="ab5241ae9e120dcd3c680cec28d0f34f6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gtk::TreeSelection::is_selected </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp;&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns <code>true</code> if the row pointed to by <em>path</em> is currently selected. </p>
<p>If <em>path</em> does not point to a valid location, <code>false</code> is returned </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>A <a class="el" href="classGtk_1_1TreePath.html" title="A path is essentially a potential node.">Gtk::TreePath</a> to check selection on. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if <em>path</em> is selected. </dd></dl>

</div>
</div>
<a class="anchor" id="a48d8c7d8dfab291eefc72dbc207ddbc3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gtk::TreeSelection::is_selected </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1TreeModel.html#a754e74cd833ff30e729f9b8d7daf4d8c">TreeModel::iterator</a>&amp;&#160;</td>
          <td class="paramname"><em>iter</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns <code>true</code> if the row at <em>iter</em> is currently selected. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iter</td><td>A valid <a class="el" href="classGtk_1_1TreeIter.html" title="A Gtk::TreeModel::iterator is a reference to a specific node on a specific model.">Gtk::TreeIter</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code>, if <em>iter</em> is selected. </dd></dl>

</div>
</div>
<a class="anchor" id="a1c0c20b2c05f751112e8fa0a8da93844"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Gtk::TreeSelection::on_changed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This is a default handler for the signal <a class="el" href="classGtk_1_1TreeSelection.html#ad880fbe3cf130fe7c46f410b7efe3c0f">signal_changed()</a>. </p>

</div>
</div>
<a class="anchor" id="afb0431905473fbf7252e422108877270"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>&lt; <a class="el" href="group__gtkmmEnums.html#ga3e58167cfed0be4c87474c3bdca80d78">SelectionMode</a> &gt; Gtk::TreeSelection::property_mode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Selection mode. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="section return"><dt>Returns</dt><dd>A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="af47dfd7a917c3ccde7e951e7a2155f7b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>&lt; <a class="el" href="group__gtkmmEnums.html#ga3e58167cfed0be4c87474c3bdca80d78">SelectionMode</a> &gt; Gtk::TreeSelection::property_mode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Selection mode. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="section return"><dt>Returns</dt><dd>A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="abe2e36ac9f950b47e6290ce84af939ae"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::TreeSelection::select </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp;&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Select the row at <em>path</em>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>The <a class="el" href="classGtk_1_1TreePath.html" title="A path is essentially a potential node.">Gtk::TreePath</a> to be selected. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a70c91065737a3ff94fee94e1ed7b83ae"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::TreeSelection::select </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1TreeModel.html#a754e74cd833ff30e729f9b8d7daf4d8c">TreeModel::iterator</a>&amp;&#160;</td>
          <td class="paramname"><em>iter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Selects the specified iterator. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iter</td><td>The <a class="el" href="classGtk_1_1TreeIter.html" title="A Gtk::TreeModel::iterator is a reference to a specific node on a specific model.">Gtk::TreeIter</a> to be selected. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0e5b782c5a0af7ae4f257d5af932038f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::TreeSelection::select </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1TreeModel.html#a297c9db68905e82fe7c3fac57f6c4de8">TreeModel::Row</a>&amp;&#160;</td>
          <td class="paramname"><em>row</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Selects the specified iterator. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iter</td><td>The <a class="el" href="classGtk_1_1TreeIter.html" title="A Gtk::TreeModel::iterator is a reference to a specific node on a specific model.">Gtk::TreeIter</a> to be selected. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a22b9264d8c0b06d3678dd022a6994a61"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::TreeSelection::select </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp;&#160;</td>
          <td class="paramname"><em>start_path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp;&#160;</td>
          <td class="paramname"><em>end_path</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Selects a range of nodes, determined by <em>start_path</em> and <em>end_path</em> inclusive. </p>
<p><em>selection</em> must be set to <a class="el" href="namespaceGtk.html#ga3e58167cfed0be4c87474c3bdca80d78a0001344812be65bc09b8acc4dcf8eec0" title="Any number of elements may be selected.The Ctrl key may be used to enlarge the selection, and Shiftkey to select between the focus and the child pointed to.Some widgets may also allow Click-drag to select a range of elements.">Gtk::SELECTION_MULTIPLE</a> mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">start_path</td><td>The initial node of the range. </td></tr>
    <tr><td class="paramname">end_path</td><td>The final node of the range. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2cb8620473e74aec20511c3f655e3e1a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::TreeSelection::select_all </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Selects all the nodes. </p>
<p><em>selection</em> must be set to <a class="el" href="namespaceGtk.html#ga3e58167cfed0be4c87474c3bdca80d78a0001344812be65bc09b8acc4dcf8eec0" title="Any number of elements may be selected.The Ctrl key may be used to enlarge the selection, and Shiftkey to select between the focus and the child pointed to.Some widgets may also allow Click-drag to select a range of elements.">Gtk::SELECTION_MULTIPLE</a> mode. </p>

</div>
</div>
<a class="anchor" id="ae954b4f6786bbc3c06daaf4ac348bfc8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::TreeSelection::selected_foreach </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1TreeSelection.html#a31c44b43f5acd501a0a411c04bdf4706">SlotForeachPathAndIter</a>&amp;&#160;</td>
          <td class="paramname"><em>slot</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Calls a callback slot for each selected node. </p>
<p>Note that you cannot modify the tree or selection from within the callback function. As a result, <a class="el" href="classGtk_1_1TreeSelection.html#a601c30abb10d1a8f21b1688b594b5682" title="Creates a list of paths of all selected rows.">get_selected_rows()</a> might be more useful.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">slot</td><td>The function to call for each selected node. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a632c93a952e9597059647af3f7fd7f26"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::TreeSelection::selected_foreach_iter </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1TreeSelection.html#a0157e2ca1c2fa319a93913c782a7b640">SlotForeachIter</a>&amp;&#160;</td>
          <td class="paramname"><em>slot</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Calls a callback slot for each selected node. </p>
<p>Note that you cannot modify the tree or selection from within the callback function. As a result, <a class="el" href="classGtk_1_1TreeSelection.html#a601c30abb10d1a8f21b1688b594b5682" title="Creates a list of paths of all selected rows.">get_selected_rows()</a> might be more useful.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">slot</td><td>The function to call for each selected node. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ad2b0b0926ada175f4d363ecba50810f0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::TreeSelection::selected_foreach_path </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1TreeSelection.html#aab1d3454d5216f1574cb53bf54205f74">SlotForeachPath</a>&amp;&#160;</td>
          <td class="paramname"><em>slot</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Calls a callback slot for each selected node. </p>
<p>Note that you cannot modify the tree or selection from within the callback function. As a result, <a class="el" href="classGtk_1_1TreeSelection.html#a601c30abb10d1a8f21b1688b594b5682" title="Creates a list of paths of all selected rows.">get_selected_rows()</a> might be more useful.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">slot</td><td>The function to call for each selected node. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8c77e2bc04394554fe272c90aec1b064"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::TreeSelection::set_mode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#ga3e58167cfed0be4c87474c3bdca80d78">SelectionMode</a>&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the selection mode of the <em>selection</em>. </p>
<p>If the previous type was <a class="el" href="namespaceGtk.html#ga3e58167cfed0be4c87474c3bdca80d78a0001344812be65bc09b8acc4dcf8eec0" title="Any number of elements may be selected.The Ctrl key may be used to enlarge the selection, and Shiftkey to select between the focus and the child pointed to.Some widgets may also allow Click-drag to select a range of elements.">Gtk::SELECTION_MULTIPLE</a>, then the anchor is kept selected, if it was previously selected. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>The selection mode. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a7c408b8e2b45b4a65a2a9ad66d9602cf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::TreeSelection::set_select_function </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1TreeSelection.html#a2262e022dc13c1918af1127f42a158b1">SlotSelect</a>&amp;&#160;</td>
          <td class="paramname"><em>slot</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the selection callback slot. </p>
<p>If set, this function is called before any node is selected or unselected, giving some control over which nodes are selected.</p>
<p>The select function should return true if the state of the node may be toggled, and FALSE if the state of the node should be left unchanged.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">slot</td><td>The selection function. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ad880fbe3cf130fe7c46f410b7efe3c0f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1SignalProxy0.html">Glib::SignalProxy0</a>&lt; void &gt; Gtk::TreeSelection::signal_changed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section user"><dt>Slot Prototype:</dt><dd><code>void on_my_changed()</code></dd></dl>
<p>Emitted whenever the selection has (possibly) changed. Please note that this signal is mostly a hint. It may only be emitted once when a range of rows are selected, and it may occasionally be emitted when nothing has happened. </p>

</div>
</div>
<a class="anchor" id="a77e91cb1efd4cfcc05832aa97bc92a4c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::TreeSelection::unselect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp;&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unselects the row at <em>path</em>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>The <a class="el" href="classGtk_1_1TreePath.html" title="A path is essentially a potential node.">Gtk::TreePath</a> to be unselected. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a5ef57ea9bc6f15126ba43f8da4199b46"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::TreeSelection::unselect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp;&#160;</td>
          <td class="paramname"><em>start_path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1TreeModel.html#a06a713fecde31f2f1a7baeb0e3e2fea5">TreeModel::Path</a>&amp;&#160;</td>
          <td class="paramname"><em>end_path</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unselects a range of nodes, determined by <em>start_path</em> and <em>end_path</em> inclusive. </p>
<dl class="since_2_2"><dt><b><a class="el" href="since_2_2.html#_since_2_2000082">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">start_path</td><td>The initial node of the range. </td></tr>
    <tr><td class="paramname">end_path</td><td>The initial node of the range. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a5aa28ea9eea8f0b8a02a28a4d4472a08"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::TreeSelection::unselect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1TreeModel.html#a754e74cd833ff30e729f9b8d7daf4d8c">TreeModel::iterator</a>&amp;&#160;</td>
          <td class="paramname"><em>iter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unselects the specified iterator. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iter</td><td>The <a class="el" href="classGtk_1_1TreeIter.html" title="A Gtk::TreeModel::iterator is a reference to a specific node on a specific model.">Gtk::TreeIter</a> to be unselected. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aeac5766a4626733996641ed2583a09e5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::TreeSelection::unselect_all </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unselects all the nodes. </p>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a class="anchor" id="a3005841d69e579cf3a75e7a4699d4fa6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1TreeSelection.html">Gtk::TreeSelection</a> &gt; wrap </td>
          <td>(</td>
          <td class="paramtype">GtkTreeSelection *&#160;</td>
          <td class="paramname"><em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>take_copy</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">object</td><td>The C instance. </td></tr>
    <tr><td class="paramname">take_copy</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>gtkmm/treeselection.h</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>