1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
4
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5
<title>gtkmm: Gtk::ComboBoxText Class Reference</title>
6
<link href="tabs.css" rel="stylesheet" type="text/css"/>
7
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
10
<!-- Generated by Doxygen 1.7.3 -->
13
<table cellspacing="0" cellpadding="0">
15
<tr style="height: 56px;">
16
<td style="padding-left: 0.5em;">
17
<div id="projectname">gtkmm <span id="projectnumber">2.24.2</span></div>
23
<div id="navrow1" class="tabs">
25
<li><a href="index.html"><span>Main Page</span></a></li>
26
<li><a href="pages.html"><span>Related Pages</span></a></li>
27
<li><a href="modules.html"><span>Modules</span></a></li>
28
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
29
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
32
<div id="navrow2" class="tabs2">
34
<li><a href="annotated.html"><span>Class List</span></a></li>
35
<li><a href="classes.html"><span>Class Index</span></a></li>
36
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
37
<li><a href="functions.html"><span>Class Members</span></a></li>
40
<div id="nav-path" class="navpath">
42
<li class="navelem"><a class="el" href="namespaceGtk.html">Gtk</a> </li>
43
<li class="navelem"><a class="el" href="classGtk_1_1ComboBoxText.html">ComboBoxText</a> </li>
49
<a href="#nested-classes">Classes</a> |
50
<a href="#pub-methods">Public Member Functions</a> |
51
<a href="#pro-attribs">Protected Attributes</a> </div>
52
<div class="headertitle">
53
<h1>Gtk::ComboBoxText Class Reference<div class="ingroups"><a class="el" href="group__Widgets.html">Widgets</a></div></h1> </div>
55
<div class="contents">
56
<!-- doxytag: class="Gtk::ComboBoxText" --><!-- doxytag: inherits="Gtk::ComboBox" -->
57
<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>
58
<div class="dynheader">
59
Inheritance diagram for Gtk::ComboBoxText:</div>
60
<div class="dyncontent">
61
<div class="center"><img src="classGtk_1_1ComboBoxText__inherit__graph.png" border="0" usemap="#Gtk_1_1ComboBoxText_inherit__map" alt="Inheritance graph"/></div>
62
<map name="Gtk_1_1ComboBoxText_inherit__map" id="Gtk_1_1ComboBoxText_inherit__map">
63
<area shape="rect" id="node2" href="classGtk_1_1ComboBox.html" title="A widget used to choose from a list of items." alt="" coords="168,566,283,597"/><area shape="rect" id="node4" href="classGtk_1_1Bin.html" title="A container with just one child." alt="" coords="148,486,217,517"/><area shape="rect" id="node6" href="classGtk_1_1Container.html" title="Abstract container class." alt="" coords="116,406,223,437"/><area shape="rect" id="node8" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)" alt="" coords="107,326,197,357"/><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-widget objects such as Gtk::Adjustme..." alt="" coords="5,246,93,277"/><area shape="rect" id="node12" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="57,166,148,197"/><area shape="rect" id="node14" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="116,86,236,117"/><area shape="rect" id="node22" href="../../../glibmm-2.4/reference/html/classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="199,166,303,197"/><area shape="rect" id="node16" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="123,6,229,37"/><area shape="rect" id="node18" href="classAtk_1_1Implementor.html" title="Atk::Implementor" alt="" coords="117,246,240,277"/><area shape="rect" id="node20" href="classGtk_1_1CellLayout.html" title="An interface for packing cells." alt="" coords="221,326,333,357"/></map>
64
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
65
<div class="dynheader">
66
Collaboration diagram for Gtk::ComboBoxText:</div>
67
<div class="dyncontent">
68
<div class="center"><img src="classGtk_1_1ComboBoxText__coll__graph.png" border="0" usemap="#Gtk_1_1ComboBoxText_coll__map" alt="Collaboration graph"/></div>
69
<map name="Gtk_1_1ComboBoxText_coll__map" id="Gtk_1_1ComboBoxText_coll__map">
70
<area shape="rect" id="node2" href="classGtk_1_1ComboBox.html" title="A widget used to choose from a list of items." alt="" coords="1931,69,2045,99"/><area shape="rect" id="node4" href="classGtk_1_1Bin.html" title="A container with just one child." alt="" coords="1589,69,1659,99"/><area shape="rect" id="node6" href="classGtk_1_1Container.html" title="Abstract container class." alt="" coords="1208,69,1315,99"/><area shape="rect" id="node8" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)" alt="" coords="917,69,1008,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-widget objects such as Gtk::Adjustme..." alt="" coords="556,58,644,89"/><area shape="rect" id="node12" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="343,58,433,89"/><area shape="rect" id="node14" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="164,30,284,61"/><area shape="rect" id="node22" href="../../../glibmm-2.4/reference/html/classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="336,5,440,35"/><area shape="rect" id="node16" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="5,30,112,61"/><area shape="rect" id="node18" href="classAtk_1_1Implementor.html" title="Atk::Implementor" alt="" coords="539,111,661,142"/><area shape="rect" id="node20" href="classGtk_1_1CellLayout.html" title="An interface for packing cells." alt="" coords="733,17,845,47"/><area shape="rect" id="node25" href="classGtk_1_1ComboBoxText_1_1TextModelColumns.html" title="Gtk::ComboBoxText::TextModelColumns" alt="" coords="1859,131,2117,162"/><area shape="rect" id="node27" href="classGtk_1_1TreeModelColumnRecord.html" title="Typedefed as TreeModel::ColumnRecord." alt="" coords="1523,131,1725,162"/><area shape="rect" id="node29" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00902.html" title="std::vector\< GType \>" alt="" coords="1188,131,1335,162"/><area shape="rect" id="node33" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00902.html" title="std::vector\< _Tp, _Alloc \>" alt="" coords="876,122,1049,153"/><area shape="rect" id="node36" href="classGtk_1_1TreeModelColumn.html" title="Gtk::TreeModelColumn\< Glib::ustring \>" alt="" coords="1500,189,1748,219"/><area shape="rect" id="node38" href="classGtk_1_1TreeModelColumnBase.html" title="Base class of TreeModelColumn templates." alt="" coords="871,233,1055,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="1168,189,1355,219"/></map>
71
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
73
<p><a href="classGtk_1_1ComboBoxText-members.html">List of all members.</a></p>
74
<table class="memberdecls">
75
<tr><td colspan="2"><h2><a name="nested-classes"></a>
76
Classes</h2></td></tr>
77
<tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText_1_1TextModelColumns.html">TextModelColumns</a></td></tr>
78
<tr><td colspan="2"><h2><a name="pub-methods"></a>
79
Public Member Functions</h2></td></tr>
80
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#a77c48f90f4e954e23851d2b159ad2bf7">ComboBoxText</a> ()</td></tr>
81
<tr><td class="mdescLeft"> </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>
82
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#a1a92bff1703cad40feb74e915d9ba3b3">ComboBoxText</a> (bool has_entry)</td></tr>
83
<tr><td class="mdescLeft"> </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>
84
<tr><td class="memItemLeft" align="right" valign="top">void </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>& text)</td></tr>
85
<tr><td class="mdescLeft"> </td><td class="mdescRight">Add an item to the end of the drop-down list. <a href="#ad43c1cc0325585fd53908d5d7038657e"></a><br/></td></tr>
86
<tr><td class="memItemLeft" align="right" valign="top">void </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>& text)</td></tr>
87
<tr><td class="memItemLeft" align="right" valign="top">void </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>& text)</td></tr>
88
<tr><td class="mdescLeft"> </td><td class="mdescRight">Add an item to the beginning of the drop-down list. <a href="#aa26a9271d840cae4abcaf451924675ee"></a><br/></td></tr>
89
<tr><td class="memItemLeft" align="right" valign="top">void </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>& text)</td></tr>
90
<tr><td class="mdescLeft"> </td><td class="mdescRight">Add an item to the end of the drop-down list. <a href="#ab6a4b6f833c964144ecb9ce79b9f949d"></a><br/></td></tr>
91
<tr><td class="memItemLeft" align="right" valign="top">void </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>& text)</td></tr>
92
<tr><td class="memItemLeft" align="right" valign="top">void </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>& text)</td></tr>
93
<tr><td class="mdescLeft"> </td><td class="mdescRight">Add an item to the beginning of the drop-down list. <a href="#a6a1e6e454739ae9b1bd4a56b1de72189"></a><br/></td></tr>
94
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#aec3e17b23e8b13957e25547f1ef08d05">clear_items</a> ()</td></tr>
95
<tr><td class="mdescLeft"> </td><td class="mdescRight">Remove all items from the drop-down menu. <a href="#aec3e17b23e8b13957e25547f1ef08d05"></a><br/></td></tr>
96
<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_1ComboBoxText.html#ae05272a2c05da608573cd1d19382bdf2">get_active_text</a> () const </td></tr>
97
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the currently-chosen item. <a href="#ae05272a2c05da608573cd1d19382bdf2"></a><br/></td></tr>
98
<tr><td class="memItemLeft" align="right" valign="top">void </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>& text)</td></tr>
99
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the currently-chosen item if it matches the specified text. <a href="#ab1c6c5c2567690ef2f59b10a493e0b3c"></a><br/></td></tr>
100
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#aff2f7bdb9e8796eb4f30fba36a37435e">clear</a> ()</td></tr>
101
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#ae2820f73e92df9abacaae71bed2d244a">remove_all</a> ()</td></tr>
102
<tr><td class="mdescLeft"> </td><td class="mdescRight">Remove all items from the drop-down menu. <a href="#ae2820f73e92df9abacaae71bed2d244a"></a><br/></td></tr>
103
<tr><td class="memItemLeft" align="right" valign="top">void </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>& text)</td></tr>
104
<tr><td class="mdescLeft"> </td><td class="mdescRight">Remove the specified item if it is in the drop-down menu. <a href="#ad7a41e39e26df6fbe327c5f68f0b7920"></a><br/></td></tr>
105
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
106
Protected Attributes</h2></td></tr>
107
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1ComboBoxText_1_1TextModelColumns.html">TextModelColumns</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1ComboBoxText.html#a9097287174645c2bb861dccc0b759912">m_text_columns</a></td></tr>
109
<hr/><a name="_details"></a><h2>Detailed Description</h2>
110
<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>
111
<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>
112
<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>
113
</div><hr/><h2>Constructor & Destructor Documentation</h2>
114
<a class="anchor" id="a77c48f90f4e954e23851d2b159ad2bf7"></a><!-- doxytag: member="Gtk::ComboBoxText::ComboBoxText" ref="a77c48f90f4e954e23851d2b159ad2bf7" args="()" -->
115
<div class="memitem">
116
<div class="memproto">
117
<table class="memname">
119
<td class="memname">Gtk::ComboBoxText::ComboBoxText </td>
121
<td class="paramname"></td><td>)</td>
128
<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>
132
<a class="anchor" id="a1a92bff1703cad40feb74e915d9ba3b3"></a><!-- doxytag: member="Gtk::ComboBoxText::ComboBoxText" ref="a1a92bff1703cad40feb74e915d9ba3b3" args="(bool has_entry)" -->
133
<div class="memitem">
134
<div class="memproto">
135
<table class="memname">
137
<td class="memname">Gtk::ComboBoxText::ComboBoxText </td>
139
<td class="paramtype">bool </td>
140
<td class="paramname"><em>has_entry</em></td><td>)</td>
141
<td><code> [explicit]</code></td>
147
<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>
148
<dl><dt><b>Parameters:</b></dt><dd>
149
<table class="params">
150
<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>
157
<hr/><h2>Member Function Documentation</h2>
158
<a class="anchor" id="ad43c1cc0325585fd53908d5d7038657e"></a><!-- doxytag: member="Gtk::ComboBoxText::append" ref="ad43c1cc0325585fd53908d5d7038657e" args="(const Glib::ustring &text)" -->
159
<div class="memitem">
160
<div class="memproto">
161
<table class="memname">
163
<td class="memname">void Gtk::ComboBoxText::append </td>
165
<td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
166
<td class="paramname"><em>text</em></td><td>)</td>
173
<p>Add an item to the end of the drop-down list. </p>
174
<dl><dt><b>Parameters:</b></dt><dd>
175
<table class="params">
176
<tr><td class="paramname">text</td><td>The text for the item. </td></tr>
183
<a class="anchor" id="ab6a4b6f833c964144ecb9ce79b9f949d"></a><!-- doxytag: member="Gtk::ComboBoxText::append_text" ref="ab6a4b6f833c964144ecb9ce79b9f949d" args="(const Glib::ustring &text)" -->
184
<div class="memitem">
185
<div class="memproto">
186
<table class="memname">
188
<td class="memname">void Gtk::ComboBoxText::append_text </td>
190
<td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
191
<td class="paramname"><em>text</em></td><td>)</td>
198
<p>Add an item to the end of the drop-down list. </p>
199
<dl><dt><b>Parameters:</b></dt><dd>
200
<table class="params">
201
<tr><td class="paramname">text</td><td>The text for the item.</td></tr>
205
<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>
209
<a class="anchor" id="aff2f7bdb9e8796eb4f30fba36a37435e"></a><!-- doxytag: member="Gtk::ComboBoxText::clear" ref="aff2f7bdb9e8796eb4f30fba36a37435e" args="()" -->
210
<div class="memitem">
211
<div class="memproto">
212
<table class="memname">
214
<td class="memname">void Gtk::ComboBoxText::clear </td>
216
<td class="paramname"></td><td>)</td>
222
<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>
224
<p>Reimplemented from <a class="el" href="classGtk_1_1CellLayout.html#ab87faf407763c4df8985ac7ff985fad8">Gtk::CellLayout</a>.</p>
228
<a class="anchor" id="aec3e17b23e8b13957e25547f1ef08d05"></a><!-- doxytag: member="Gtk::ComboBoxText::clear_items" ref="aec3e17b23e8b13957e25547f1ef08d05" args="()" -->
229
<div class="memitem">
230
<div class="memproto">
231
<table class="memname">
233
<td class="memname">void Gtk::ComboBoxText::clear_items </td>
235
<td class="paramname"></td><td>)</td>
242
<p>Remove all items from the drop-down menu. </p>
243
<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>
247
<a class="anchor" id="ae05272a2c05da608573cd1d19382bdf2"></a><!-- doxytag: member="Gtk::ComboBoxText::get_active_text" ref="ae05272a2c05da608573cd1d19382bdf2" args="() const " -->
248
<div class="memitem">
249
<div class="memproto">
250
<table class="memname">
252
<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>
254
<td class="paramname"></td><td>)</td>
261
<p>Get the currently-chosen item. </p>
262
<dl class="return"><dt><b>Returns:</b></dt><dd>The text of the active item. </dd></dl>
266
<a class="anchor" id="acaabb30f27480e110ff50ad6152c70be"></a><!-- doxytag: member="Gtk::ComboBoxText::insert" ref="acaabb30f27480e110ff50ad6152c70be" args="(int position, const Glib::ustring &text)" -->
267
<div class="memitem">
268
<div class="memproto">
269
<table class="memname">
271
<td class="memname">void Gtk::ComboBoxText::insert </td>
273
<td class="paramtype">int </td>
274
<td class="paramname"><em>position</em>, </td>
277
<td class="paramkey"></td>
279
<td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
280
<td class="paramname"><em>text</em> </td>
293
<a class="anchor" id="a9c8f65b084135fefe8831a60294298ee"></a><!-- doxytag: member="Gtk::ComboBoxText::insert_text" ref="a9c8f65b084135fefe8831a60294298ee" args="(int position, const Glib::ustring &text)" -->
294
<div class="memitem">
295
<div class="memproto">
296
<table class="memname">
298
<td class="memname">void Gtk::ComboBoxText::insert_text </td>
300
<td class="paramtype">int </td>
301
<td class="paramname"><em>position</em>, </td>
304
<td class="paramkey"></td>
306
<td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
307
<td class="paramname"><em>text</em> </td>
317
<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>
321
<a class="anchor" id="aa26a9271d840cae4abcaf451924675ee"></a><!-- doxytag: member="Gtk::ComboBoxText::prepend" ref="aa26a9271d840cae4abcaf451924675ee" args="(const Glib::ustring &text)" -->
322
<div class="memitem">
323
<div class="memproto">
324
<table class="memname">
326
<td class="memname">void Gtk::ComboBoxText::prepend </td>
328
<td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
329
<td class="paramname"><em>text</em></td><td>)</td>
336
<p>Add an item to the beginning of the drop-down list. </p>
337
<dl><dt><b>Parameters:</b></dt><dd>
338
<table class="params">
339
<tr><td class="paramname">text</td><td>The text for the item. </td></tr>
346
<a class="anchor" id="a6a1e6e454739ae9b1bd4a56b1de72189"></a><!-- doxytag: member="Gtk::ComboBoxText::prepend_text" ref="a6a1e6e454739ae9b1bd4a56b1de72189" args="(const Glib::ustring &text)" -->
347
<div class="memitem">
348
<div class="memproto">
349
<table class="memname">
351
<td class="memname">void Gtk::ComboBoxText::prepend_text </td>
353
<td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
354
<td class="paramname"><em>text</em></td><td>)</td>
361
<p>Add an item to the beginning of the drop-down list. </p>
362
<dl><dt><b>Parameters:</b></dt><dd>
363
<table class="params">
364
<tr><td class="paramname">text</td><td>The text for the item.</td></tr>
368
<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>
372
<a class="anchor" id="ae2820f73e92df9abacaae71bed2d244a"></a><!-- doxytag: member="Gtk::ComboBoxText::remove_all" ref="ae2820f73e92df9abacaae71bed2d244a" args="()" -->
373
<div class="memitem">
374
<div class="memproto">
375
<table class="memname">
377
<td class="memname">void Gtk::ComboBoxText::remove_all </td>
379
<td class="paramname"></td><td>)</td>
386
<p>Remove all items from the drop-down menu. </p>
390
<a class="anchor" id="ad7a41e39e26df6fbe327c5f68f0b7920"></a><!-- doxytag: member="Gtk::ComboBoxText::remove_text" ref="ad7a41e39e26df6fbe327c5f68f0b7920" args="(const Glib::ustring &text)" -->
391
<div class="memitem">
392
<div class="memproto">
393
<table class="memname">
395
<td class="memname">void Gtk::ComboBoxText::remove_text </td>
397
<td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
398
<td class="paramname"><em>text</em></td><td>)</td>
405
<p>Remove the specified item if it is in the drop-down menu. </p>
406
<p>The text of the item that should be removed. </p>
410
<a class="anchor" id="ab1c6c5c2567690ef2f59b10a493e0b3c"></a><!-- doxytag: member="Gtk::ComboBoxText::set_active_text" ref="ab1c6c5c2567690ef2f59b10a493e0b3c" args="(const Glib::ustring &text)" -->
411
<div class="memitem">
412
<div class="memproto">
413
<table class="memname">
415
<td class="memname">void Gtk::ComboBoxText::set_active_text </td>
417
<td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
418
<td class="paramname"><em>text</em></td><td>)</td>
425
<p>Set the currently-chosen item if it matches the specified text. </p>
426
<p>The text of the item that should be selected. </p>
430
<hr/><h2>Member Data Documentation</h2>
431
<a class="anchor" id="a9097287174645c2bb861dccc0b759912"></a><!-- doxytag: member="Gtk::ComboBoxText::m_text_columns" ref="a9097287174645c2bb861dccc0b759912" args="" -->
432
<div class="memitem">
433
<div class="memproto">
434
<table class="memname">
436
<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>
444
<hr/>The documentation for this class was generated from the following file:<ul>
445
<li>gtkmm/comboboxtext.h</li>
448
<hr class="footer"/><address class="footer"><small>Generated on Fri Jul 8 2011 13:31:49 for gtkmm by 
449
<a href="http://www.doxygen.org/index.html">
450
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>