File: classGtk_1_1EntryBuffer.html

package info (click to toggle)
gtkmm2.4 1%3A2.20.3-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 73,860 kB
  • ctags: 20,553
  • sloc: xml: 79,575; sh: 10,120; cpp: 8,347; makefile: 290
file content (606 lines) | stat: -rw-r--r-- 38,202 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
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
<!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::EntryBuffer 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.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <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 class="tabs">
    <ul>
      <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="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceGtk.html">Gtk</a>::<a class="el" href="classGtk_1_1EntryBuffer.html">EntryBuffer</a>
  </div>
</div>
<div class="contents">
<h1>Gtk::EntryBuffer Class Reference</h1><!-- doxytag: class="Gtk::EntryBuffer" --><!-- doxytag: inherits="Glib::Object" -->
<p>A Text buffer for the <a class="el" href="classGtk_1_1Entry.html" title="A single line text entry field.">Entry</a> widget. <a href="#_details">More...</a></p>

<p>Inherits <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_1Object.html">Glib::Object</a>.</p>
<div class="dynheader">
Collaboration diagram for Gtk::EntryBuffer:</div>
<div class="dynsection">
<div class="center"><img src="classGtk_1_1EntryBuffer__coll__graph.png" border="0" usemap="#Gtk_1_1EntryBuffer_coll__map" alt="Collaboration graph"/></div>
<map name="Gtk_1_1EntryBuffer_coll__map" id="Gtk_1_1EntryBuffer_coll__map">
<area shape="rect" 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="20,160,111,189"/><area shape="rect" 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="5,83,125,112"/><area shape="rect" 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="12,5,119,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classGtk_1_1EntryBuffer-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#afc374d6dc3cdfbbfe97a50a86be608ad">~EntryBuffer</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkEntryBuffer*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#ad567657dd7d73c3277dbf87647cfe4ef">gobj</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#ad567657dd7d73c3277dbf87647cfe4ef"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GtkEntryBuffer*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a3abe82b4d53b3610ee47f825221cae8f">gobj</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a3abe82b4d53b3610ee47f825221cae8f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkEntryBuffer*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#acb885a342bd3b42577eab89d5e0d2925">gobj_copy</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#acb885a342bd3b42577eab89d5e0d2925"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">gsize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a53cb0c54a2b13314e64036dae7c0f0db">get_bytes</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the length in bytes of the buffer. <a href="#a53cb0c54a2b13314e64036dae7c0f0db"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">guint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a9cebb86114b9cb03d24b86d058486c55">get_length</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the length in characters of the buffer. <a href="#a9cebb86114b9cb03d24b86d058486c55"></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_1EntryBuffer.html#afaff2f92189073b335d8fbb0102cd6c0">get_text</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the contents of the buffer. <a href="#afaff2f92189073b335d8fbb0102cd6c0"></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_1EntryBuffer.html#a289ee88d181f1b81b9cada53d12628ff">set_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">Sets the text in the buffer. <a href="#a289ee88d181f1b81b9cada53d12628ff"></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_1EntryBuffer.html#a381e1969e3f387ef19cbf10cfae5ca46">set_max_length</a> (int max_length)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the maximum allowed length of the contents of the buffer. <a href="#a381e1969e3f387ef19cbf10cfae5ca46"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#ac4299229d3f2dc3c1afc02c8e430641e">get_max_length</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the maximum allowed length of the text in <em>buffer</em>. <a href="#ac4299229d3f2dc3c1afc02c8e430641e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">guint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a01bf8802e1570532eb7c6afc6bbd4851">insert_text</a> (guint 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="mdescLeft">&#160;</td><td class="mdescRight">Inserts <em>text</em> into the contents of the buffer, at position <em>position</em>. <a href="#a01bf8802e1570532eb7c6afc6bbd4851"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">guint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a1e735047dd16f4b1c40aa4c952d50258">delete_text</a> (guint position, int n_chars)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Deletes a sequence of characters from the buffer. <a href="#a1e735047dd16f4b1c40aa4c952d50258"></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_1EntryBuffer.html#a0866b9a826b9f96f941eaf84945884fa">emit_inserted_text</a> (guint 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="mdescLeft">&#160;</td><td class="mdescRight">Used when deriving from <a class="el" href="classGtk_1_1EntryBuffer.html" title="A Text buffer for the Entry widget.">EntryBuffer</a>. <a href="#a0866b9a826b9f96f941eaf84945884fa"></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_1EntryBuffer.html#a325918e5e859bba2927daa25113c32d3">emit_deleted_text</a> (guint position, guint n_chars)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Used when subclassing <a class="el" href="classGtk_1_1EntryBuffer.html" title="A Text buffer for the Entry widget.">Gtk::EntryBuffer</a>. <a href="#a325918e5e859bba2927daa25113c32d3"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <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_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1EntryBuffer.html">EntryBuffer</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#aa8d182fb0881a3a58e71352f63a37710">create</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="classGtk_1_1EntryBuffer.html" title="A Text buffer for the Entry widget.">EntryBuffer</a> object with no text. <a href="#aa8d182fb0881a3a58e71352f63a37710"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <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_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1EntryBuffer.html">EntryBuffer</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a730e9d1751b9275a2de18da9c16d39c1">create</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">Create a new <a class="el" href="classGtk_1_1EntryBuffer.html" title="A Text buffer for the Entry widget.">EntryBuffer</a> object. <a href="#a730e9d1751b9275a2de18da9c16d39c1"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected 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_1EntryBuffer.html#a560c87ddbf7790dde544535edada9d25">EntryBuffer</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="classGtk_1_1EntryBuffer.html" title="A Text buffer for the Entry widget.">EntryBuffer</a> object with no text. <a href="#a560c87ddbf7790dde544535edada9d25"></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_1EntryBuffer.html#a0af68812843e71fa92933ee646226a18">EntryBuffer</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">Create a new <a class="el" href="classGtk_1_1EntryBuffer.html" title="A Text buffer for the Entry widget.">EntryBuffer</a> object. <a href="#a0af68812843e71fa92933ee646226a18"></a><br/></td></tr>
<tr><td colspan="2"><h2>Related Functions</h2></td></tr>
<tr><td colspan="2"><p>(Note that these are not member functions.) </p>
<br/><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_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1EntryBuffer.html">Gtk::EntryBuffer</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#aa7f5eb545b57327fecf0681665f19d7c">wrap</a> (GtkEntryBuffer* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#aa7f5eb545b57327fecf0681665f19d7c"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A Text buffer for the <a class="el" href="classGtk_1_1Entry.html" title="A single line text entry field.">Entry</a> widget. </p>
<p>The <a class="el" href="classGtk_1_1EntryBuffer.html" title="A Text buffer for the Entry widget.">EntryBuffer</a> class contains the actual text displayed in an <a class="el" href="classGtk_1_1Entry.html" title="A single line text entry field.">Entry</a> widget.</p>
<p>A single <a class="el" href="classGtk_1_1EntryBuffer.html" title="A Text buffer for the Entry widget.">EntryBuffer</a> object can be shared by multiple <a class="el" href="classGtk_1_1Entry.html" title="A single line text entry field.">Entry</a> widgets which will then share the same text content, but not the cursor position, visibility attributes, icon etc.</p>
<p><a class="el" href="classGtk_1_1EntryBuffer.html" title="A Text buffer for the Entry widget.">EntryBuffer</a> may be derived from. Such a derived class might allow text to be stored in an alternate location, such as non-pageable memory, useful in the case of important passwords. Or a derived class could integrate with an application's concept of undo/redo.</p>
<p>@newin{2,20} </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="afc374d6dc3cdfbbfe97a50a86be608ad"></a><!-- doxytag: member="Gtk::EntryBuffer::~EntryBuffer" ref="afc374d6dc3cdfbbfe97a50a86be608ad" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gtk::EntryBuffer::~EntryBuffer </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a560c87ddbf7790dde544535edada9d25"></a><!-- doxytag: member="Gtk::EntryBuffer::EntryBuffer" ref="a560c87ddbf7790dde544535edada9d25" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::EntryBuffer::EntryBuffer </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new <a class="el" href="classGtk_1_1EntryBuffer.html" title="A Text buffer for the Entry widget.">EntryBuffer</a> object with no text. </p>

</div>
</div>
<a class="anchor" id="a0af68812843e71fa92933ee646226a18"></a><!-- doxytag: member="Gtk::EntryBuffer::EntryBuffer" ref="a0af68812843e71fa92933ee646226a18" args="(const Glib::ustring &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::EntryBuffer::EntryBuffer </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>&#160;)&#160;</td>
          <td><code> [explicit, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new <a class="el" href="classGtk_1_1EntryBuffer.html" title="A Text buffer for the Entry widget.">EntryBuffer</a> object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>text</em>&#160;</td><td>Initial buffer text. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a730e9d1751b9275a2de18da9c16d39c1"></a><!-- doxytag: member="Gtk::EntryBuffer::create" ref="a730e9d1751b9275a2de18da9c16d39c1" args="(const Glib::ustring &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <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_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGtk_1_1EntryBuffer.html">EntryBuffer</a>&gt; Gtk::EntryBuffer::create </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>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new <a class="el" href="classGtk_1_1EntryBuffer.html" title="A Text buffer for the Entry widget.">EntryBuffer</a> object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>text</em>&#160;</td><td>Initial buffer text. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa8d182fb0881a3a58e71352f63a37710"></a><!-- doxytag: member="Gtk::EntryBuffer::create" ref="aa8d182fb0881a3a58e71352f63a37710" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <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_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGtk_1_1EntryBuffer.html">EntryBuffer</a>&gt; Gtk::EntryBuffer::create </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new <a class="el" href="classGtk_1_1EntryBuffer.html" title="A Text buffer for the Entry widget.">EntryBuffer</a> object with no text. </p>

</div>
</div>
<a class="anchor" id="a1e735047dd16f4b1c40aa4c952d50258"></a><!-- doxytag: member="Gtk::EntryBuffer::delete_text" ref="a1e735047dd16f4b1c40aa4c952d50258" args="(guint position, int n_chars)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">guint Gtk::EntryBuffer::delete_text </td>
          <td>(</td>
          <td class="paramtype">guint&#160;</td>
          <td class="paramname"> <em>position</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>n_chars</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Deletes a sequence of characters from the buffer. </p>
<p><em>n_chars</em> characters are deleted starting at <em>position</em>. If <em>n_chars</em> is negative, then all characters until the end of the text are deleted.</p>
<p>If <em>position</em> or <em>n_chars</em> are out of bounds, then they are coerced to sane values.</p>
<p>Note that the positions are specified in characters, not bytes.</p>
<dl class="since_2_18"><dt><b><a class="el" href="since_2_18.html#_since_2_18000030">Since gtkmm 2.18:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>position</em>&#160;</td><td>Position at which to delete text. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>n_chars</em>&#160;</td><td>Number of characters to delete. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The number of characters deleted. </dd></dl>

</div>
</div>
<a class="anchor" id="a325918e5e859bba2927daa25113c32d3"></a><!-- doxytag: member="Gtk::EntryBuffer::emit_deleted_text" ref="a325918e5e859bba2927daa25113c32d3" args="(guint position, guint n_chars)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::EntryBuffer::emit_deleted_text </td>
          <td>(</td>
          <td class="paramtype">guint&#160;</td>
          <td class="paramname"> <em>position</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">guint&#160;</td>
          <td class="paramname"> <em>n_chars</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Used when subclassing <a class="el" href="classGtk_1_1EntryBuffer.html" title="A Text buffer for the Entry widget.">Gtk::EntryBuffer</a>. </p>
<dl class="since_2_18"><dt><b><a class="el" href="since_2_18.html#_since_2_18000031">Since gtkmm 2.18:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>position</em>&#160;</td><td>Position at which text was deleted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>n_chars</em>&#160;</td><td>Number of characters deleted. </td></tr>
  </table>
  </dd>
</dl>

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

<p>Used when deriving from <a class="el" href="classGtk_1_1EntryBuffer.html" title="A Text buffer for the Entry widget.">EntryBuffer</a>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>position</em>&#160;</td><td>Position at which text was inserted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>text</em>&#160;</td><td>Text that was inserted. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a53cb0c54a2b13314e64036dae7c0f0db"></a><!-- doxytag: member="Gtk::EntryBuffer::get_bytes" ref="a53cb0c54a2b13314e64036dae7c0f0db" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gsize Gtk::EntryBuffer::get_bytes </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retrieves the length in bytes of the buffer. </p>
<p>See <a class="el" href="classGtk_1_1EntryBuffer.html#a9cebb86114b9cb03d24b86d058486c55" title="Retrieves the length in characters of the buffer.">get_length()</a>.</p>
<dl class="since_2_18"><dt><b><a class="el" href="since_2_18.html#_since_2_18000025">Since gtkmm 2.18:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The byte length of the buffer. </dd></dl>

</div>
</div>
<a class="anchor" id="a9cebb86114b9cb03d24b86d058486c55"></a><!-- doxytag: member="Gtk::EntryBuffer::get_length" ref="a9cebb86114b9cb03d24b86d058486c55" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">guint Gtk::EntryBuffer::get_length </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retrieves the length in characters of the buffer. </p>
<dl class="since_2_18"><dt><b><a class="el" href="since_2_18.html#_since_2_18000026">Since gtkmm 2.18:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The number of characters in the buffer. </dd></dl>

</div>
</div>
<a class="anchor" id="ac4299229d3f2dc3c1afc02c8e430641e"></a><!-- doxytag: member="Gtk::EntryBuffer::get_max_length" ref="ac4299229d3f2dc3c1afc02c8e430641e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Gtk::EntryBuffer::get_max_length </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retrieves the maximum allowed length of the text in <em>buffer</em>. </p>
<p>See <a class="el" href="classGtk_1_1EntryBuffer.html#a381e1969e3f387ef19cbf10cfae5ca46" title="Sets the maximum allowed length of the contents of the buffer.">set_max_length()</a>.</p>
<dl class="since_2_18"><dt><b><a class="el" href="since_2_18.html#_since_2_18000029">Since gtkmm 2.18:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The maximum allowed number of characters in <a class="el" href="classGtk_1_1EntryBuffer.html" title="A Text buffer for the Entry widget.">Gtk::EntryBuffer</a>, or 0 if there is no maximum. </dd></dl>

</div>
</div>
<a class="anchor" id="afaff2f92189073b335d8fbb0102cd6c0"></a><!-- doxytag: member="Gtk::EntryBuffer::get_text" ref="afaff2f92189073b335d8fbb0102cd6c0" 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::EntryBuffer::get_text </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retrieves the contents of the buffer. </p>
<p>The memory pointer returned by this call will not change unless this object emits a signal, or is finalized.</p>
<dl class="since_2_18"><dt><b><a class="el" href="since_2_18.html#_since_2_18000027">Since gtkmm 2.18:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A pointer to the contents of the widget as a string. This string points to internally allocated storage in the buffer and must not be freed, modified or stored. </dd></dl>

</div>
</div>
<a class="anchor" id="a3abe82b4d53b3610ee47f825221cae8f"></a><!-- doxytag: member="Gtk::EntryBuffer::gobj" ref="a3abe82b4d53b3610ee47f825221cae8f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GtkEntryBuffer* Gtk::EntryBuffer::gobj </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

<p>Reimplemented from <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_1ObjectBase.html#a778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p>

</div>
</div>
<a class="anchor" id="ad567657dd7d73c3277dbf87647cfe4ef"></a><!-- doxytag: member="Gtk::EntryBuffer::gobj" ref="ad567657dd7d73c3277dbf87647cfe4ef" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GtkEntryBuffer* Gtk::EntryBuffer::gobj </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

<p>Reimplemented from <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_1ObjectBase.html#a4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.</p>

</div>
</div>
<a class="anchor" id="acb885a342bd3b42577eab89d5e0d2925"></a><!-- doxytag: member="Gtk::EntryBuffer::gobj_copy" ref="acb885a342bd3b42577eab89d5e0d2925" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GtkEntryBuffer* Gtk::EntryBuffer::gobj_copy </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

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

<p>Inserts <em>text</em> into the contents of the buffer, at position <em>position</em>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>position</em>&#160;</td><td>The position at which to insert text. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>text</em>&#160;</td><td>The text to insert into the buffer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The number of characters actually inserted. </dd></dl>

</div>
</div>
<a class="anchor" id="a381e1969e3f387ef19cbf10cfae5ca46"></a><!-- doxytag: member="Gtk::EntryBuffer::set_max_length" ref="a381e1969e3f387ef19cbf10cfae5ca46" args="(int max_length)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::EntryBuffer::set_max_length </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>max_length</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the maximum allowed length of the contents of the buffer. </p>
<p>If the current contents are longer than the given length, then they will be truncated to fit.</p>
<dl class="since_2_18"><dt><b><a class="el" href="since_2_18.html#_since_2_18000028">Since gtkmm 2.18:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>max_length</em>&#160;</td><td>The maximum length of the entry buffer, or 0 for no maximum. (other than the maximum length of entries.) The value passed in will be clamped to the range 0-65536. </td></tr>
  </table>
  </dd>
</dl>

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

<p>Sets the text in the buffer. </p>
<p>This is roughly equivalent to calling <a class="el" href="classGtk_1_1EntryBuffer.html#a1e735047dd16f4b1c40aa4c952d50258" title="Deletes a sequence of characters from the buffer.">delete_text()</a> and <a class="el" href="classGtk_1_1EntryBuffer.html#a01bf8802e1570532eb7c6afc6bbd4851" title="Inserts text into the contents of the buffer, at position position.">insert_text()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>text</em>&#160;</td><td>The text to set in the buffer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="aa7f5eb545b57327fecf0681665f19d7c"></a><!-- doxytag: member="Gtk::EntryBuffer::wrap" ref="aa7f5eb545b57327fecf0681665f19d7c" args="(GtkEntryBuffer *object, bool take_copy=false)" -->
<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_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1EntryBuffer.html">Gtk::EntryBuffer</a> &gt; wrap </td>
          <td>(</td>
          <td class="paramtype">GtkEntryBuffer *&#160;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>object</em>&#160;</td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em>&#160;</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>gtkmm/entrybuffer.h</li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 13:21:51 2010 for gtkmm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>