<!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"/> <title>gtkmm: Gtk::ListViewText Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">gtkmm <span id="projectnumber">2.24.4</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class 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_1ListViewText.html">ListViewText</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#nested-classes">Classes</a> | <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-attribs">Protected Attributes</a> </div> <div class="headertitle"> <h1>Gtk::ListViewText Class Reference<div class="ingroups"><a class="el" href="group__Widgets.html">Widgets</a> | <a class="el" href="group__Containers.html">Container Widgets</a> | <a class="el" href="group__TreeView.html">TreeView Classes</a></div></h1> </div> </div> <div class="contents"> <!-- doxytag: class="Gtk::ListViewText" --><!-- doxytag: inherits="Gtk::TreeView" --> <p>A simple listbox which presents some lines of information in columns and lets the user select some of them. <a href="#_details">More...</a></p> <div class="dynheader"> Inheritance diagram for Gtk::ListViewText:</div> <div class="dyncontent"> <div class="center"><img src="classGtk_1_1ListViewText__inherit__graph.png" border="0" usemap="#Gtk_1_1ListViewText_inherit__map" alt="Inheritance graph"/></div> <map name="Gtk_1_1ListViewText_inherit__map" id="Gtk_1_1ListViewText_inherit__map"> <area shape="rect" id="node2" href="classGtk_1_1TreeView.html" title="The TreeView widget displays the model (Gtk::TreeModel) data and allows the user to interact with it..." alt="" coords="83,469,189,499"/><area shape="rect" id="node4" href="classGtk_1_1Container.html" title="Abstract container class." alt="" coords="79,392,193,421"/><area shape="rect" id="node6" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)" alt="" coords="89,315,183,344"/><area shape="rect" id="node8" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non-widget objects such as Gtk::Adjustme..." alt="" coords="21,237,115,267"/><area shape="rect" id="node10" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="21,160,115,189"/><area shape="rect" id="node12" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,131,112"/><area shape="rect" id="node14" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="11,5,125,35"/><area shape="rect" id="node16" href="classAtk_1_1Implementor.html" title="Atk::Implementor" alt="" coords="139,237,272,267"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <div class="dynheader"> Collaboration diagram for Gtk::ListViewText:</div> <div class="dyncontent"> <div class="center"><img src="classGtk_1_1ListViewText__coll__graph.png" border="0" usemap="#Gtk_1_1ListViewText_coll__map" alt="Collaboration graph"/></div> <map name="Gtk_1_1ListViewText_coll__map" id="Gtk_1_1ListViewText_coll__map"> <area shape="rect" id="node2" href="classGtk_1_1TreeView.html" title="The TreeView widget displays the model (Gtk::TreeModel) data and allows the user to interact with it..." alt="" coords="1819,108,1925,137"/><area shape="rect" id="node4" href="classGtk_1_1Container.html" title="Abstract container class." alt="" coords="1385,72,1500,101"/><area shape="rect" id="node6" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)" alt="" coords="1004,59,1097,88"/><area shape="rect" id="node8" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non-widget objects such as Gtk::Adjustme..." alt="" coords="687,5,780,35"/><area shape="rect" id="node10" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="420,5,513,35"/><area shape="rect" id="node12" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="172,5,297,35"/><area shape="rect" id="node14" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="5,5,120,35"/><area shape="rect" id="node16" href="classAtk_1_1Implementor.html" title="Atk::Implementor" alt="" coords="667,59,800,88"/><area shape="rect" id="node18" href="classGtk_1_1ListViewText_1_1TextModelColumns.html" title="Gtk::ListViewText::TextModelColumns" alt="" coords="1745,180,1999,209"/><area shape="rect" id="node20" href="classGtk_1_1TreeModelColumnRecord.html" title="Typedefed as TreeModel::ColumnRecord." alt="" coords="1335,139,1551,168"/><area shape="rect" id="node22" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00738.html" title="std::vector\< GType \>" alt="" coords="972,139,1129,168"/><area shape="rect" id="node26" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00738.html" title="std::vector\< _Tp, _Alloc \>" alt="" coords="640,163,827,192"/><area shape="rect" id="node29" href="classGtk_1_1TreeModelColumn.html" title="Gtk::TreeModelColumn\< Glib::ustring \>" alt="" coords="1308,192,1577,221"/><area shape="rect" id="node31" href="classGtk_1_1TreeModelColumnBase.html" title="Base class of TreeModelColumn templates." alt="" coords="635,225,832,255"/><area shape="rect" id="node33" href="classGtk_1_1TreeModelColumn.html" title="A Gtk::TreeModelColumn describes the C++ type of the data in a model column, and identifies that colu..." alt="" coords="949,244,1152,273"/><area shape="rect" id="node36" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html" title="Glib::RefPtr\< Gtk::ListStore \>" alt="" coords="1768,239,1976,268"/><area shape="rect" id="node38" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html" title="Glib::RefPtr\< T_CppObject \>" alt="" coords="1343,245,1543,275"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classGtk_1_1ListViewText-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="nested-classes"></a> Classes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText_1_1TextModelColumns.html">TextModelColumns</a></td></tr> <tr><td colspan="2"><h2><a name="pub-types"></a> Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00738.html">std::vector</a>< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#a1f97eb1ecf054d665dd557314853bd99">SelectionList</a></td></tr> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#aba3445363e7fd986e8344b5adcc37d1e">ListViewText</a> (guint columns_count, bool editable=false, <a class="el" href="group__gtkmmEnums.html#ga3e58167cfed0be4c87474c3bdca80d78">Gtk::SelectionMode</a> mode=Gtk::SELECTION_SINGLE)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#a6fe8de7b4c637aa0d130a6131d973382">~ListViewText</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#a7e773a6335b0bf999dedfe2df55667f1">set_column_title</a> (guint column, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& title)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a title to column <em>column</em>. <a href="#a7e773a6335b0bf999dedfe2df55667f1"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#ac2612f60c19125b61c4c0f76da8258ad">get_column_title</a> (guint column) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the title of column <em>column</em>. <a href="#ac2612f60c19125b61c4c0f76da8258ad"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">guint </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#a3cdeed88eaff196851646f35ecbc3bf4">append_text</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& column_one_value=<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Add a new row at the end of the list. <a href="#a3cdeed88eaff196851646f35ecbc3bf4"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#aaf4222fd257888b89914660c11740ea1">prepend_text</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& column_one_value=<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Insert a new row at the beginning of the list. <a href="#aaf4222fd257888b89914660c11740ea1"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#a9c7aa9e85ddceb4c6c3a2a1a6530e6ef">insert_text</a> (guint row, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& column_one_value=<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Insert a new row at an arbitrary position in the list. <a href="#a9c7aa9e85ddceb4c6c3a2a1a6530e6ef"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">guint </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#a9cea200ecaeefba042f49dfef4853baf">append</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& column_one_value=<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Add a new row at the end of the list. <a href="#a9cea200ecaeefba042f49dfef4853baf"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#ab2b03c5b1071bb700b1d057113fdfbf5">prepend</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& column_one_value=<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Insert a new row at the beginning of the list. <a href="#ab2b03c5b1071bb700b1d057113fdfbf5"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#aecf1cc656f786113d57b23ad7d886bb6">insert</a> (guint row, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& column_one_value=<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Insert a new row at an arbitrary position in the list. <a href="#aecf1cc656f786113d57b23ad7d886bb6"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#ad9e617ccce390aa6933a055def3139a9">clear_items</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Discard all row: <a href="#ad9e617ccce390aa6933a055def3139a9"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#a4462ff598156aa5064b3f810b75f01bb">get_text</a> (guint row, guint column=0) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Obtain the value of an existing cell from the list. <a href="#a4462ff598156aa5064b3f810b75f01bb"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#a2d4b861b95e2ab0ae103b9970b1ca9bd">set_text</a> (guint row, guint column, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01191.html#ga1c9e781d8d15a3814a601f471797c825">value</a>)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Change an existing value of cell of the list. <a href="#a2d4b861b95e2ab0ae103b9970b1ca9bd"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#a06c8b4f7c6144b1a50c22908f773b896">set_text</a> (guint row, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&<a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01191.html#ga1c9e781d8d15a3814a601f471797c825">value</a>)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Change an existing value of a column 0 of a row of the list. <a href="#a06c8b4f7c6144b1a50c22908f773b896"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">guint </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#a97aac028c9a130b1c08d7a07dce09f08">size</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">guint </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#aaf1a2f95f4909c4157fd774027c5f052">get_num_columns</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00738.html">SelectionList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#a2a3d953ef7751801cbe406b19f3308ff">get_selected</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a vector of the indexes of the selected rows. <a href="#a2a3d953ef7751801cbe406b19f3308ff"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pro-attribs"></a> Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1ListStore.html">Gtk::ListStore</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#a43b177deaa12148493b06918ab061699">m_model</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1ListViewText_1_1TextModelColumns.html">TextModelColumns</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ListViewText.html#a111c03fad9d8cb07d7b915c01eb64c8e">m_model_columns</a></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p>A simple listbox which presents some lines of information in columns and lets the user select some of them. </p> <p>This is a convenience class, based on <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>, which allows only text values and does not allow child items. In most cases you will actually need the functionality offered by a real <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> with your own type-safe <a class="el" href="classGtk_1_1TreeModel.html#a58f10daabaa507b4c2473c9d1b6fa584">Gtk::TreeModel::ColumnRecord</a>.</p> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000393">Since gtkmm 2.10:</a></b></dt><dd></dd></dl> </div><hr/><h2>Member Typedef Documentation</h2> <a class="anchor" id="a1f97eb1ecf054d665dd557314853bd99"></a><!-- doxytag: member="Gtk::ListViewText::SelectionList" ref="a1f97eb1ecf054d665dd557314853bd99" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00738.html">std::vector</a><int> <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00738.html">Gtk::ListViewText::SelectionList</a></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="aba3445363e7fd986e8344b5adcc37d1e"></a><!-- doxytag: member="Gtk::ListViewText::ListViewText" ref="aba3445363e7fd986e8344b5adcc37d1e" args="(guint columns_count, bool editable=false, Gtk::SelectionMode mode=Gtk::SELECTION_SINGLE)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gtk::ListViewText::ListViewText </td> <td>(</td> <td class="paramtype">guint </td> <td class="paramname"><em>columns_count</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>editable</em> = <code>false</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#ga3e58167cfed0be4c87474c3bdca80d78">Gtk::SelectionMode</a> </td> <td class="paramname"><em>mode</em> = <code>Gtk::SELECTION_SINGLE</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a6fe8de7b4c637aa0d130a6131d973382"></a><!-- doxytag: member="Gtk::ListViewText::~ListViewText" ref="a6fe8de7b4c637aa0d130a6131d973382" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual Gtk::ListViewText::~ListViewText </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a9cea200ecaeefba042f49dfef4853baf"></a><!-- doxytag: member="Gtk::ListViewText::append" ref="a9cea200ecaeefba042f49dfef4853baf" args="(const Glib::ustring &column_one_value=Glib::ustring())" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">guint Gtk::ListViewText::append </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>column_one_value</em> = <code><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Add a new row at the end of the list. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">column_one_value</td><td>the new text for the new row, column 0 </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the number of the row added </dd></dl> </div> </div> <a class="anchor" id="a3cdeed88eaff196851646f35ecbc3bf4"></a><!-- doxytag: member="Gtk::ListViewText::append_text" ref="a3cdeed88eaff196851646f35ecbc3bf4" args="(const Glib::ustring &column_one_value=Glib::ustring())" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">guint Gtk::ListViewText::append_text </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>column_one_value</em> = <code><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Add a new row at the end of the list. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">column_one_value</td><td>the new text for the new row, column 0 </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the number of the row added</dd></dl> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000176">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1ListViewText.html#a9cea200ecaeefba042f49dfef4853baf" title="Add a new row at the end of the list.">append()</a>. </dd></dl> </div> </div> <a class="anchor" id="ad9e617ccce390aa6933a055def3139a9"></a><!-- doxytag: member="Gtk::ListViewText::clear_items" ref="ad9e617ccce390aa6933a055def3139a9" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::ListViewText::clear_items </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Discard all row: </p> </div> </div> <a class="anchor" id="ac2612f60c19125b61c4c0f76da8258ad"></a><!-- doxytag: member="Gtk::ListViewText::get_column_title" ref="ac2612f60c19125b61c4c0f76da8258ad" args="(guint column) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> Gtk::ListViewText::get_column_title </td> <td>(</td> <td class="paramtype">guint </td> <td class="paramname"><em>column</em></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets the title of column <em>column</em>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">column</td><td>the column number. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the title of column <em>column</em>. </dd></dl> </div> </div> <a class="anchor" id="aaf1a2f95f4909c4157fd774027c5f052"></a><!-- doxytag: member="Gtk::ListViewText::get_num_columns" ref="aaf1a2f95f4909c4157fd774027c5f052" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">guint Gtk::ListViewText::get_num_columns </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>the number of columns in the listbox </dd></dl> </div> </div> <a class="anchor" id="a2a3d953ef7751801cbe406b19f3308ff"></a><!-- doxytag: member="Gtk::ListViewText::get_selected" ref="a2a3d953ef7751801cbe406b19f3308ff" args="()" --> <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/a00738.html">SelectionList</a> Gtk::ListViewText::get_selected </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Returns a vector of the indexes of the selected rows. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>a SelectionList with the selection results </dd></dl> </div> </div> <a class="anchor" id="a4462ff598156aa5064b3f810b75f01bb"></a><!-- doxytag: member="Gtk::ListViewText::get_text" ref="a4462ff598156aa5064b3f810b75f01bb" args="(guint row, guint column=0) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> Gtk::ListViewText::get_text </td> <td>(</td> <td class="paramtype">guint </td> <td class="paramname"><em>row</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">guint </td> <td class="paramname"><em>column</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Obtain the value of an existing cell from the list. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">row</td><td>the number of the row in the listbox. </td></tr> <tr><td class="paramname">column</td><td>the number of the column in the row. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the value of that cell, if it exists. </dd></dl> </div> </div> <a class="anchor" id="aecf1cc656f786113d57b23ad7d886bb6"></a><!-- doxytag: member="Gtk::ListViewText::insert" ref="aecf1cc656f786113d57b23ad7d886bb6" args="(guint row, const Glib::ustring &column_one_value=Glib::ustring())" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::ListViewText::insert </td> <td>(</td> <td class="paramtype">guint </td> <td class="paramname"><em>row</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>column_one_value</em> = <code><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Insert a new row at an arbitrary position in the list. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">row</td><td>The row number </td></tr> <tr><td class="paramname">column_one_value</td><td>the new text for the new row, column 0 </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a9c7aa9e85ddceb4c6c3a2a1a6530e6ef"></a><!-- doxytag: member="Gtk::ListViewText::insert_text" ref="a9c7aa9e85ddceb4c6c3a2a1a6530e6ef" args="(guint row, const Glib::ustring &column_one_value=Glib::ustring())" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::ListViewText::insert_text </td> <td>(</td> <td class="paramtype">guint </td> <td class="paramname"><em>row</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>column_one_value</em> = <code><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Insert a new row at an arbitrary position in the list. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">row</td><td>The row number </td></tr> <tr><td class="paramname">column_one_value</td><td>the new text for the new row, column 0</td></tr> </table> </dd> </dl> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000178">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1ListViewText.html#aecf1cc656f786113d57b23ad7d886bb6" title="Insert a new row at an arbitrary position in the list.">insert()</a>. </dd></dl> </div> </div> <a class="anchor" id="ab2b03c5b1071bb700b1d057113fdfbf5"></a><!-- doxytag: member="Gtk::ListViewText::prepend" ref="ab2b03c5b1071bb700b1d057113fdfbf5" args="(const Glib::ustring &column_one_value=Glib::ustring())" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::ListViewText::prepend </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>column_one_value</em> = <code><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Insert a new row at the beginning of the list. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">column_one_value</td><td>the new text for the new row, column 0 </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="aaf4222fd257888b89914660c11740ea1"></a><!-- doxytag: member="Gtk::ListViewText::prepend_text" ref="aaf4222fd257888b89914660c11740ea1" args="(const Glib::ustring &column_one_value=Glib::ustring())" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::ListViewText::prepend_text </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>column_one_value</em> = <code><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Insert a new row at the beginning of the list. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">column_one_value</td><td>the new text for the new row, column 0</td></tr> </table> </dd> </dl> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000177">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1ListViewText.html#ab2b03c5b1071bb700b1d057113fdfbf5" title="Insert a new row at the beginning of the list.">prepend()</a>. </dd></dl> </div> </div> <a class="anchor" id="a7e773a6335b0bf999dedfe2df55667f1"></a><!-- doxytag: member="Gtk::ListViewText::set_column_title" ref="a7e773a6335b0bf999dedfe2df55667f1" args="(guint column, const Glib::ustring &title)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::ListViewText::set_column_title </td> <td>(</td> <td class="paramtype">guint </td> <td class="paramname"><em>column</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>title</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Adds a title to column <em>column</em>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">column</td><td>the column number. </td></tr> <tr><td class="paramname">title</td><td>the title for column <em>column</em>. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a06c8b4f7c6144b1a50c22908f773b896"></a><!-- doxytag: member="Gtk::ListViewText::set_text" ref="a06c8b4f7c6144b1a50c22908f773b896" args="(guint row, const Glib::ustring &value)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::ListViewText::set_text </td> <td>(</td> <td class="paramtype">guint </td> <td class="paramname"><em>row</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>value</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Change an existing value of a column 0 of a row of the list. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">row</td><td>the number of the row in the list. </td></tr> <tr><td class="paramname">value</td><td>the new contents of column 0 of the row. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a2d4b861b95e2ab0ae103b9970b1ca9bd"></a><!-- doxytag: member="Gtk::ListViewText::set_text" ref="a2d4b861b95e2ab0ae103b9970b1ca9bd" args="(guint row, guint column, const Glib::ustring &value)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::ListViewText::set_text </td> <td>(</td> <td class="paramtype">guint </td> <td class="paramname"><em>row</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">guint </td> <td class="paramname"><em>column</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>value</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Change an existing value of cell of the list. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">row</td><td>the number of the row in the list. </td></tr> <tr><td class="paramname">column</td><td>the number of the column in the row. </td></tr> <tr><td class="paramname">value</td><td>the new contents of that row and column. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a97aac028c9a130b1c08d7a07dce09f08"></a><!-- doxytag: member="Gtk::ListViewText::size" ref="a97aac028c9a130b1c08d7a07dce09f08" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">guint Gtk::ListViewText::size </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>the number of rows in the listbox </dd></dl> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="a43b177deaa12148493b06918ab061699"></a><!-- doxytag: member="Gtk::ListViewText::m_model" ref="a43b177deaa12148493b06918ab061699" args="" --> <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><<a class="el" href="classGtk_1_1ListStore.html">Gtk::ListStore</a>> <a class="el" href="classGtk_1_1ListViewText.html#a43b177deaa12148493b06918ab061699">Gtk::ListViewText::m_model</a><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a111c03fad9d8cb07d7b915c01eb64c8e"></a><!-- doxytag: member="Gtk::ListViewText::m_model_columns" ref="a111c03fad9d8cb07d7b915c01eb64c8e" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGtk_1_1ListViewText_1_1TextModelColumns.html">TextModelColumns</a> <a class="el" href="classGtk_1_1ListViewText.html#a111c03fad9d8cb07d7b915c01eb64c8e">Gtk::ListViewText::m_model_columns</a><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>gtkmm/listviewtext.h</li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Tue Jun 25 2013 for gtkmm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>