Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > fe6e02720319b05688a94261a5d8b124 > files > 285

gtkmm2.4-doc-2.24.4-2.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"/>
<title>gtkmm: Gtk::ComboBoxText 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&#160;<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&#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_1ComboBoxText.html">ComboBoxText</a> </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> </div>
  <div class="headertitle">
<h1>Gtk::ComboBoxText Class Reference<div class="ingroups"><a class="el" href="group__Widgets.html">Widgets</a></div></h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="Gtk::ComboBoxText" --><!-- doxytag: inherits="Gtk::ComboBox" -->
<p>This is a specialisation of the <a class="el" href="classGtk_1_1ComboBox.html" title="A widget used to choose from a list of items.">ComboBox</a> which has one column of text (a simple list), and appropriate methods for setting and getting the text. <a href="#_details">More...</a></p>
<div class="dynheader">
Inheritance diagram for Gtk::ComboBoxText:</div>
<div class="dyncontent">
<div class="center"><img src="classGtk_1_1ComboBoxText__inherit__graph.png" border="0" usemap="#Gtk_1_1ComboBoxText_inherit__map" alt="Inheritance graph"/></div>
<map name="Gtk_1_1ComboBoxText_inherit__map" id="Gtk_1_1ComboBoxText_inherit__map">
<area shape="rect" id="node2" href="classGtk_1_1ComboBox.html" title="A widget used to choose from a list of items." alt="" coords="179,547,301,576"/><area shape="rect" id="node4" href="classGtk_1_1Bin.html" title="A container with just one child." alt="" coords="160,469,232,499"/><area shape="rect" id="node6" href="classGtk_1_1Container.html" title="Abstract container class." alt="" coords="124,392,239,421"/><area shape="rect" id="node8" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)" alt="" coords="117,315,211,344"/><area shape="rect" id="node10" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non&#45;widget objects such as Gtk::Adjustme..." alt="" coords="5,237,99,267"/><area shape="rect" id="node12" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="63,160,156,189"/><area shape="rect" id="node14" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="124,83,249,112"/><area shape="rect" id="node22" href="../../../glibmm-2.4/reference/html/classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="209,160,319,189"/><area shape="rect" id="node16" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="129,5,244,35"/><area shape="rect" id="node18" href="classAtk_1_1Implementor.html" title="Atk::Implementor" alt="" coords="123,237,256,267"/><area shape="rect" id="node20" href="classGtk_1_1CellLayout.html" title="An interface for packing cells." alt="" coords="235,315,352,344"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for Gtk::ComboBoxText:</div>
<div class="dyncontent">
<div class="center"><img src="classGtk_1_1ComboBoxText__coll__graph.png" border="0" usemap="#Gtk_1_1ComboBoxText_coll__map" alt="Collaboration graph"/></div>
<map name="Gtk_1_1ComboBoxText_coll__map" id="Gtk_1_1ComboBoxText_coll__map">
<area shape="rect" id="node2" href="classGtk_1_1ComboBox.html" title="A widget used to choose from a list of items." alt="" coords="2052,69,2175,99"/><area shape="rect" id="node4" href="classGtk_1_1Bin.html" title="A container with just one child." alt="" coords="1687,69,1759,99"/><area shape="rect" id="node6" href="classGtk_1_1Container.html" title="Abstract container class." alt="" coords="1273,69,1388,99"/><area shape="rect" id="node8" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)" alt="" coords="967,69,1060,99"/><area shape="rect" id="node10" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non&#45;widget objects such as Gtk::Adjustme..." alt="" coords="583,59,676,88"/><area shape="rect" id="node12" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="359,59,452,88"/><area shape="rect" id="node14" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="172,31,297,60"/><area shape="rect" id="node22" href="../../../glibmm-2.4/reference/html/classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="351,5,460,35"/><area shape="rect" id="node16" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="5,31,120,60"/><area shape="rect" id="node18" href="classAtk_1_1Implementor.html" title="Atk::Implementor" alt="" coords="563,112,696,141"/><area shape="rect" id="node20" href="classGtk_1_1CellLayout.html" title="An interface for packing cells." alt="" coords="772,17,889,47"/><area shape="rect" id="node25" href="classGtk_1_1ComboBoxText_1_1TextModelColumns.html" title="Gtk::ComboBoxText::TextModelColumns" alt="" coords="1976,132,2251,161"/><area shape="rect" id="node27" href="classGtk_1_1TreeModelColumnRecord.html" title="Typedefed as TreeModel::ColumnRecord." alt="" coords="1615,132,1831,161"/><area shape="rect" id="node29" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00738.html" title="std::vector\&lt; GType \&gt;" alt="" coords="1252,132,1409,161"/><area shape="rect" id="node33" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00738.html" title="std::vector\&lt; _Tp, _Alloc \&gt;" alt="" coords="920,123,1107,152"/><area shape="rect" id="node36" href="classGtk_1_1TreeModelColumn.html" title="Gtk::TreeModelColumn\&lt; Glib::ustring \&gt;" alt="" coords="1588,189,1857,219"/><area shape="rect" id="node38" href="classGtk_1_1TreeModelColumnBase.html" title="Base class of TreeModelColumn templates." alt="" coords="915,233,1112,263"/><area shape="rect" id="node40" 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="1229,189,1432,219"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classGtk_1_1ComboBoxText-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 &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText_1_1TextModelColumns.html">TextModelColumns</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">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#a77c48f90f4e954e23851d2b159ad2bf7">ComboBoxText</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new empty <a class="el" href="classGtk_1_1ComboBoxText.html" title="This is a specialisation of the ComboBox which has one column of text (a simple list), and appropriate methods for setting and getting the text.">ComboBoxText</a>, without an entry. <a href="#a77c48f90f4e954e23851d2b159ad2bf7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#a1a92bff1703cad40feb74e915d9ba3b3">ComboBoxText</a> (bool has_entry)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new empty <a class="el" href="classGtk_1_1ComboBoxText.html" title="This is a specialisation of the ComboBox which has one column of text (a simple list), and appropriate methods for setting and getting the text.">ComboBoxText</a>, optionally with an entry. <a href="#a1a92bff1703cad40feb74e915d9ba3b3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#ad43c1cc0325585fd53908d5d7038657e">append</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add an item to the end of the drop-down list. <a href="#ad43c1cc0325585fd53908d5d7038657e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#acaabb30f27480e110ff50ad6152c70be">insert</a> (int position, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; text)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#aa26a9271d840cae4abcaf451924675ee">prepend</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add an item to the beginning of the drop-down list. <a href="#aa26a9271d840cae4abcaf451924675ee"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#ab6a4b6f833c964144ecb9ce79b9f949d">append_text</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add an item to the end of the drop-down list. <a href="#ab6a4b6f833c964144ecb9ce79b9f949d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#a9c8f65b084135fefe8831a60294298ee">insert_text</a> (int position, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; text)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#a6a1e6e454739ae9b1bd4a56b1de72189">prepend_text</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add an item to the beginning of the drop-down list. <a href="#a6a1e6e454739ae9b1bd4a56b1de72189"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#aec3e17b23e8b13957e25547f1ef08d05">clear_items</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove all items from the drop-down menu. <a href="#aec3e17b23e8b13957e25547f1ef08d05"></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>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#ae05272a2c05da608573cd1d19382bdf2">get_active_text</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the currently-chosen item. <a href="#ae05272a2c05da608573cd1d19382bdf2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#ab1c6c5c2567690ef2f59b10a493e0b3c">set_active_text</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the currently-chosen item if it matches the specified text. <a href="#ab1c6c5c2567690ef2f59b10a493e0b3c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#aff2f7bdb9e8796eb4f30fba36a37435e">clear</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#ae2820f73e92df9abacaae71bed2d244a">remove_all</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove all items from the drop-down menu. <a href="#ae2820f73e92df9abacaae71bed2d244a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#ad7a41e39e26df6fbe327c5f68f0b7920">remove_text</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove the specified item if it is in the drop-down menu. <a href="#ad7a41e39e26df6fbe327c5f68f0b7920"></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="el" href="classGtk_1_1ComboBoxText_1_1TextModelColumns.html">TextModelColumns</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#a9097287174645c2bb861dccc0b759912">m_text_columns</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This is a specialisation of the <a class="el" href="classGtk_1_1ComboBox.html" title="A widget used to choose from a list of items.">ComboBox</a> which has one column of text (a simple list), and appropriate methods for setting and getting the text. </p>
<p>You should not call <a class="el" href="classGtk_1_1ComboBox.html#ab0b1ad19e9ffb50b04eb04431aaa3fd2" title="Sets the model used by combo_box to be model.">set_model()</a> or attempt to pack more cells into this combo box via its <a class="el" href="classGtk_1_1CellLayout.html" title="An interface for packing cells.">CellLayout</a> base class.</p>
<p>Note that you cannot use this class with Gnome::Glade::Xml::get_widget_derived() to wrap a GtkComboBox added in the Glade user interface designer, because Glade adds its own <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> instead of using 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> from this class. You could use a normal <a class="el" href="classGtk_1_1ComboBox.html" title="A widget used to choose from a list of items.">Gtk::ComboBox</a> instead, though you can not use Glade to add rows to a <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> that is defined in your C++ code. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a77c48f90f4e954e23851d2b159ad2bf7"></a><!-- doxytag: member="Gtk::ComboBoxText::ComboBoxText" ref="a77c48f90f4e954e23851d2b159ad2bf7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::ComboBoxText::ComboBoxText </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a new empty <a class="el" href="classGtk_1_1ComboBoxText.html" title="This is a specialisation of the ComboBox which has one column of text (a simple list), and appropriate methods for setting and getting the text.">ComboBoxText</a>, without an entry. </p>

