Package: gtk

Class gtk-entry-buffer

Superclasses

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

Documented Subclasses

None

Direct Slots

length
The length property of type :uint (Read)
The length, in characters, of the text in 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 buffer.
Allowed values: [0,65535]
Default value: 0
text
The text property of type :string (Read / Write)
The contents of the 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 etc.

gtk-entry-buffer 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.

Signal Details

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

Slot Access Functions

Inherited Slot Access Functions

See also

2020-5-31