DrawingArea.setContentHeight

Sets the desired height of the contents 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 [method@Gtk.Widget.set_valign] to avoid that.

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

class DrawingArea
void
setContentHeight
(
int height
)

Parameters

height int

the height of contents

Meta