</div>
</div>
<a class="anchor" id="a1a92bff1703cad40feb74e915d9ba3b3"></a><!-- doxytag: member="Gtk::ComboBoxText::ComboBoxText" ref="a1a92bff1703cad40feb74e915d9ba3b3" args="(bool has_entry)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::ComboBoxText::ComboBoxText </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>has_entry</em></td><td>)</td>
          <td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a new empty <a class="el" href="classGtk_1_1ComboBoxText.html" title="This is a specialisation of the ComboBox which has one column of text (a simple list), and appropriate methods for setting and getting the text.">ComboBoxText</a>, optionally with an entry. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">has_entry</td><td>If this is true then this will have an <a class="el" href="classGtk_1_1Entry.html" title="A single line text entry field.">Entry</a> widget. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ad43c1cc0325585fd53908d5d7038657e"></a><!-- doxytag: member="Gtk::ComboBoxText::append" ref="ad43c1cc0325585fd53908d5d7038657e" args="(const Glib::ustring &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::ComboBoxText::append </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add an item to the end of the drop-down list. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>The text for the item. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ab6a4b6f833c964144ecb9ce79b9f949d"></a><!-- doxytag: member="Gtk::ComboBoxText::append_text" ref="ab6a4b6f833c964144ecb9ce79b9f949d" args="(const Glib::ustring &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::ComboBoxText::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> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add an item to the end of the drop-down list. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>The text for the item.</td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000171">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1ComboBoxText.html#ad43c1cc0325585fd53908d5d7038657e" title="Add an item to the end of the drop-down list.">append()</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="aff2f7bdb9e8796eb4f30fba36a37435e"></a><!-- doxytag: member="Gtk::ComboBoxText::clear" ref="aff2f7bdb9e8796eb4f30fba36a37435e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::ComboBoxText::clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000175">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1ComboBoxText.html#ae2820f73e92df9abacaae71bed2d244a" title="Remove all items from the drop-down menu.">remove_all()</a>. Since 2.8. </dd></dl>

