.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Gtk2::EntryBuffer 3" .TH Gtk2::EntryBuffer 3 2023-07-25 "perl v5.38.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Gtk2::EntryBuffer \- wrapper for GtkEntryBuffer .SH HIERARCHY .IX Header "HIERARCHY" .Vb 2 \& Glib::Object \& +\-\-\-\-Gtk2::EntryBuffer .Ve .PP The \fBGtk2::EntryBuffer\fR class contains the actual text displayed in a Gtk2::Entry widget. .PP A single Gtk2::EntryBuffer object can be shared by multiple Gtk2::Entry widgets which will then share the same text content, but not the cursor position, visibility attributes, icon etc. .PP Gtk2::EntryBuffer 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. .SH METHODS .IX Header "METHODS" .SS "entrybuffer = Gtk2::EntryBuffer\->\fBnew\fP ($initial_chars=undef)" .IX Subsection "entrybuffer = Gtk2::EntryBuffer->new ($initial_chars=undef)" .IP \(bu 4 \&\f(CW$initial_chars\fR (string) .ie n .SS "unsigned = $buffer\->\fBget_bytes\fP" .el .SS "unsigned = \f(CW$buffer\fP\->\fBget_bytes\fP" .IX Subsection "unsigned = $buffer->get_bytes" .ie n .SS "integer = $buffer\->\fBdelete_text\fP ($position=0, $n_chars=\-1)" .el .SS "integer = \f(CW$buffer\fP\->\fBdelete_text\fP ($position=0, \f(CW$n_chars\fP=\-1)" .IX Subsection "integer = $buffer->delete_text ($position=0, $n_chars=-1)" .IP \(bu 4 \&\f(CW$position\fR (integer) .IP \(bu 4 \&\f(CW$n_chars\fR (integer) .ie n .SS "$buffer\->\fBemit_deleted_text\fP ($position, $n_chars)" .el .SS "\f(CW$buffer\fP\->\fBemit_deleted_text\fP ($position, \f(CW$n_chars\fP)" .IX Subsection "$buffer->emit_deleted_text ($position, $n_chars)" .IP \(bu 4 \&\f(CW$position\fR (integer) .IP \(bu 4 \&\f(CW$n_chars\fR (integer) .ie n .SS "$buffer\->\fBemit_inserted_text\fP ($position, $chars, $n_chars)" .el .SS "\f(CW$buffer\fP\->\fBemit_inserted_text\fP ($position, \f(CW$chars\fP, \f(CW$n_chars\fP)" .IX Subsection "$buffer->emit_inserted_text ($position, $chars, $n_chars)" .IP \(bu 4 \&\f(CW$position\fR (integer) .IP \(bu 4 \&\f(CW$chars\fR (string) .IP \(bu 4 \&\f(CW$n_chars\fR (integer) .ie n .SS "$buffer\->\fBinsert_text\fP ($position, $chars)" .el .SS "\f(CW$buffer\fP\->\fBinsert_text\fP ($position, \f(CW$chars\fP)" .IX Subsection "$buffer->insert_text ($position, $chars)" .IP \(bu 4 \&\f(CW$position\fR (integer) .IP \(bu 4 \&\f(CW$chars\fR (string) .ie n .SS "integer = $buffer\->\fBget_length\fP" .el .SS "integer = \f(CW$buffer\fP\->\fBget_length\fP" .IX Subsection "integer = $buffer->get_length" .ie n .SS "integer = $buffer\->\fBget_max_length\fP" .el .SS "integer = \f(CW$buffer\fP\->\fBget_max_length\fP" .IX Subsection "integer = $buffer->get_max_length" .ie n .SS "$buffer\->\fBset_max_length\fP ($max_length)" .el .SS "\f(CW$buffer\fP\->\fBset_max_length\fP ($max_length)" .IX Subsection "$buffer->set_max_length ($max_length)" .IP \(bu 4 \&\f(CW$max_length\fR (integer) .ie n .SS "string = $buffer\->\fBget_text\fP" .el .SS "string = \f(CW$buffer\fP\->\fBget_text\fP" .IX Subsection "string = $buffer->get_text" .ie n .SS "$buffer\->\fBset_text\fP ($chars)" .el .SS "\f(CW$buffer\fP\->\fBset_text\fP ($chars)" .IX Subsection "$buffer->set_text ($chars)" .IP \(bu 4 \&\f(CW$chars\fR (string) .SH PROPERTIES .IX Header "PROPERTIES" .IP "'length' (Glib::UInt : default 0 : readable / private / static-nick / static-blurb)" 4 .IX Item "'length' (Glib::UInt : default 0 : readable / private / static-nick / static-blurb)" Length of the text currently in the buffer .IP "'max\-length' (integer : default 0 : readable / writable / private / static-nick / static-blurb)" 4 .IX Item "'max-length' (integer : default 0 : readable / writable / private / static-nick / static-blurb)" Maximum number of characters for this entry. Zero if no maximum .IP "'text' (string : default """" : readable / writable / private / static-nick / static-blurb)" 4 .IX Item "'text' (string : default """" : readable / writable / private / static-nick / static-blurb)" The contents of the buffer .SH SIGNALS .IX Header "SIGNALS" .IP "\fBdeleted-text\fR (Gtk2::EntryBuffer, Glib::UInt, Glib::UInt)" 4 .IX Item "deleted-text (Gtk2::EntryBuffer, Glib::UInt, Glib::UInt)" .PD 0 .IP "\fBinserted-text\fR (Gtk2::EntryBuffer, Glib::UInt, string, Glib::UInt)" 4 .IX Item "inserted-text (Gtk2::EntryBuffer, Glib::UInt, string, Glib::UInt)" .PD .SH "SEE ALSO" .IX Header "SEE ALSO" Gtk2, Glib::Object .SH COPYRIGHT .IX Header "COPYRIGHT" Copyright (C) 2003\-2011 by the gtk2\-perl team. .PP This software is licensed under the LGPL. See Gtk2 for a full notice.