File: classGtk_1_1ComboBoxText.html

package info (click to toggle)
gtkmm2.4 1%3A2.24.2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 76,100 kB
  • sloc: xml: 80,438; sh: 10,948; cpp: 8,005; perl: 236; makefile: 224
file content (452 lines) | stat: -rw-r--r-- 33,420 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
<!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.2</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="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&#45;widget objects such as Gtk::Adjustme..." alt="" coords="5,246,93,277"/><area shape="rect" id="node12" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="57,166,148,197"/><area shape="rect" id="node14" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="116,86,236,117"/><area shape="rect" id="node22" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="199,166,303,197"/><area shape="rect" id="node16" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/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>
<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="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&#45;widget objects such as Gtk::Adjustme..." alt="" coords="556,58,644,89"/><area shape="rect" id="node12" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="343,58,433,89"/><area shape="rect" id="node14" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="164,30,284,61"/><area shape="rect" id="node22" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="336,5,440,35"/><area shape="rect" id="node16" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/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" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00902.html" title="std::vector\&lt; GType \&gt;" alt="" coords="1188,131,1335,162"/><area shape="rect" id="node33" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00902.html" title="std::vector\&lt; _Tp, _Alloc \&gt;" alt="" coords="876,122,1049,153"/><area shape="rect" id="node36" href="classGtk_1_1TreeModelColumn.html" title="Gtk::TreeModelColumn\&lt; Glib::ustring \&gt;" 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>
<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" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/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" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/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" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/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" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/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" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/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" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/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" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/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" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/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" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/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" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/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" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/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" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/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" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/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" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/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" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/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" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/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" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/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" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/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 Fri Jul 8 2011 13:31:49 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>