Package: gtk

Accessor gtk:entry-max-length

Lambda List

gtk:entry-max-length (object)

Syntax

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

Arguments

object -- a gtk:entry widget
max -- an integer with the maximum length of the entry, or 0 for no maximum, the value passed in will be clamped to the range [0, 65536]

Details

Accessor of the max-length slot of the gtk:entry class. The gtk:entry-max-length function retrieves the maximum allowed length of the text in the entry, or 0 if there is no maximum. This is equivalent to:
(gtk:entry-buffer-max-length (gtk:entry-buffer object))  
The (setf gtk:entry-max-length) function sets the maximum allowed length of the contents of the widget. If the current contents are longer than the given length, then they will be truncated to fit. This is equivalent to
(setf (gtk:entry-buffer-max-length (gtk:entry-buffer object)) max)  
 

See also

2023-3-4