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 with the content height

Details

Accessor of the content-height slot of the gtk:drawing-area class. The gtk:drawing-area-content-height function retrieves the content height of the drawing area. The (setf gtk:drawing-area-content-height) function sets the desired height of the contents.

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

2024-10-26