It derives from <GObject>.
Holds the text that is displayed in a single-line text entry widget.
A single <GtkEntryBuffer> object can be shared
by multiple widgets which will then share the same text content, but not
the cursor position, visibility attributes, icon etc.
<GtkEntryBuffer> 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.
parent-instanceThe length (in characters) of the text in buffer.
Its value is an unsigned 32-bit integer.
It is read only.
The maximum length (in characters) of the text in the buffer.
Its value is a 32-bit integer.
Set it with (set! (entry-buffer:max-length self) value).
The contents of the buffer.
Its value is a string, or #f.
Set it with (set! (entry-buffer:text self) value).
Deletes a sequence of characters from the buffer.
n-chars characters are deleted starting at position. If n-chars is negative, then all characters until the end of the text are deleted.
If position or n-chars are out of bounds, then they are coerced to sane values.
Note that the positions are specified in characters, not bytes.
Passed: a <GtkEntryBuffer>.
Passed: an unsigned 32-bit integer.
position at which to delete text
Passed: a 32-bit integer.
number of characters to delete
Returned: an unsigned 32-bit integer.
The number of characters deleted.
Used when subclassing <GtkEntryBuffer>.
Passed: a <GtkEntryBuffer>.
Passed: an unsigned 32-bit integer.
position at which text was deleted
Passed: an unsigned 32-bit integer.
number of characters deleted
Used when subclassing <GtkEntryBuffer>.
Passed: a <GtkEntryBuffer>.
Passed: an unsigned 32-bit integer.
position at which text was inserted
Passed: a string.
text that was inserted
Passed: an unsigned 32-bit integer.
number of characters inserted
Retrieves the length in bytes of the buffer.
Passed: a <GtkEntryBuffer>.
Returned: an unsigned 64-bit integer.
The byte length of the buffer.
Retrieves the length in characters of the buffer.
Passed: a <GtkEntryBuffer>.
Returned: an unsigned 32-bit integer.
The number of characters in the buffer.
Retrieves the maximum allowed length of the text in self.
Passed: a <GtkEntryBuffer>.
Returned: a 32-bit integer.
the maximum allowed number of characters in
<GtkEntryBuffer>, or 0 if there is no maximum.
Retrieves the contents of the buffer.
The memory pointer returned by this call will not change unless this object emits a signal, or is finalized.
Passed: a <GtkEntryBuffer>.
Returned: a string.
a pointer to the contents of the widget as a string. This string points to internally allocated storage in the buffer and must not be freed, modified or stored.
Inserts n-chars characters of chars into the contents of the buffer, at position position.
If n-chars is negative, then characters from chars will be inserted until a null-terminator is found. If position or n-chars are out of bounds, or the maximum buffer text length is exceeded, then they are coerced to sane values.
Note that the position and length are in characters, not in bytes.
Passed: a <GtkEntryBuffer>.
Passed: an unsigned 32-bit integer.
the position at which to insert text.
Passed: a string.
the text to insert into the buffer.
Passed: a 32-bit integer.
the length of the text in characters, or -1
Returned: an unsigned 32-bit integer.
The number of characters actually inserted.
Create a new <GtkEntryBuffer> object.
Optionally, specify initial text to set in the buffer.
Passed: a string, or #f.
initial buffer text
Passed: a 32-bit integer.
number of characters in initial-chars, or -1
Returned: a <GtkEntryBuffer>.
A new <GtkEntryBuffer> object.
Sets the maximum allowed length of the contents of the buffer.
If the current contents are longer than the given length, then they will be truncated to fit.
Passed: a <GtkEntryBuffer>.
Passed: a 32-bit integer.
the maximum length of the entry buffer, or 0 for no maximum. (other than the maximum length of entries.) The value passed in will be clamped to the range 0-65536.
Sets the text in the buffer.
This is roughly equivalent to calling entry-buffer:delete-text and entry-buffer:insert-text.
Note that n-chars is in characters, not in bytes.
Passed: a <GtkEntryBuffer>.
Passed: a string.
the new text
Passed: a 32-bit integer.
the number of characters in text, or -1
Connect a handler with (connect object entry-buffer:deleted-text
handler). It is called as (handler self position n-chars).
The text is altered in the default handler for this signal.
If you want access to the text after the text has been modified, use
after.
Passed: a <GtkEntryBuffer>.
Passed: an unsigned 32-bit integer.
the position the text was deleted at.
Passed: an unsigned 32-bit integer.
The number of characters that were deleted.
Connect a handler with (connect object entry-buffer:inserted-text
handler). It is called as (handler self position chars
n-chars).
This signal is emitted after text is inserted into the buffer.
Passed: a <GtkEntryBuffer>.
Passed: an unsigned 32-bit integer.
the position the text was inserted at.
Passed: a string.
The text that was inserted.
Passed: an unsigned 32-bit integer.
The number of characters that were inserted.
Deletes a sequence of characters from the buffer.
n-chars characters are deleted starting at position. If n-chars is negative, then all characters until the end of the text are deleted.
If position or n-chars are out of bounds, then they are coerced to sane values.
Note that the positions are specified in characters, not bytes.
To override it in a new class, give register-type #:vfuncs
`((delete-text . ,procedure)). The procedure is called as
(procedure self position n-chars) ⇒ %return.
Passed: the class whose implementation to call:
<GtkEntryBuffer>, or a class that derives from
it, or its GType number.
Passed: a <GtkEntryBuffer>.
Passed: an unsigned 32-bit integer.
position at which to delete text
Passed: an unsigned 32-bit integer.
number of characters to delete
Returned: an unsigned 32-bit integer.
The number of characters deleted.
To override it in a new class, give register-type #:vfuncs
`((deleted-text . ,procedure)). The procedure is called as
(procedure self position n-chars).
Passed: the class whose implementation to call:
<GtkEntryBuffer>, or a class that derives from
it, or its GType number.
Passed: a <GtkEntryBuffer>.
Passed: an unsigned 32-bit integer.
Passed: an unsigned 32-bit integer.
Retrieves the length in characters of the buffer.
To override it in a new class, give register-type #:vfuncs
`((get-length . ,procedure)). The procedure is called as
(procedure self) ⇒ %return.
Passed: the class whose implementation to call:
<GtkEntryBuffer>, or a class that derives from
it, or its GType number.
Passed: a <GtkEntryBuffer>.
Returned: an unsigned 32-bit integer.
The number of characters in the buffer.
To override it in a new class, give register-type #:vfuncs
`((get-text . ,procedure)). The procedure is called as
(procedure self n-bytes) ⇒ %return.
Passed: the class whose implementation to call:
<GtkEntryBuffer>, or a class that derives from
it, or its GType number.
Passed: a <GtkEntryBuffer>.
Passed: an unsigned 64-bit integer.
Returned: a string.
Inserts n-chars characters of chars into the contents of the buffer, at position position.
If n-chars is negative, then characters from chars will be inserted until a null-terminator is found. If position or n-chars are out of bounds, or the maximum buffer text length is exceeded, then they are coerced to sane values.
Note that the position and length are in characters, not in bytes.
To override it in a new class, give register-type #:vfuncs
`((insert-text . ,procedure)). The procedure is called as
(procedure self position chars n-chars) ⇒ %return.
Passed: the class whose implementation to call:
<GtkEntryBuffer>, or a class that derives from
it, or its GType number.
Passed: a <GtkEntryBuffer>.
Passed: an unsigned 32-bit integer.
the position at which to insert text.
Passed: a string.
the text to insert into the buffer.
Passed: an unsigned 32-bit integer.
the length of the text in characters, or -1
Returned: an unsigned 32-bit integer.
The number of characters actually inserted.
To override it in a new class, give register-type #:vfuncs
`((inserted-text . ,procedure)). The procedure is called as
(procedure self position chars n-chars).
Passed: the class whose implementation to call:
<GtkEntryBuffer>, or a class that derives from
it, or its GType number.
Passed: a <GtkEntryBuffer>.
Passed: an unsigned 32-bit integer.
Passed: a string.
Passed: an unsigned 32-bit integer.