Package: gtk

Accessor gtk:drawing-area-content-width

Lambda List

gtk:drawing-area-content-width (object)

Syntax

(gtk:drawing-area-content-width object) => width
(setf (gtk:drawing-area-content-width object) width)

Arguments

object -- a gtk:drawing-area widget
width -- an integer for the content height

Details

The accessor for the content-width slot of the gtk:drawing-area class gets or sets the content width of the drawing area.

Note that because widgets may be allocated larger sizes than they requested, it is possible that the actual height passed to your draw function is larger than the height set here. You can use the gtk:widget-halign function to avoid that.

If the height is set to 0, the default, the drawing area may disappear.
 

See also

2025-09-28