<p>Reimplemented from <a class="el" href="classGtk_1_1CellLayout.html#ab87faf407763c4df8985ac7ff985fad8">Gtk::CellLayout</a>.</p>

</div>
</div>
<a class="anchor" id="aec3e17b23e8b13957e25547f1ef08d05"></a><!-- doxytag: member="Gtk::ComboBoxText::clear_items" ref="aec3e17b23e8b13957e25547f1ef08d05" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::ComboBoxText::clear_items </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Remove all items from the drop-down menu. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000174">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1ComboBoxText.html#ae2820f73e92df9abacaae71bed2d244a" title="Remove all items from the drop-down menu.">remove_all()</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="ae05272a2c05da608573cd1d19382bdf2"></a><!-- doxytag: member="Gtk::ComboBoxText::get_active_text" ref="ae05272a2c05da608573cd1d19382bdf2" args="() 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::ComboBoxText::get_active_text </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the currently-chosen item. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The text of the active item. </dd></dl>

</div>
</div>
<a class="anchor" id="acaabb30f27480e110ff50ad6152c70be"></a><!-- doxytag: member="Gtk::ComboBoxText::insert" ref="acaabb30f27480e110ff50ad6152c70be" args="(int position, const Glib::ustring &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::ComboBoxText::insert </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>position</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> &amp;&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a9c8f65b084135fefe8831a60294298ee"></a><!-- doxytag: member="Gtk::ComboBoxText::insert_text" ref="a9c8f65b084135fefe8831a60294298ee" args="(int position, const Glib::ustring &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::ComboBoxText::insert_text </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>position</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> &amp;&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000172">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1ComboBoxText.html#acaabb30f27480e110ff50ad6152c70be">insert()</a>.</dd></dl>

