Package: gtk

Accessor gtk:drawing-area-content-height

Lambda List

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

Syntax

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

Arguments

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

Details

The accessor for the content-height slot of the gtk:drawing-area class gets or sets the content height 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-valign function to avoid that.

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

See also

2025-09-28