GtkEntry
A single line text entry field.
Object Hierarchy
Direct Subclasses
Implemented Interfaces
Description
GtkEntry is a single line text entry widget.
It is generally used when input is required from the user. A fairly
large set of key bindings are supported by default and have the
potential to be edited by the user. If the entered text is longer
than the allocation of the widget, the widget will scroll so that the
cursor position is visible.
Constructors
--
Creates a single line text entry widget.
Properties
Use get_property and set_property methods to access these.
activates-default:
Whether to activate the default widget when Enter is pressed.
cursor-position:
The current position of the insertion cursor in chars.
editable:
Whether the entry contents can be edited.
has-frame:
Outside bevel from entry.
invisible-char:
The character to use when masking entry contents.
max-length:
Maximum number of characters for this entry.
scroll-offset:
Number of pixels of the entry scrolled off the screen to the left.
selection-bound:
Position of the opposite end of the selection cursor.
text:
The contents of the entry.
visibility:
If the text is shown or just asteriks *.
width-chars:
Number of characters to leave space for in the entry.
xalign:
The horizontal alignment, from 0 to 1.
Signals
"activate"
The widget is activated.
"backspace"
The Backspace key is pressed.
"copy-clipboard"
The selection is copied to the clipboad.
"cut-clipboard"
The selection is cut into the clipboad.
"delete-from-cursor"
Some text is deleted from the entry.
"insert-at-cursor"
Text is inserted.
"move-cursor"
The caret is moved.
"paste-clipboard"
Text is pasted from the clipboard.
"populate-popup"
The context menu needs to be populated.
"toggle-overwrite"
Toggles the internal overwrite_mode attribute.