set_content_height


Description:

public void set_content_height (int height)

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.

Parameters:

this

a `GtkDrawingArea`

height

the height of contents