Widget.getPreferredWidthForHeight

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

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 #GtkSizeGroups 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.

Parameters

heightthe height which is available for allocation
minimumWidthlocation for storing the minimum width, or null
naturalWidthlocation for storing the natural width, or null