<!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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.7"/> <title>gtkmm: Gtk::EntryBuffer Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">gtkmm  <span id="projectnumber">3.14.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.7 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceGtk.html">Gtk</a></li><li class="navelem"><a class="el" href="classGtk_1_1EntryBuffer.html">EntryBuffer</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> | <a href="#related">Related Functions</a> | <a href="classGtk_1_1EntryBuffer-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">Gtk::EntryBuffer Class Reference</div> </div> </div><!--header--> <div class="contents"> <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="classGtk_1_1EntryBuffer.html#details">More...</a></p> <p><code>#include <gtkmm/entrybuffer.h></code></p> <div class="dynheader"> Inheritance diagram for Gtk::EntryBuffer:</div> <div class="dyncontent"> <div class="center"><img src="classGtk_1_1EntryBuffer__inherit__graph.png" border="0" usemap="#Gtk_1_1EntryBuffer_inherit__map" alt="Inheritance graph"/></div> <map name="Gtk_1_1EntryBuffer_inherit__map" id="Gtk_1_1EntryBuffer_inherit__map"> <area shape="rect" id="node2" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="21,155,115,181"/><area shape="rect" id="node3" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,80,131,107"/><area shape="rect" id="node4" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="11,5,125,32"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:afc374d6dc3cdfbbfe97a50a86be608ad"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#afc374d6dc3cdfbbfe97a50a86be608ad">~EntryBuffer</a> ()</td></tr> <tr class="separator:afc374d6dc3cdfbbfe97a50a86be608ad"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad567657dd7d73c3277dbf87647cfe4ef"><td class="memItemLeft" align="right" valign="top">GtkEntryBuffer* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#ad567657dd7d73c3277dbf87647cfe4ef">gobj</a> ()</td></tr> <tr class="memdesc:ad567657dd7d73c3277dbf87647cfe4ef"><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#ad567657dd7d73c3277dbf87647cfe4ef">More...</a><br /></td></tr> <tr class="separator:ad567657dd7d73c3277dbf87647cfe4ef"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3abe82b4d53b3610ee47f825221cae8f"><td class="memItemLeft" align="right" valign="top">const GtkEntryBuffer* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a3abe82b4d53b3610ee47f825221cae8f">gobj</a> () const </td></tr> <tr class="memdesc:a3abe82b4d53b3610ee47f825221cae8f"><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a3abe82b4d53b3610ee47f825221cae8f">More...</a><br /></td></tr> <tr class="separator:a3abe82b4d53b3610ee47f825221cae8f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acb885a342bd3b42577eab89d5e0d2925"><td class="memItemLeft" align="right" valign="top">GtkEntryBuffer* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#acb885a342bd3b42577eab89d5e0d2925">gobj_copy</a> ()</td></tr> <tr class="memdesc:acb885a342bd3b42577eab89d5e0d2925"><td class="mdescLeft"> </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">More...</a><br /></td></tr> <tr class="separator:acb885a342bd3b42577eab89d5e0d2925"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a53cb0c54a2b13314e64036dae7c0f0db"><td class="memItemLeft" align="right" valign="top">gsize </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a53cb0c54a2b13314e64036dae7c0f0db">get_bytes</a> () const </td></tr> <tr class="memdesc:a53cb0c54a2b13314e64036dae7c0f0db"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the length in bytes of the buffer. <a href="#a53cb0c54a2b13314e64036dae7c0f0db">More...</a><br /></td></tr> <tr class="separator:a53cb0c54a2b13314e64036dae7c0f0db"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9cebb86114b9cb03d24b86d058486c55"><td class="memItemLeft" align="right" valign="top">guint </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a9cebb86114b9cb03d24b86d058486c55">get_length</a> () const </td></tr> <tr class="memdesc:a9cebb86114b9cb03d24b86d058486c55"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the length in characters of the buffer. <a href="#a9cebb86114b9cb03d24b86d058486c55">More...</a><br /></td></tr> <tr class="separator:a9cebb86114b9cb03d24b86d058486c55"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afaff2f92189073b335d8fbb0102cd6c0"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#afaff2f92189073b335d8fbb0102cd6c0">get_text</a> () const </td></tr> <tr class="memdesc:afaff2f92189073b335d8fbb0102cd6c0"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the contents of the buffer. <a href="#afaff2f92189073b335d8fbb0102cd6c0">More...</a><br /></td></tr> <tr class="separator:afaff2f92189073b335d8fbb0102cd6c0"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a289ee88d181f1b81b9cada53d12628ff"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a289ee88d181f1b81b9cada53d12628ff">set_text</a> (const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& text)</td></tr> <tr class="memdesc:a289ee88d181f1b81b9cada53d12628ff"><td class="mdescLeft"> </td><td class="mdescRight">Sets the text in the buffer. <a href="#a289ee88d181f1b81b9cada53d12628ff">More...</a><br /></td></tr> <tr class="separator:a289ee88d181f1b81b9cada53d12628ff"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a381e1969e3f387ef19cbf10cfae5ca46"><td class="memItemLeft" align="right" valign="top">void </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 class="memdesc:a381e1969e3f387ef19cbf10cfae5ca46"><td class="mdescLeft"> </td><td class="mdescRight">Sets the maximum allowed length of the contents of the buffer. <a href="#a381e1969e3f387ef19cbf10cfae5ca46">More...</a><br /></td></tr> <tr class="separator:a381e1969e3f387ef19cbf10cfae5ca46"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac4299229d3f2dc3c1afc02c8e430641e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#ac4299229d3f2dc3c1afc02c8e430641e">get_max_length</a> () const </td></tr> <tr class="memdesc:ac4299229d3f2dc3c1afc02c8e430641e"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the maximum allowed length of the text in <em>buffer</em>. <a href="#ac4299229d3f2dc3c1afc02c8e430641e">More...</a><br /></td></tr> <tr class="separator:ac4299229d3f2dc3c1afc02c8e430641e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a01bf8802e1570532eb7c6afc6bbd4851"><td class="memItemLeft" align="right" valign="top">guint </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a01bf8802e1570532eb7c6afc6bbd4851">insert_text</a> (guint position, const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& text)</td></tr> <tr class="memdesc:a01bf8802e1570532eb7c6afc6bbd4851"><td class="mdescLeft"> </td><td class="mdescRight">Inserts <em>text</em> into the contents of the buffer, at position <em>position</em>. <a href="#a01bf8802e1570532eb7c6afc6bbd4851">More...</a><br /></td></tr> <tr class="separator:a01bf8802e1570532eb7c6afc6bbd4851"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1e735047dd16f4b1c40aa4c952d50258"><td class="memItemLeft" align="right" valign="top">guint </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 class="memdesc:a1e735047dd16f4b1c40aa4c952d50258"><td class="mdescLeft"> </td><td class="mdescRight">Deletes a sequence of characters from the buffer. <a href="#a1e735047dd16f4b1c40aa4c952d50258">More...</a><br /></td></tr> <tr class="separator:a1e735047dd16f4b1c40aa4c952d50258"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a0866b9a826b9f96f941eaf84945884fa"><td class="memItemLeft" align="right" valign="top">void </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" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& text)</td></tr> <tr class="memdesc:a0866b9a826b9f96f941eaf84945884fa"><td class="mdescLeft"> </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">More...</a><br /></td></tr> <tr class="separator:a0866b9a826b9f96f941eaf84945884fa"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a325918e5e859bba2927daa25113c32d3"><td class="memItemLeft" align="right" valign="top">void </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 class="memdesc:a325918e5e859bba2927daa25113c32d3"><td class="mdescLeft"> </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">More...</a><br /></td></tr> <tr class="separator:a325918e5e859bba2927daa25113c32d3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a549ae271ec91312a2fc69d9c7620ae49"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1SignalProxy3.html">Glib::SignalProxy3</a>< void, <br class="typebreak" /> guint, const gchar*, guint > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a549ae271ec91312a2fc69d9c7620ae49">signal_inserted_text</a> ()</td></tr> <tr class="separator:a549ae271ec91312a2fc69d9c7620ae49"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afef4562f9fa399a93a3037158c136dd8"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1SignalProxy2.html">Glib::SignalProxy2</a>< void, <br class="typebreak" /> guint, guint > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#afef4562f9fa399a93a3037158c136dd8">signal_deleted_text</a> ()</td></tr> <tr class="separator:afef4562f9fa399a93a3037158c136dd8"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a37321a848e983cd7426ffc9f2722ddc5"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><br class="typebreak" /> < <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a37321a848e983cd7426ffc9f2722ddc5">property_text</a> ()</td></tr> <tr class="memdesc:a37321a848e983cd7426ffc9f2722ddc5"><td class="mdescLeft"> </td><td class="mdescRight">The contents of the buffer. <a href="#a37321a848e983cd7426ffc9f2722ddc5">More...</a><br /></td></tr> <tr class="separator:a37321a848e983cd7426ffc9f2722ddc5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acfe652094ad9ba39e2f1975159053a63"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak" /> < <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#acfe652094ad9ba39e2f1975159053a63">property_text</a> () const </td></tr> <tr class="memdesc:acfe652094ad9ba39e2f1975159053a63"><td class="mdescLeft"> </td><td class="mdescRight">The contents of the buffer. <a href="#acfe652094ad9ba39e2f1975159053a63">More...</a><br /></td></tr> <tr class="separator:acfe652094ad9ba39e2f1975159053a63"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1b4e43d118c0828cbe70a02e7aead23f"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak" /> < guint > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a1b4e43d118c0828cbe70a02e7aead23f">property_length</a> () const </td></tr> <tr class="memdesc:a1b4e43d118c0828cbe70a02e7aead23f"><td class="mdescLeft"> </td><td class="mdescRight">Length of the text currently in the buffer. <a href="#a1b4e43d118c0828cbe70a02e7aead23f">More...</a><br /></td></tr> <tr class="separator:a1b4e43d118c0828cbe70a02e7aead23f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1207241632564f941d637baaf3c293a3"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a1207241632564f941d637baaf3c293a3">property_max_length</a> ()</td></tr> <tr class="memdesc:a1207241632564f941d637baaf3c293a3"><td class="mdescLeft"> </td><td class="mdescRight">Maximum number of characters for this entry. <a href="#a1207241632564f941d637baaf3c293a3">More...</a><br /></td></tr> <tr class="separator:a1207241632564f941d637baaf3c293a3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4e70289b0fb0c9e04e551bea7bbb3f9c"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a4e70289b0fb0c9e04e551bea7bbb3f9c">property_max_length</a> () const </td></tr> <tr class="memdesc:a4e70289b0fb0c9e04e551bea7bbb3f9c"><td class="mdescLeft"> </td><td class="mdescRight">Maximum number of characters for this entry. <a href="#a4e70289b0fb0c9e04e551bea7bbb3f9c">More...</a><br /></td></tr> <tr class="separator:a4e70289b0fb0c9e04e551bea7bbb3f9c"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr class="memitem:aa63aadf672f0df997d92c254fe08e461"><td class="memItemLeft" align="right" valign="top">static GType </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#aa63aadf672f0df997d92c254fe08e461">get_type</a> ()</td></tr> <tr class="memdesc:aa63aadf672f0df997d92c254fe08e461"><td class="mdescLeft"> </td><td class="mdescRight">Get the GType for this class, for use with the underlying GObject type system. <a href="#aa63aadf672f0df997d92c254fe08e461">More...</a><br /></td></tr> <tr class="separator:aa63aadf672f0df997d92c254fe08e461"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa8d182fb0881a3a58e71352f63a37710"><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1EntryBuffer.html">EntryBuffer</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#aa8d182fb0881a3a58e71352f63a37710">create</a> ()</td></tr> <tr class="memdesc:aa8d182fb0881a3a58e71352f63a37710"><td class="mdescLeft"> </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">More...</a><br /></td></tr> <tr class="separator:aa8d182fb0881a3a58e71352f63a37710"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a730e9d1751b9275a2de18da9c16d39c1"><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1EntryBuffer.html">EntryBuffer</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a730e9d1751b9275a2de18da9c16d39c1">create</a> (const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& text)</td></tr> <tr class="memdesc:a730e9d1751b9275a2de18da9c16d39c1"><td class="mdescLeft"> </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">More...</a><br /></td></tr> <tr class="separator:a730e9d1751b9275a2de18da9c16d39c1"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr class="memitem:a560c87ddbf7790dde544535edada9d25"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a560c87ddbf7790dde544535edada9d25">EntryBuffer</a> ()</td></tr> <tr class="memdesc:a560c87ddbf7790dde544535edada9d25"><td class="mdescLeft"> </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">More...</a><br /></td></tr> <tr class="separator:a560c87ddbf7790dde544535edada9d25"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a0af68812843e71fa92933ee646226a18"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a0af68812843e71fa92933ee646226a18">EntryBuffer</a> (const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& text)</td></tr> <tr class="memdesc:a0af68812843e71fa92933ee646226a18"><td class="mdescLeft"> </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">More...</a><br /></td></tr> <tr class="separator:a0af68812843e71fa92933ee646226a18"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9abba6505cf595b5b09c1a931252e2b3"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a9abba6505cf595b5b09c1a931252e2b3">on_inserted_text</a> (guint position, const gchar* chars, guint n_chars)</td></tr> <tr class="memdesc:a9abba6505cf595b5b09c1a931252e2b3"><td class="mdescLeft"> </td><td class="mdescRight">This is a default handler for the signal <a class="el" href="classGtk_1_1EntryBuffer.html#a549ae271ec91312a2fc69d9c7620ae49">signal_inserted_text()</a>. <a href="#a9abba6505cf595b5b09c1a931252e2b3">More...</a><br /></td></tr> <tr class="separator:a9abba6505cf595b5b09c1a931252e2b3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a422081a55ff1fd9712fdde947bffd163"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1EntryBuffer.html#a422081a55ff1fd9712fdde947bffd163">on_deleted_text</a> (guint position, guint n_chars)</td></tr> <tr class="memdesc:a422081a55ff1fd9712fdde947bffd163"><td class="mdescLeft"> </td><td class="mdescRight">This is a default handler for the signal <a class="el" href="classGtk_1_1EntryBuffer.html#afef4562f9fa399a93a3037158c136dd8">signal_deleted_text()</a>. <a href="#a422081a55ff1fd9712fdde947bffd163">More...</a><br /></td></tr> <tr class="separator:a422081a55ff1fd9712fdde947bffd163"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="related"></a> Related Functions</h2></td></tr> <tr><td class="ititle" colspan="2"><p>(Note that these are not member functions.) </p> </td></tr> <tr class="memitem:aa7f5eb545b57327fecf0681665f19d7c"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1EntryBuffer.html">Gtk::EntryBuffer</a> > </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 class="memdesc:aa7f5eb545b57327fecf0681665f19d7c"><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#aa7f5eb545b57327fecf0681665f19d7c">More...</a><br /></td></tr> <tr class="separator:aa7f5eb545b57327fecf0681665f19d7c"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><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> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="afc374d6dc3cdfbbfe97a50a86be608ad"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual Gtk::EntryBuffer::~EntryBuffer </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> </div> </div> <a class="anchor" id="a560c87ddbf7790dde544535edada9d25"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">Gtk::EntryBuffer::EntryBuffer </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </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> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">Gtk::EntryBuffer::EntryBuffer </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>text</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">explicit</span><span class="mlabel">protected</span></span> </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 class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">text</td><td>Initial buffer text. </td></tr> </table> </dd> </dl> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="aa8d182fb0881a3a58e71352f63a37710"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGtk_1_1EntryBuffer.html">EntryBuffer</a>> Gtk::EntryBuffer::create </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </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="a730e9d1751b9275a2de18da9c16d39c1"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGtk_1_1EntryBuffer.html">EntryBuffer</a>> Gtk::EntryBuffer::create </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>text</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </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 class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">text</td><td>Initial buffer text. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a1e735047dd16f4b1c40aa4c952d50258"></a> <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 </td> <td class="paramname"><em>position</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>n_chars</em> </td> </tr> <tr> <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 class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">position</td><td>Position at which to delete text. </td></tr> <tr><td class="paramname">n_chars</td><td>Number of characters to delete. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The number of characters deleted. </dd></dl> </div> </div> <a class="anchor" id="a325918e5e859bba2927daa25113c32d3"></a> <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 </td> <td class="paramname"><em>position</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">guint </td> <td class="paramname"><em>n_chars</em> </td> </tr> <tr> <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 class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">position</td><td>Position at which text was deleted. </td></tr> <tr><td class="paramname">n_chars</td><td>Number of characters deleted. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a0866b9a826b9f96f941eaf84945884fa"></a> <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 </td> <td class="paramname"><em>position</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>text</em> </td> </tr> <tr> <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 class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">position</td><td>Position at which text was inserted. </td></tr> <tr><td class="paramname">text</td><td>Text that was inserted. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a53cb0c54a2b13314e64036dae7c0f0db"></a> <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>)</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="section return"><dt>Returns</dt><dd>The byte length of the buffer. </dd></dl> </div> </div> <a class="anchor" id="a9cebb86114b9cb03d24b86d058486c55"></a> <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>)</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="section return"><dt>Returns</dt><dd>The number of characters in the buffer. </dd></dl> </div> </div> <a class="anchor" id="ac4299229d3f2dc3c1afc02c8e430641e"></a> <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>)</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="section return"><dt>Returns</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> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" 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>)</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="section return"><dt>Returns</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="aa63aadf672f0df997d92c254fe08e461"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static GType Gtk::EntryBuffer::get_type </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Get the GType for this class, for use with the underlying GObject type system. </p> </div> </div> <a class="anchor" id="ad567657dd7d73c3277dbf87647cfe4ef"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">GtkEntryBuffer* Gtk::EntryBuffer::gobj </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Provides access to the underlying C GObject. </p> </div> </div> <a class="anchor" id="a3abe82b4d53b3610ee47f825221cae8f"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const GtkEntryBuffer* Gtk::EntryBuffer::gobj </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Provides access to the underlying C GObject. </p> </div> </div> <a class="anchor" id="acb885a342bd3b42577eab89d5e0d2925"></a> <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>)</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> <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 </td> <td class="paramname"><em>position</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>text</em> </td> </tr> <tr> <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 class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">position</td><td>The position at which to insert text. </td></tr> <tr><td class="paramname">text</td><td>The text to insert into the buffer. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The number of characters actually inserted. </dd></dl> </div> </div> <a class="anchor" id="a422081a55ff1fd9712fdde947bffd163"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void Gtk::EntryBuffer::on_deleted_text </td> <td>(</td> <td class="paramtype">guint </td> <td class="paramname"><em>position</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">guint </td> <td class="paramname"><em>n_chars</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>This is a default handler for the signal <a class="el" href="classGtk_1_1EntryBuffer.html#afef4562f9fa399a93a3037158c136dd8">signal_deleted_text()</a>. </p> </div> </div> <a class="anchor" id="a9abba6505cf595b5b09c1a931252e2b3"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void Gtk::EntryBuffer::on_inserted_text </td> <td>(</td> <td class="paramtype">guint </td> <td class="paramname"><em>position</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const gchar * </td> <td class="paramname"><em>chars</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">guint </td> <td class="paramname"><em>n_chars</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>This is a default handler for the signal <a class="el" href="classGtk_1_1EntryBuffer.html#a549ae271ec91312a2fc69d9c7620ae49">signal_inserted_text()</a>. </p> </div> </div> <a class="anchor" id="a1b4e43d118c0828cbe70a02e7aead23f"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>< guint > Gtk::EntryBuffer::property_length </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Length of the text currently in the buffer. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p><dl class="section return"><dt>Returns</dt><dd>A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a1207241632564f941d637baaf3c293a3"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< int > Gtk::EntryBuffer::property_max_length </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Maximum number of characters for this entry. </p> <p>Zero if no maximum.</p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p><dl class="section return"><dt>Returns</dt><dd>A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a4e70289b0fb0c9e04e551bea7bbb3f9c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>< int > Gtk::EntryBuffer::property_max_length </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Maximum number of characters for this entry. </p> <p>Zero if no maximum.</p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p><dl class="section return"><dt>Returns</dt><dd>A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a37321a848e983cd7426ffc9f2722ddc5"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> > Gtk::EntryBuffer::property_text </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The contents of the buffer. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p><dl class="section return"><dt>Returns</dt><dd>A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="acfe652094ad9ba39e2f1975159053a63"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>< <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> > Gtk::EntryBuffer::property_text </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>The contents of the buffer. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p><dl class="section return"><dt>Returns</dt><dd>A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a381e1969e3f387ef19cbf10cfae5ca46"></a> <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 </td> <td class="paramname"><em>max_length</em></td><td>)</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 class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">max_length</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> <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" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>text</em></td><td>)</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 class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">text</td><td>The text to set in the buffer. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="afef4562f9fa399a93a3037158c136dd8"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1SignalProxy2.html">Glib::SignalProxy2</a>< void,guint,guint > Gtk::EntryBuffer::signal_deleted_text </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <dl class="section user"><dt>Slot Prototype:</dt><dd><code>void on_my_deleted_text(guint position, guint n_chars)</code></dd></dl> <p>This signal is emitted after text is deleted from the buffer.</p> <dl class="since_2_18"><dt><b><a class="el" href="since_2_18.html#_since_2_18000033">Since gtkmm 2.18:</a></b></dt><dd></dd></dl> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">position</td><td>The position the text was deleted at. </td></tr> <tr><td class="paramname">n_chars</td><td>The number of characters that were deleted. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a549ae271ec91312a2fc69d9c7620ae49"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1SignalProxy3.html">Glib::SignalProxy3</a>< void,guint,const gchar*,guint > Gtk::EntryBuffer::signal_inserted_text </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <dl class="section user"><dt>Slot Prototype:</dt><dd><code>void on_my_inserted_text(guint position, const gchar* chars, guint n_chars)</code></dd></dl> <p>This signal is emitted after text is inserted into the buffer.</p> <dl class="since_2_18"><dt><b><a class="el" href="since_2_18.html#_since_2_18000032">Since gtkmm 2.18:</a></b></dt><dd></dd></dl> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">position</td><td>The position the text was inserted at. </td></tr> <tr><td class="paramname">chars</td><td>The text that was inserted. </td></tr> <tr><td class="paramname">n_chars</td><td>The number of characters that were inserted. </td></tr> </table> </dd> </dl> </div> </div> <h2 class="groupheader">Friends And Related Function Documentation</h2> <a class="anchor" id="aa7f5eb545b57327fecf0681665f19d7c"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1EntryBuffer.html">Gtk::EntryBuffer</a> > wrap </td> <td>(</td> <td class="paramtype">GtkEntryBuffer * </td> <td class="paramname"><em>object</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>take_copy</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">related</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>A <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">object</td><td>The C instance. </td></tr> <tr><td class="paramname">take_copy</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="section return"><dt>Returns</dt><dd>A C++ instance that wraps this C instance. </dd></dl> </div> </div> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Tue Sep 23 2014 12:59:19 for gtkmm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.7 </small></address> </body> </html>