man Gtk2::Entry () - Gtk2::Entry

NAME

Gtk2::Entry

HIERARCHY

  Glib::Object
  +----Glib::Object::_Unregistered::GInitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Entry

INTERFACES

  Gtk2::Atk::ImplementorIface
  Gtk2::CellEditable
  Gtk2::Editable

METHODS

widget = Gtk2::Entry->new

widget = Gtk2::Entry->new_with_max_length ($max)

$entry->set_activates_default ($setting)

$entry->set_alignment ($xalign)

$entry->append_text ($text)

$entry->set_completion ($completion)

$entry->set_editable ($editable)

$entry->set_has_frame ($setting)

$entry->set_invisible_char ($ch)

$entry->set_max_length ($max)

$entry->set_position ($position)

$entry->prepend_text ($text)

$entry->set_text ($text)

$entry->set_visibility ($visible)

$entry->set_width_chars ($n_chars)

PROPERTIES

'activates-default' (boolean : readable / writable / private)
Whether to activate the default widget (such as the default button in a dialog) when Enter is pressed
'cursor-position' (integer : readable / private)
The current position of the insertion cursor in chars
'editable' (boolean : readable / writable / private)
Whether the entry contents can be edited
'has-frame' (boolean : readable / writable / private)
FALSE removes outside bevel from entry
'invisible-char' (Glib::UInt : readable / writable / private)
The character to use when masking entry contents (in password mode)
'max-length' (integer : readable / writable / private)
Maximum number of characters for this entry. Zero if no maximum
'scroll-offset' (integer : readable / private)
Number of pixels of the entry scrolled off the screen to the left
'selection-bound' (integer : readable / private)
The position of the opposite end of the selection from the cursor in chars
'text' (string : readable / writable / private)
The contents of the entry
'visibility' (boolean : readable / writable / private)
FALSE displays the invisible char instead of the actual text (password mode)
'width-chars' (integer : readable / writable / private)
Number of characters to leave space for in the entry
'xalign' (Glib::Float : readable / writable / private)
The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts.

SIGNALS

move-cursor (Gtk2::Entry, Gtk2::MovementStep, integer, boolean)
activate (Gtk2::Entry)
copy-clipboard (Gtk2::Entry)
populate-popup (Gtk2::Entry, Gtk2::Menu)
insert-at-cursor (Gtk2::Entry, string)
delete-from-cursor (Gtk2::Entry, Gtk2::DeleteType, integer)
backspace (Gtk2::Entry)
cut-clipboard (Gtk2::Entry)
paste-clipboard (Gtk2::Entry)
toggle-overwrite (Gtk2::Entry)

ENUMS AND FLAGS

enum Gtk2::DeleteType

* 'chars' / 'GTK_DELETE_CHARS'
* 'word-ends' / 'GTK_DELETE_WORD_ENDS'
* 'words' / 'GTK_DELETE_WORDS'
* 'display-lines' / 'GTK_DELETE_DISPLAY_LINES'
* 'display-line-ends' / 'GTK_DELETE_DISPLAY_LINE_ENDS'
* 'paragraph-ends' / 'GTK_DELETE_PARAGRAPH_ENDS'
* 'paragraphs' / 'GTK_DELETE_PARAGRAPHS'
* 'whitespace' / 'GTK_DELETE_WHITESPACE'

enum Gtk2::MovementStep

* 'logical-positions' / 'GTK_MOVEMENT_LOGICAL_POSITIONS'
* 'visual-positions' / 'GTK_MOVEMENT_VISUAL_POSITIONS'
* 'words' / 'GTK_MOVEMENT_WORDS'
* 'display-lines' / 'GTK_MOVEMENT_DISPLAY_LINES'
* 'display-line-ends' / 'GTK_MOVEMENT_DISPLAY_LINE_ENDS'
* 'paragraphs' / 'GTK_MOVEMENT_PARAGRAPHS'
* 'paragraph-ends' / 'GTK_MOVEMENT_PARAGRAPH_ENDS'
* 'pages' / 'GTK_MOVEMENT_PAGES'
* 'buffer-ends' / 'GTK_MOVEMENT_BUFFER_ENDS'
* 'horizontal-pages' / 'GTK_MOVEMENT_HORIZONTAL_PAGES'

SEE ALSO

Gtk2, Glib::Object, Glib::Object::_Unregistered::GInitiallyUnowned, Gtk2::Object, Gtk2::Widget

COPYRIGHT

Copyright (C) 2003-2005 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.