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

Details

Accessor of the content-width slot of the gtk:drawing-area class. The gtk:drawing-area-content-width function retrieves the content width of the drawing area. The (setf gtk:drawing-area-content-width) function sets the desired width 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-halign function to avoid that.

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

See also

2024-10-26