Package: gtk

Accessor gtk:editable-width-chars

Lambda List

gtk:editable-width-chars (object)

Syntax

(gtk:editable-width-chars object) => width
(setf (gtk:editable-width-chars object) width)

Arguments

object -- a gtk:editable widget
width -- an integer with the width in chars

Details

Accessor of the width-chars slot of the gtk:editable class. The gtk:editable-width-chars function gets the value of the width in chars. The (setf gtk:editable-width-chars) function changes the size request of the editable widget to be about the right size for width characters.

Note that it changes the size request, the size can still be affected by how you pack the widget into containers. If the width argument is -1, the size reverts to the default size.
 

See also

2023-10-24