Widget.getPreferredHeightForWidth

Retrieves a widget's minimum and natural height if it would be given the specified width. 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.

class Widget
void
getPreferredHeightForWidth
(
int width
,,)

Parameters

width int

the width which is available for allocation

minimumHeight int

location for storing the minimum height, or NULL. out[allow-none]

naturalHeight int

location for storing the natural height, or NULL. out[allow-none] Since 3.0

Meta