Package: gtk

Accessor gtk:text-max-length

Lambda List

gtk:text-max-length (object)

Syntax

(gtk:text-max-length object) => length
(setf (gtk:text-max-length object) length)

Arguments

object -- a gtk:text widget
length -- an integer with the maximum length of the text entry or 0 if there is no maximum

Details

Accessor of the max-length slot of the gtk:text class. The gtk:text-max-length function retrieves the maximum allowed length of the text in the text entry. This is equivalent to getting the gtk:entry-buffer object for the text entry and calling the gtk:entry-buffer-max-length function on it.

The (setf gtk:text-max-length) function sets the maximum allowed length. If the current contents are longer than the given length, then they will be truncated to fit. This is equivalent to getting the gtk:entry-buffer object for the text entry and calling the (setf gtk:entry-buffer-max-length) function on it.
 

See also

2024-5-17