Widget.getPreferredWidthForHeight

Retrieves a widget’s minimum and natural width if it would be given the specified height.

The returned request will be modified by the GtkWidgetClass::adjust_size_request virtual method and by any gtk.SizeGroups that have been applied. That is, the returned request is the one that should be used for layout, not necessarily the one returned by the widget itself.

class Widget
void
getPreferredWidthForHeight
(
int height
,
out int minimumWidth
,
out int naturalWidth
)

Parameters

height int

the height which is available for allocation

minimumWidth int

location for storing the minimum width, or NULL

naturalWidth int

location for storing the natural width, or NULL

Meta