Package: gtk

Class gtk:entry-buffer

Superclasses

gobject:object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

Direct Slots

length
The length property of type :uint (Read)
The length, in characters, of the text in the entry buffer.
Allowed values: <= 65535
Default value: 0
max-length
The max-length property of type :int (Read / Write)
The maximum length, in characters, of the text in the entry buffer.
Allowed values: [0,65535]
Default value: 0
text
The text property of type :string (Read / Write)
The contents of the entry buffer.
Default value: ""

Details

The gtk:entry-buffer object contains the actual text displayed in a gtk:entry widget. A single gtk:entry-buffer object can be shared by multiple gtk:entry widgets which will then share the same text content, but not the cursor position, visibility attributes, icon, and so on.

The gtk:entry-buffer class 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 undo/redo concept of the application.

Signal Details

The "deleted-text" signal
lambda (buffer pos nchars)    :run-first      
buffer
The gtk:entry-buffer object.
pos
The integer with the position the text was deleted at.
nchars
The integer with the number of characters that were deleted.
The signal is emitted after text is deleted from the entry buffer.
The "inserted-text" signal
lambda (buffer pos chars nchars)    :run-first      
buffer
The gtk:entry-buffer object.
pos
The integer with the position the text was inserted at.
chars
The string with the text that was inserted.
nchars
The integer with the number of characters that were inserted.
The signal is emitted after text is inserted into the entry buffer.
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

See also

2025-1-5