</div>
</div>
<a class="anchor" id="aa26a9271d840cae4abcaf451924675ee"></a><!-- doxytag: member="Gtk::ComboBoxText::prepend" ref="aa26a9271d840cae4abcaf451924675ee" args="(const Glib::ustring &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::ComboBoxText::prepend </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add an item to the beginning of the drop-down list. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>The text for the item. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a6a1e6e454739ae9b1bd4a56b1de72189"></a><!-- doxytag: member="Gtk::ComboBoxText::prepend_text" ref="a6a1e6e454739ae9b1bd4a56b1de72189" args="(const Glib::ustring &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::ComboBoxText::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> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add an item to the beginning of the drop-down list. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>The text for the item.</td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000173">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1ComboBoxText.html#aa26a9271d840cae4abcaf451924675ee" title="Add an item to the beginning of the drop-down list.">prepend()</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="ae2820f73e92df9abacaae71bed2d244a"></a><!-- doxytag: member="Gtk::ComboBoxText::remove_all" ref="ae2820f73e92df9abacaae71bed2d244a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::ComboBoxText::remove_all </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Remove all items from the drop-down menu. </p>

</div>
</div>
<a class="anchor" id="ad7a41e39e26df6fbe327c5f68f0b7920"></a><!-- doxytag: member="Gtk::ComboBoxText::remove_text" ref="ad7a41e39e26df6fbe327c5f68f0b7920" args="(const Glib::ustring &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::ComboBoxText::remove_text </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Remove the specified item if it is in the drop-down menu. </p>
<p>The text of the item that should be removed. </p>

</div>
</div>
<a class="anchor" id="ab1c6c5c2567690ef2f59b10a493e0b3c"></a><!-- doxytag: member="Gtk::ComboBoxText::set_active_text" ref="ab1c6c5c2567690ef2f59b10a493e0b3c" args="(const Glib::ustring &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::ComboBoxText::set_active_text </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the currently-chosen item if it matches the specified text. </p>
<p>The text of the item that should be selected. </p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a9097287174645c2bb861dccc0b759912"></a><!-- doxytag: member="Gtk::ComboBoxText::m_text_columns" ref="a9097287174645c2bb861dccc0b759912" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGtk_1_1ComboBoxText_1_1TextModelColumns.html">TextModelColumns</a> <a class="el" href="classGtk_1_1ComboBoxText.html#a9097287174645c2bb861dccc0b759912">Gtk::ComboBoxText::m_text_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/comboboxtext.h</li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Tue Jun 25 2013 for gtkmm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>